Plugin Issue
-
Hello,
I recently upgraded my php version to 7.3. Everything works great except for that I just realized my plugins dont work. When I click any of them such as Yoast or Custom Permalinks or Ready SSL, Mailchimp for WP (all very common plugins), I just get a 500 error.
It works perfectly fine when I switch it back to php 5.3 but i do not want to go that route.
I tried a bunch of troubleshooting including disabling/reenabling the plugins, etc.
Any help would be greatly appreciated!
Thank you
-
Most of the well-known plugins are compatible with PHP 7+.
Try installing PHP Compatibility Checker, so you can get specifics about what is amiss.Thanks, Joy. I did that but when i click on “start scan” i get the same thing, 500 error.
I did change debug to true in wp-config and got these errors but i have no idea how to resolve them:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WooThemes_Shortcode_Generator has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/functions/admin-shortcode-generator.php on line 33
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Widget_WooTabs has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-tabs.php on line 24
Deprecated: Function create_function() is deprecated in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-tabs.php on line 235
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_AdWidget has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-adspace.php on line 6
Notice: The called constructor method for WP_Widget in Woo_AdWidget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_BlogAuthorInfo has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-blogauthor.php on line 5
Notice: The called constructor method for WP_Widget in Woo_BlogAuthorInfo is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_EmbedWidget has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-embed.php on line 6
Notice: The called constructor method for WP_Widget in Woo_EmbedWidget is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_flickr has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-flickr.php on line 5
Notice: The called constructor method for WP_Widget in Woo_flickr is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Search has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-search.php on line 5
Notice: The called constructor method for WP_Widget in Woo_Search is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Widget_Social has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-social.php on line 29
Deprecated: Function create_function() is deprecated in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-social.php on line 187
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Widget_PostMeta has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-postmeta.php on line 29
Deprecated: Function create_function() is deprecated in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-postmeta.php on line 184
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Twitter has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-twitter.php on line 5
Notice: The called constructor method for WP_Widget in Woo_Twitter is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Subscribe has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-subscribe.php on line 5
Notice: The called constructor method for WP_Widget in Woo_Subscribe is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Widget_Feedback has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-feedback.php on line 24
Deprecated: Function create_function() is deprecated in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-feedback.php on line 238
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Widget_Blog has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-blog.php on line 29
Deprecated: Function create_function() is deprecated in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-blog.php on line 222
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Woo_Widget_Portfolio has a deprecated constructor in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-portfolio.php on line 29
Deprecated: Function create_function() is deprecated in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/includes/widgets/widget-woo-portfolio.php on line 267
Notice: The called constructor method for WP_Widget in Woo_Widget_WooTabs is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Notice: The called constructor method for WP_Widget in Woo_Widget_Social is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Notice: The called constructor method for WP_Widget in Woo_Widget_PostMeta is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Notice: The called constructor method for WP_Widget in Woo_Widget_Feedback is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Notice: The called constructor method for WP_Widget in Woo_Widget_Blog is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Notice: The called constructor method for WP_Widget in Woo_Widget_Portfolio is deprecated since version 4.3.0! Use
__construct()
instead. in /home/xg1u6w994rcg/public_html/wp-includes/functions.php on line 4397Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/functions/admin-interface.php:111 Stack trace: #0 /home/xg1u6w994rcg/public_html/wp-includes/class-wp-hook.php(286): woothemes_add_admin(”) #1 /home/xg1u6w994rcg/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/xg1u6w994rcg/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /home/xg1u6w994rcg/public_html/wp-admin/includes/menu.php(154): do_action(‘admin_menu’, ”) #4 /home/xg1u6w994rcg/public_html/wp-admin/menu.php(308): require_once(‘/home/xg1u6w994…’) #5 /home/xg1u6w994rcg/public_html/wp-admin/admin.php(152): require(‘/home/xg1u6w994…’) #6 {main} thrown in /home/xg1u6w994rcg/public_html/wp-content/themes/swatch/functions/admin-interface.php on line 111
It sounds like you ran the checker on the new version of PHP. You should run it on the old, so you can find replacements for your plugins.
Given the errors shown, you have some old plugins that are doing things that have been deprecated (it’s still in the new PHP, but won’t be for long). The error at the end is the real problem, though, and it’s your theme, which shouldn’t be using a mysql specific function. Either fix that or switch themes and then find plugin replacements.
- The topic ‘Plugin Issue’ is closed to new replies.