Plugin Author
icc0rz
(@icc0rz)
Hi Michael! That is strange, the message should go away automatically. What version of WordPress are you running? Are you using a multi-site WordPress installation(network setup) or some other special setup?
If you don’t mind, it would be nice to have some more debug information. If you add the following code to line 302 of admin/class-h5p-plugin-admin.php and print the result here we may get a better understanding of what is going on:
var_dump(get_option('h5p_last_info_print', 0)); echo '<br/>';
var_dump(update_option('h5p_last_info_print', H5P_Plugin::VERSION)); exit;
Thank you for reporting, and I’m sorry for the inconvenience.
Thread Starter
mln83
(@mln83)
Hi!
Thanks for getting back on this issue.
I am running WP 4.4.2 (single site).
I added the code and got this:
string(5) "1.6.1"
bool(false)
Best regards,
Michael
Plugin Author
icc0rz
(@icc0rz)
Thank you! This is strange since the output looks OK. Could you try the following code between lines 286 and 287 of the same file?
var_dump($last_print); var_dump(H5P_Plugin::VERSION); exit;
Just to rule out some things.
There are some things you could try out:
1. Restart PHP, I’m not sure what web hosting service you’re using or if this is possible for you. However, I see that some people are having issues with the WordPress options due to APC cache “hanging”. A restart of PHP or Apache should solve these issues.
2. Try to run a optimize and repair on your database. It’s a simple command that should fix any issues that might exist within the database:
mysqlcheck -u YourUserName -p --auto-repair --check --optimize YourDatabaseName
3. If all else fails and you just want to get rid of the message you can remove the code between lines 284 and 302. However, I would very much like to get to the root of this issue in case someone else is struggeling with the same issue.
Thank you and kind regards,
Thread Starter
mln83
(@mln83)
Hi icc0rz,
After sweeping the database (WP-Sweep – https://wordpress.org/plugins/wp-sweep/) and upgrading to WordPress 4.5 it seems to have solved the issue.
Thanks again for all your suggestions.
Best regards,
Michael
Plugin Author
icc0rz
(@icc0rz)
Very good, I’m glad that you found a solution 🙂