Hi,
Thanks for using our plugin
Please update your php version to the one of the latest:
https://wordpress.org/about/requirements/
Regards
Hi all,
I just bought your Plugin an I’m facing the same problem. My php-version is 5.6.21 and my sql version is 5.5.49. So what else can cause this error everytime I want to save? Thanks for your help.
Regards
Hi,
Please submit a request to our support with admin access to your website, we’ll try to solve the problem:
http://support.fruitfulcode.com/hc/en-us/requests/new
Regards
Hi,
To all having the same problem: Fatal error: Call to a member function mt_clear_cache() on boolean…. A possible workaround is to add $maintenance = new maintenance(); before $maintenance->mt_clear_cache(); in plugin-folder/includes/admin.php function mt_register_settings(). Since mt_clear_cache() is a public static fuction, we need to initialize the variables.
The function mt_register_settings() in admin.php should be like this (after the change):
function mt_register_settings() {
global $maintenance;
if ( !empty($_POST['lib_options']) && check_admin_referer('maintenance_edit_post','maintenance_nonce') ) {
if (!isset($_POST['lib_options']['state'])) { $_POST['lib_options']['state'] = 0; }
else { $_POST['lib_options']['state'] = 1; }
if (isset($_POST['lib_options']['htmlcss'])) {
$_POST['lib_options']['htmlcss'] = wp_kses_stripslashes($_POST['lib_options']['htmlcss']);
}
if (isset($_POST['lib_options'])) {
update_option( 'maintenance_options', $_POST['lib_options']);
$maintenance = new maintenance();
$maintenance->mt_clear_cache();
}
}
}
I`m using php 5.6, btw.
And great plugin. Thank you.
Hi luansol,
Our developers will check your solution for this error and will add these changes in the plugin.
Best regards
I am getting the same error, with PHP Version 5.6.23
Thank you!
Hi,
We’ve fixed this problem. You can view the commit on github and in order not to wait for the update please upload the new version of Maintenance from github:
https://github.com/Fruitfulcode/Maintenance/commit/6ca18db31ce8eb122cdc99427d93c1f9ad2f87aa
Regards
Thanks all for support . i resolved it