badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Problem upgrading my Ambition Pro site to PHP 8.2

Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #103306
    Webmaster
    Participant

    My hosting site DreamHost offered an update for the PHP on our site. We were on version 7.4. When I updated to 8.2, there was a critical error that would not allow the site to load. I tried PHP version 8.0 and also got a critical error, until I went back to 7.4. And the site loaded properly.
    Support at DreamHost watched the log when I tried to update again and determined there is a problem with the Ambition Pro theme. The following code is from the log:
    PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-widget.php:163
    Stack trace:
    #0 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-widget-factory.php(62): WP_Widget->__construct()
    #1 /home/dh_a7uuem/opcaaw.com/wp-includes/widgets.php(115): WP_Widget_Factory->register(‘ambition_custom…’)
    #2 /home/dh_a7uuem/opcaaw.com/wp-content/themes/ambition-pro/inc/widgets/ambition-widgets.php(135): register_widget(‘ambition_custom…’)
    #3 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-hook.php(308): ambition_widgets_init(”)
    #4 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #5 /home/dh_a7uuem/opcaaw.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /home/dh_a7uuem/opcaaw.com/wp-includes/widgets.php(1854): do_action(‘widgets_init’)
    #7 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-hook.php(308): wp_widgets_init(”)
    #8 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #9 /home/dh_a7uuem/opcaaw.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #10 /home/dh_a7uuem/opcaaw.com/wp-settings.php(617): do_action(‘init’)
    #11 /usr/local/wp/php/WP_CLI/Runner.php(1319): require(‘/home/dh_a7uuem…’)
    #12 /usr/local/wp/php/WP_CLI/Runner.php(1237): WP_CLI\Runner->load_wordpress()
    #13 /usr/local/wp/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #14 /usr/local/wp/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
    #15 /usr/local/wp/php/wp-cli.php(27): WP_CLI\bootstrap()
    #16 /usr/local/wp/php/boot-fs.php(17): require_once(‘/usr/local/wp/p…’)
    #17 {main}
    thrown in /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-widget.php on line 163
    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-widget.php:163
    Stack trace:
    #0 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-widget-factory.php(62): WP_Widget->__construct()
    #1 /home/dh_a7uuem/opcaaw.com/wp-includes/widgets.php(115): WP_Widget_Factory->register(‘ambition_custom…’)
    #2 /home/dh_a7uuem/opcaaw.com/wp-content/themes/ambition-pro/inc/widgets/ambition-widgets.php(135): register_widget(‘ambition_custom…’)
    #3 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-hook.php(308): ambition_widgets_init(”)
    #4 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #5 /home/dh_a7uuem/opcaaw.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #6 /home/dh_a7uuem/opcaaw.com/wp-includes/widgets.php(1854): do_action(‘widgets_init’)
    #7 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-hook.php(308): wp_widgets_init(”)
    #8 /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #9 /home/dh_a7uuem/opcaaw.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #10 /home/dh_a7uuem/opcaaw.com/wp-settings.php(617): do_action(‘init’)
    #11 /usr/local/wp/php/WP_CLI/Runner.php(1319): require(‘/home/dh_a7uuem…’)
    #12 /usr/local/wp/php/WP_CLI/Runner.php(1237): WP_CLI\Runner->load_wordpress()
    #13 /usr/local/wp/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
    #14 /usr/local/wp/php/bootstrap.php(78): WP_CLI\Bootstrap\LaunchRunner->process(Object(WP_CLI\Bootstrap\BootstrapState))
    #15 /usr/local/wp/php/wp-cli.php(27): WP_CLI\bootstrap()
    #16 /usr/local/wp/php/boot-fs.php(17): require_once(‘/usr/local/wp/p…’)
    #17 {main}
    thrown in /home/dh_a7uuem/opcaaw.com/wp-includes/class-wp-widget.php on line 163

    Is there a known problem with Ambition Pro and PHP versions 8 and above? Or is this something that should be working? Has Ambition Pro been upgraded to work with PHP 8.0 or 8.2?

    I just want to be aware if I should plan to wait a while before upgrading the PHP because you are planning to provide an update to Ambition Pro. Thank you.

    #103350

    Hi there,

    Seems it’s working fine in PHP 8.0.8.
    Did you also check the plugins compatible with 8.0+ that you have used into your site?
    Also are you using the latest version of the Ambition Pro theme, if not please update the theme to the latest version, you can get the latest version of the theme by login to our site with our own account.

    If you have any problem, please let us know.

    Thank you!

    #103365
    Webmaster
    Participant

    Hi
    I am running Ambition Pro ver 1.0.6. My theme dashboard says it is up to date and there is no newer version.
    Since the error log when the upgrade to PHP 8.2 failed said the issue was with the theme, I haven’t attempted to test any other plugins. The support team from my web host said the issue pointed directly to the theme.
    All of my plugins update automatically and there are no plugins that have newer versions than I have installed on the site.

    Thanks.
    Jeff Brody

    #104021

    Hi there,

    It seems that you are using older version of the theme.
    Just login to your account into our site and download the latest version of the theme then upload to your site to update.
    If you got any problem let us know.

    Note: To get access to the latest version first you need to renew your subscription if you have not.

    Thank you!

    #104172
    Webmaster
    Participant

    OK, I finally got ver 2 of the theme active on my site. I’m hoping that’s the only thing that was keeping the upgrade to PHP 8.1 from taking place. Thank you for your assistance.

    #104242

    Hi there,

    If you have any problem do not hesitate to contact us.

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.