wordpress page crash after upgrade from PHP 7.4 to 8.1

turbolego
4 Posts
turbolego posted this 08 January 2023

Error: (can also be seen live here: https://leonberger.online )

Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/5/l/leonbergeronline/www/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /home/5/l/leonbergeronline/www/wp-includes/class-wp-widget.php:163 Stack trace: #0 /home/5/l/leonbergeronline/www/wp-includes/class-wp-widget-factory.php(62): WP_Widget->__construct() #1 /home/5/l/leonbergeronline/www/wp-includes/widgets.php(115): WP_Widget_Factory->register('VMenuWidget') #2 /home/5/l/leonbergeronline/www/wp-content/themes/NLBK051219b/library/widgets.php(271): register_widget('VMenuWidget') #3 /home/5/l/leonbergeronline/www/wp-includes/class-wp-hook.php(308): artWidgetsInit('') #4 /home/5/l/leonbergeronline/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /home/5/l/leonbergeronline/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/5/l/leonbergeronline/www/wp-includes/widgets.php(1854): do_action('widgets_init') #7 /home/5/l/leonbergeronline/www/wp-includes/class-wp-hook.php(308): wp_widgets_init('') #8 /home/5/l/leonbergeronline/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #9 /home/5/l/leonbergeronline/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /home/5/l/leonbergeronline/www/wp-settings.php(617): do_action('init') #11 /home/5/l/leonbergeronline/www/wp-config.php(90): require_once('/home/5/l/leonb...') #12 /home/5/l/leonbergeronline/www/wp-load.php(50): require_once('/home/5/l/leonb...') #13 /home/5/l/leonbergeronline/www/wp-blog-header.php(13): require_once('/home/5/l/leonb...') #14 /home/5/l/leonbergeronline/www/index.php(17): require('/home/5/l/leonb...') #15 {main} thrown in /home/5/l/leonbergeronline/www/wp-includes/class-wp-widget.php on line 163

Error: (can also be seen live here: https://leonberger.online ) Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/5/l/leonbergeronline/www/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /home/5/l/leonbergeronline/www/wp-includes/class-wp-widget.php:163 Stack trace: #0 /home/5/l/leonbergeronline/www/wp-includes/class-wp-widget-factory.php(62): WP_Widget->__construct() #1 /home/5/l/leonbergeronline/www/wp-includes/widgets.php(115): WP_Widget_Factory->register('VMenuWidget') #2 /home/5/l/leonbergeronline/www/wp-content/themes/NLBK051219b/library/widgets.php(271): register_widget('VMenuWidget') #3 /home/5/l/leonbergeronline/www/wp-includes/class-wp-hook.php(308): artWidgetsInit('') #4 /home/5/l/leonbergeronline/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #5 /home/5/l/leonbergeronline/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /home/5/l/leonbergeronline/www/wp-includes/widgets.php(1854): do_action('widgets_init') #7 /home/5/l/leonbergeronline/www/wp-includes/class-wp-hook.php(308): wp_widgets_init('') #8 /home/5/l/leonbergeronline/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #9 /home/5/l/leonbergeronline/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #10 /home/5/l/leonbergeronline/www/wp-settings.php(617): do_action('init') #11 /home/5/l/leonbergeronline/www/wp-config.php(90): require_once('/home/5/l/leonb...') #12 /home/5/l/leonbergeronline/www/wp-load.php(50): require_once('/home/5/l/leonb...') #13 /home/5/l/leonbergeronline/www/wp-blog-header.php(13): require_once('/home/5/l/leonb...') #14 /home/5/l/leonbergeronline/www/index.php(17): require('/home/5/l/leonb...') #15 {main} thrown in /home/5/l/leonbergeronline/www/wp-includes/class-wp-widget.php on line 163
Vote to pay developers attention to this features or issue.
8 Comments
Order By: Standard | Newest
abrar
2 Posts
abrar posted this 09 September 2023

Hi,

This issue still seems to be persist. Do we have any solution for PHP version 8?

I would appreciate, if you can guide us in the right direction. Thanks!

Hi, This issue still seems to be persist. Do we have any solution for PHP version 8? I would appreciate, if you can guide us in the right direction. Thanks!
turbolego
4 Posts
turbolego posted this 09 August 2023

seems like something simply updated class-wp-widget-factory.php
i dunno who the culprit is but
it basically changes line 62 to

      $this->widgets[ $widget ] = new $widget( );

so simply fix line 62 with

      $this->widgets[ $widget ] = new $widget( $widget, $widget );

Nah, this change results in the same error as i got with the latest version of Themler back in January.

But thanks for the suggestion, seems like Themler has a bug...

Fatal error: Uncaught Error: Call to undefined function create_function() in /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes-helper.php:64 Stack trace: #0 /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes.php(399): ShortcodesHelper::addShortcode('affix', 'theme_shortcode...') #1 /home/6/l/leonbergeronline/www/wp-includes/template.php(783): require_once('/home/6/l/leonb...') #2 /home/6/l/leonbergeronline/www/wp-includes/template.php(718): load_template('/home/6/l/leonb...', true, Array) #3 /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/functions.php(448): locate_template(Array, true) #4 /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/functions.php(48): theme_include_lib('shortcodes.php') #5 /home/6/l/leonbergeronline/www/wp-settings.php(585): include('/home/6/l/leonb...') #6 /home/6/l/leonbergeronline/www/wp-config.php(90): require_once('/home/6/l/leonb...') #7 /home/6/l/leonbergeronline/www/wp-load.php(50): require_once('/home/6/l/leonb...') #8 /home/6/l/leonbergeronline/www/wp-blog-header.php(13): require_once('/home/6/l/leonb...') #9 /home/6/l/leonbergeronline/www/index.php(17): require('/home/6/l/leonb...') #10 {main} thrown in /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes-helper.php on line 64

> seems like something simply updated class-wp-widget-factory.php > i dunno who the culprit is but > it basically changes line 62 to > > $this->widgets[ $widget ] = new $widget( ); > > so simply fix line 62 with > > $this->widgets[ $widget ] = new $widget( $widget, $widget ); Nah, this change results in the same error as i got with the latest version of Themler back in January. But thanks for the suggestion, seems like Themler has a bug... Fatal error: Uncaught Error: Call to undefined function create_function() in /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes-helper.php:64 Stack trace: #0 /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes.php(399): ShortcodesHelper::addShortcode('affix', 'theme_shortcode...') #1 /home/6/l/leonbergeronline/www/wp-includes/template.php(783): require_once('/home/6/l/leonb...') #2 /home/6/l/leonbergeronline/www/wp-includes/template.php(718): load_template('/home/6/l/leonb...', true, Array) #3 /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/functions.php(448): locate_template(Array, true) #4 /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/functions.php(48): theme_include_lib('shortcodes.php') #5 /home/6/l/leonbergeronline/www/wp-settings.php(585): include('/home/6/l/leonb...') #6 /home/6/l/leonbergeronline/www/wp-config.php(90): require_once('/home/6/l/leonb...') #7 /home/6/l/leonbergeronline/www/wp-load.php(50): require_once('/home/6/l/leonb...') #8 /home/6/l/leonbergeronline/www/wp-blog-header.php(13): require_once('/home/6/l/leonb...') #9 /home/6/l/leonbergeronline/www/index.php(17): require('/home/6/l/leonb...') #10 {main} thrown in /home/6/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes-helper.php on line 64
minoumimi
1 Posts
minoumimi posted this 08 August 2023

seems like something simply updated class-wp-widget-factory.php
i dunno who the culprit is but
it basically changes line 62 to

        $this->widgets[ $widget ] = new $widget( );

so simply fix line 62 with

        $this->widgets[ $widget ] = new $widget( $widget, $widget );

seems like something simply updated class-wp-widget-factory.php i dunno who the culprit is but it basically changes line 62 to $this->widgets[ $widget ] = new $widget( ); so simply fix line 62 with $this->widgets[ $widget ] = new $widget( $widget, $widget );
appliancerepaircalg01
32 Posts
appliancerepaircalg01 posted this 04 August 2023

Thank you for sharing this blog upgrade. Keep posting. manage rental Siesta Key, FL

Thank you for sharing this blog upgrade. Keep posting. [manage rental Siesta Key, FL][1] [1]: https://www.siestakeypropertymanagement.com/
gallwasingeborg
3 Posts
gallwasingeborg posted this 13 May 2023

That is battling. I was stunned by your affiliation. I'm happy to see a particularly subject. Altruisticly go to my blog and read it. www.cfahome.com

That is battling. I was stunned by your affiliation. I'm happy to see a particularly subject. Altruisticly go to my blog and read it. [www.cfahome.com][1] [1]: https://www.cfa-home.net/
turbolego
4 Posts
turbolego posted this 13 January 2023

Hello,

Looks like this is Artisteer template? Or did you export it to Themler? In any case, we would recommend to try this latest Artisteer version and re-export the theme to Themler for Wordpress with it:

http://files3.artisteer.com/Artisteer.4.3.0.60928.exe

Sincerely,
Nettie

We have tried both with the latest version of Artisteer and Themler.

Last try with the latest version of Themler still results in errors.

Is this a common error? Do you have a solution for this?

Thanks for your help so far! :D

Fatal error: Uncaught Error: Call to undefined function create_function() in /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes-helper.php:64 Stack trace: #0 /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes.php(399): ShortcodesHelper::addShortcode('affix', 'theme_shortcode...') #1 /home/5/l/leonbergeronline/www/wp-includes/template.php(783): require_once('/home/5/l/leonb...') #2 /home/5/l/leonbergeronline/www/wp-includes/template.php(718): load_template('/home/5/l/leonb...', true, Array) #3 /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/functions.php(448): locate_template(Array, true) #4 /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/functions.php(48): theme_include_lib('shortcodes.php') #5 /home/5/l/leonbergeronline/www/wp-settings.php(585): include('/home/5/l/leonb...') #6 /home/5/l/leonbergeronline/www/wp-config.php(90): require_once('/home/5/l/leonb...') #7 /home/5/l/leonbergeronline/www/wp-load.php(50): require_once('/home/5/l/leonb...') #8 /home/5/l/leonbergeronline/www/wp-admin/admin.php(34): require_once('/home/5/l/leonb...') #9 /home/5/l/leonbergeronline/www/wp-admin/themes.php(10): require_once('/home/5/l/leonb...') #10 {main} thrown in /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes-helper.php on line 64

> Hello, > > Looks like this is Artisteer template? Or did you export it to Themler? In any case, we would recommend to try this latest Artisteer version and re-export the theme to Themler for Wordpress with it: > > http://files3.artisteer.com/Artisteer.4.3.0.60928.exe > > Sincerely, > Nettie We have tried both with the latest version of Artisteer and Themler. Last try with the latest version of Themler still results in errors. Is this a common error? Do you have a solution for this? Thanks for your help so far! :D Fatal error: Uncaught Error: Call to undefined function create_function() in /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes-helper.php:64 Stack trace: #0 /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes.php(399): ShortcodesHelper::addShortcode('affix', 'theme_shortcode...') #1 /home/5/l/leonbergeronline/www/wp-includes/template.php(783): require_once('/home/5/l/leonb...') #2 /home/5/l/leonbergeronline/www/wp-includes/template.php(718): load_template('/home/5/l/leonb...', true, Array) #3 /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/functions.php(448): locate_template(Array, true) #4 /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/functions.php(48): theme_include_lib('shortcodes.php') #5 /home/5/l/leonbergeronline/www/wp-settings.php(585): include('/home/5/l/leonb...') #6 /home/5/l/leonbergeronline/www/wp-config.php(90): require_once('/home/5/l/leonb...') #7 /home/5/l/leonbergeronline/www/wp-load.php(50): require_once('/home/5/l/leonb...') #8 /home/5/l/leonbergeronline/www/wp-admin/admin.php(34): require_once('/home/5/l/leonb...') #9 /home/5/l/leonbergeronline/www/wp-admin/themes.php(10): require_once('/home/5/l/leonb...') #10 {main} thrown in /home/5/l/leonbergeronline/www/wp-content/themes/NLBK120123a/library/shortcodes-helper.php on line 64
Support Team
Support Team posted this 10 January 2023

Hello,

Looks like this is Artisteer template? Or did you export it to Themler? In any case, we would recommend to try this latest Artisteer version and re-export the theme to Themler for Wordpress with it:

http://files3.artisteer.com/Artisteer.4.3.0.60928.exe

Sincerely,
Nettie

Hello, Looks like this is Artisteer template? Or did you export it to Themler? In any case, we would recommend to try this latest Artisteer version and re-export the theme to Themler for Wordpress with it: http://files3.artisteer.com/Artisteer.4.3.0.60928.exe Sincerely, Nettie
turbolego
4 Posts
turbolego posted this 08 January 2023

According to this file: www/wp-content/themes/NLBK051219b/script.js

/* Created by Artisteer v4.3.0.60745 */

According to this file: www/wp-content/themes/NLBK051219b/script.js /* Created by Artisteer v4.3.0.60745 */
You must log in or register to leave comments