• Resolved allampatu

    (@allampatu)


    Hello,
    I moved my site from local to online stage and I lost a lot of customization I did it.

    I took five minuted to copy and paste messages from local but the real problem is that the Dialogs text area are disapperead, I can see only the TOS one.

    Here what I mean https://snag.gy/Lyjqvm.jpg

    Could you help me?

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    If the dialog texts disappeared, that most likely means that the db setting that contains them was corrupted. If that’s the case, you’d either need to delete and reinstall the plugin or possibly restore the database to retrieve the original entry.

    Thread Starter allampatu

    (@allampatu)

    I thought it was a database issue too.

    I tried to upload a fresh copy of the plugin but nothing changed.

    If I delete and reinstall the plugin, I lost all the configuration?

    Thanks

    Plugin Author Chad Butler

    (@cbutlerjr)

    If you delete the plugin using the “delete” option that shows on the plugin panel after you deactivate it, then yes, you will clear out all of the database settings.

    All of the installation functions are individual; the function that installs the dialogs is wpmem_install_dialogs(). You could run that function alone to install the default dialogs, which would get you back to a restored setting without disturbing any of the other settings for the plugin. That’s a little unconventional, but it saves you messing up any existing settings outside the dialogs.

    To run that function, add the following code snippet to your theme’s functions.php file:

    add_action( 'admin_init', function() {
    	include_once( WPMEM_PATH . 'wp-members-install.php' );
    	wpmem_install_dialogs();
    });

    Load any admin page after you have saved this to functions.php, then remove the code snippet (otherwise it will run on every admin page load). That should get you back to the default dialog setting.

    Thread Starter allampatu

    (@allampatu)

    Worked like a charm. Thanks a lot, brilliant solution!

    • This reply was modified 8 years, 1 month ago by allampatu.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Dialogs disappeared’ is closed to new replies.