Hello guys,
I have a problem with the theme.
I bought two copy of Newspaper for both the websites I managed. Recently I migrate both of them and I started having problem with the theme.
Basically once a week I find the theme deactivated. It loses all the settings and ask for the activation code.
How can I solve this?
Hi,
I’m not sure why you have this issue, the theme settings and the activation data are kept in the database. So even you disable the theme(or the theme is disabled for some reasons), then it is activated again should not lose the settings. I suspect it is a wordpress error or a plugin that may cause this issue.
Please provide a copy of error.log file so we can take a look.
Thanks!
In the error log in the public folder I got this
[01-Sep-2015 19:42:17 UTC] WordPress errore sul database Query execution was interrupted per la query SELECT option_value FROM gp_options WHERE option_name = 'widget_td_block_popular_categories_widget' LIMIT 1 fatta da require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wp_widgets_init, do_action('widgets_init'), call_user_func_array, WP_Widget_Factory->_register_widgets, WP_Widget->_register, WP_Widget->get_settings, get_option, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
[01-Sep-2015 19:42:17 UTC] WordPress errore sul database Query execution was interrupted per la query UPDATE gp_options SET option_value = 'a:5:{s:8:\"facebook\";a:5:{s:5:\"count\";s:4:\"5200\";s:8:\"ok_count\";s:4:\"5200\";s:9:\"timestamp\";i:1441136535;s:7:\"expires\";i:10800;s:3:\"uid\";s:17:\"GamesPrincessBlog\";}s:10:\"googleplus\";a:5:{s:5:\"count\";i:7463;s:8:\"ok_count\";i:7463;s:9:\"timestamp\";i:1441136535;s:7:\"expires\";i:10800;s:3:\"uid\";s:16:\"+GamesPrincessit\";}s:9:\"instagram\";a:5:{s:5:\"count\";i:2347;s:8:\"ok_count\";i:2347;s:9:\"timestamp\";i:1441136536;s:7:\"expires\";i:10800;s:3:\"uid\";s:14:\"games_princess\";}s:7:\"twitter\";a:5:{s:5:\"count\";i:2106;s:8:\"ok_count\";i:2106;s:9:\"timestamp\";i:1441136537;s:7:\"expires\";i:10800;s:3:\"uid\";s:14:\"games_princess\";}s:7:\"youtube\";a:5:{s:5:\"count\";i:1349;s:8:\"ok_count\";i:1349;s:9:\"timestamp\";i:1441136456;s:7:\"expires\";i:10800;s:3:\"uid\";s:15:\"GAMESPRINCESSTV\";}}' WHERE option_name = 'td_social_api_v3_last_val' fatta da require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/Newspaper/single.php'), get_footer, locate_template, load_template, require_once('/themes/Newspaper/footer.php'), td_api_footer_template::_helper_show_footer, load_template, require_once('/themes/Newspaper/parts/footer/td_footer_template_9.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, td_block_widget->widget, td_block_social_counter->render, td_block_social_counter->get_social_network_meta, td_social_api->get_social_counter, td_social_api->save_cache, update_option, W3_Db->update, W3_DbCache->update, W3_DbCallUnderlying->update, W3_Db->update, W3_DbProcessor->update, W3_Db->default_update, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
[01-Sep-2015 19:42:17 UTC] WordPress errore sul database Query execution was interrupted per la query SELECT option_value FROM gp_options WHERE option_name = 'sharedaddy_disable_resources' LIMIT 1 fatta da require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, sharing_init, get_option, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
In the admin error log I have a plugin that keeps giving error.
[02-Sep-2015 07:12:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/zyypzwck/public_html/wp-content/plugins/monarch/monarch.php on line 5477
Hi,
Try to disable all plugins except for Visual Composer and see if the issue is still there. If the issue is gone enable the rest of the plugins one by one until you find the one which is causing this issue.
Also try to install a query monitor plugin, and check the memory usage.
Thank you!
I’m a little skeptical. I mean, I use the very same plugin on both my website with the same settings. One website is fine,the other keeps deactivating.
Anyway I will try to disable the plugin as you suggested.
I deactived all the plugin but with no success.
In the System Status panel I found this:
SUHOSIN is installed – it may cause problems with saving the theme panel if it’s not properly configured
Could it be the problem? What is SUHOSIN and how can I solve this?
Hi,
Suhosin is a security module, you can read more about it here – https://suhosin.org/stories/index.html
It’s not from this module, the problem is in the database and only the administrator has access to it’s settings. The error you got at the beginning of your error log is a critical database error, i hoped it was coming from a plugin but as you said it doesn’t. You have to contact the server administrator and inform him about this problem, i’m sure he will come with a solution.
Thank you!
Ok, I think I finally solved the problem.
I looked at the error log and find an “out of memory” error.
I changed the wp.config file and added
define( 'WP_MEMORY_LIMIT', '256M' );
It seems to work.