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.
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
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.
Worked like a charm. Thanks a lot, brilliant solution!
-
This reply was modified 8 years, 1 month ago by
allampatu.