Title: PHP Update? Plugin crashes website
Last modified: December 28, 2022

---

# PHP Update? Plugin crashes website

 *  Resolved [eke1](https://wordpress.org/support/users/eke1/)
 * (@eke1)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-update-plugin-crashes-website/)
 * Plugin does not work on PHP 7.0 or newer, will there be any update soon?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Mej de Castro](https://wordpress.org/support/users/mej/)
 * (@mej)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-update-plugin-crashes-website/#post-16326854)
 * Hi [@eke1](https://wordpress.org/support/users/eke1/) ,
 * We are using PHP 8.1.9, and the plugin works well. Can you please try to deactivate
   and delete the Widget Options plugin and then update your PHP version to PHP 
   7.4 or a newer version?
 * Thank you, and please let me know how it goes.
 * Regards,
   Mej
 *  Thread Starter [eke1](https://wordpress.org/support/users/eke1/)
 * (@eke1)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-update-plugin-crashes-website/#post-16330200)
 * Hi Mej,
 * This plugin started to crash my whole site after my webhost forced me to update
   php.
 * I tried what you told me to do, removed the plugin and updated to php 8.1 and
   installed the plugin again (through the built in plugin “store”).
 * It still crashes my site, without it even doing anyting to my widgets, just by
   activating the plugin, i can however browser the admin site.
 *     ```wp-block-code
       Fatal error: Uncaught Error: Undefined constant "retrobutiken" in /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/plugins/widget-options/includes/widgets/display.php(402) : eval()'d code:1 Stack trace: #0 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/plugins/widget-options/includes/widgets/display.php(402): eval() #1 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/plugins/widget-options/includes/widgets/extras.php(153): widgetopts_display_callback(Array, Object(stdClass), '') #2 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/class-wp-hook.php(308): widgetopts_sidebars_widgets(Array) #3 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #4 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/widgets.php(1039): apply_filters('sidebars_widget...', Array) #5 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/widgets.php(975): wp_get_sidebars_widgets() #6 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/themes/redparts/inc/class-shop.php(102): is_active_sidebar('redparts-shop') #7 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/themes/redparts/inc/class-shop.php(237): RedParts\Shop->get_layout() #8 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/themes/redparts/inc/class-style.php(1703): RedParts\Shop->get_subcategory_columns() #9 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/themes/redparts/inc/class-style.php(1727): RedParts\Style->get_categories_list_css() #10 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/themes/redparts/inc/class-theme.php(371): RedParts\Style->css() #11 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/class-wp-hook.php(308): RedParts\Theme->enqueue_scripts('') #12 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #13 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #14 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/script-loader.php(2180): do_action('wp_enqueue_scri...') #15 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/class-wp-hook.php(308): wp_enqueue_scripts('') #16 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #17 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #18 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/general-template.php(3043): do_action('wp_head') #19 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/themes/redparts/header.php(27): wp_head() #20 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/template.php(783): require_once('/customers/c/2/...') #21 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/template.php(718): load_template('/customers/c/2/...', true, Array) #22 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #23 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/themes/redparts/page.php(18): get_header() #24 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-includes/template-loader.php(106): include('/customers/c/2/...') #25 /customers/c/2/8/matochnostalgi.com/httpd.www/wp-blog-header.php(19): require_once('/customers/c/2/...') #26 /customers/c/2/8/matochnostalgi.com/httpd.www/index.php(17): require('/customers/c/2/...') #27 {main} thrown in /customers/c/2/8/matochnostalgi.com/httpd.www/wp-content/plugins/widget-options/includes/widgets/display.php(402) : eval()'d code on line 1
       ```
   
 * Any idea?
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-update-plugin-crashes-website/#post-16332992)
 * [@eke1](https://wordpress.org/support/users/eke1/), I can confirm the plugin 
   works with PHP 8.0.25. I have not tested PHP 8.1.x yet. However in your case 
   I suspect that there might be a conflict with a plugin and or your theme. You
   should carry out a plugin and theme conflict test. This will confirm to you if
   your issue is related to one of your plugins and or theme and not Widget Options.
 * Kind regards.
    -  This reply was modified 3 years, 4 months ago by [mbrsolution](https://wordpress.org/support/users/mbrsolution/).
 *  Plugin Author [Mej de Castro](https://wordpress.org/support/users/mej/)
 * (@mej)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/php-update-plugin-crashes-website/#post-16340176)
 * Hi [@mbrsolution](https://wordpress.org/support/users/mbrsolution/) , thank you
   for your support here. The whole Widget Options team appreciated it. 🙂
   Hi [@mbrsolution](https://wordpress.org/support/users/mbrsolution/),
   yes, please follow through [@mbrsolution](https://wordpress.org/support/users/mbrsolution/)
   suggestions. Thanks, and please let us know how it goes.
 * Regards,
   Mej

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Update? Plugin crashes website’ is closed to new replies.

 * ![](https://ps.w.org/widget-options/assets/icon-256x256.gif?rev=2513739)
 * [Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets](https://wordpress.org/plugins/widget-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-options/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-options/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Mej de Castro](https://wordpress.org/support/users/mej/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/php-update-plugin-crashes-website/#post-16340176)
 * Status: resolved