• Resolved Lore

    (@lgcdavilagmailcom)


    Hello!

    My website is currently using PHP 7.4

    I need to move it to PHP 8.1 which is the recommended version, but when someone at customer support tried to help me, he found the following error:

    PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/tulore/tulegacy.org/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /home/tulore/tulegacy.org/wp-includes/class-wp-widget.php:163

    I need to fix it, so I can move it to the PHP 8.1 version, but I’m not very savvy on web development and I need help to fix this, since it is a code use.

    Can anyone help me to resolve that issue before May 31st, otherwise I’ll be charge a maintenance fee and this is a Non-Profit that does everything Pro-Bono.

    ON THE OTHER HAND…..

    The website above is going to be replaced by https://www.stage.tulegacy.org/

    As I mentioned, everything for this Non-Profit is done Pro-bono. I’ll post another request asking for a volunteer that can help continue the new website development, since the volunteer that I previously had, couldn’t help any more. If you know someone that wants to help with this project, I’ll really appreciate if you can connect us.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • This error message often occurs when using outdated themes. Unfortunately, your website is currently not available for me, so I can’t look for it. Please check which theme you are using, how old it is and if there are any updates. If not, you should replace the theme with a newer one.

    Currently PHP 8.0 would be recommended. Most current plugins and themes are compatible with it, including WordPress 6.1.1.

    And here you can find people who could help you with your project: https://jobs.wordpress.net

    That is not true at all. WordPress itself is perfectly compatible with PHP 8.0 and that is currently the recommendation for operation. The WordPress version 6.2 released today is more compatible with PHP 8.1 than the previous versions. See also:
    https://make.www.ads-software.com/core/handbook/references/php-compatibility-and-wordpress-versions/

    @landrew: please open a separate topic for your own issue: https://www.ads-software.com/support/forum/wp-advanced/#new-topic-0

    Thread Starter Lore

    (@lgcdavilagmailcom)

    Hello threadi (@threadi)! Thank you SO MUCH for your answer.

    What I’m using is actually a child theme. The parent theme that I’m using is Catch Everest Pro. I don’t remember if I have to do something with the Child version to update it so it is compatible? It’s been so long since I modified the child theme!!!

    This is the link to the website…I hope it is visible for you: https://www.tulegacy.org/

    I’ll copy the error that was reported:

    PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /home/tulore/tulegacy.org/wp-includes/class-wp-widget-factory.php?on line 62 and at least 2 expected in /home/tulore/tulegacy.org/wp-includes/class-wp-widget.php:163

    Any suggestion?

    Moderator t-p

    (@t-p)

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    ___

    If you can install plugins, install and activate “Health Check”: https://www.ads-software.com/plugins/health-check/
    It will add some additional features under the menu item under Tools > Site Health.
    On its troubleshooting tab, you can Enable Troubleshooting Mode. This will disable all plugins, switch to a standard WordPress theme (if available), allow you to turn your plugins on and off and switch between themes, without affecting normal visitors to your site. This allows you to test for various compatibility issues.
    There’s a more detailed description about how to use the Health Check plugin and its Troubleshooting Mode at https://make.www.ads-software.com/support/handbook/appendix/troubleshooting-using-the-health-check/

    Thread Starter Lore

    (@lgcdavilagmailcom)

    Thank t-p you for your detalied email. I’ll try to do what you suggested.

    If I try with one the default themes (Twenty*) is my website https://www.tulegacy.org/ going to work the same?

    What I’m using is actually a child theme. The parent theme that I’m using is Catch Everest Pro. I don’t remember if I have to do something with the Child version to update it so it is compatible? It’s been so long since I modified the child theme!!!

    Moderator t-p

    (@t-p)

    switching theme momentarily is just for troubleshooting purpose.

    Thread Starter Lore

    (@lgcdavilagmailcom)

    Hello t-p!

    I installed the plugin that you recommended but before I run the troubleshoot, I updated the Child Theme and then I could update the website to the 8.1 PHP.

    Maybe I should just leave it alone and not run the troubleshoot?

    Thanks for your help!

    Moderator t-p

    (@t-p)

    I updated the Child Theme and then I could update the website to the 8.1 PHP.

    Glad updating theme solved the problem ??

    Thread Starter Lore

    (@lgcdavilagmailcom)

    Hello t-p!

    I got excited ahead of time. After we had “success” moving it to PHP 8.1, my website is not working anymore. No when I try to go to https://www.tulegacy.org it shows the following error: “There has been a critical error on this website”.

    I cannot even see the WordPress panel to try to change anything.

    I really messed it up ??

    Moderator t-p

    (@t-p)

    The WordPress critical error can have a variety of causes:
    – either your memory limit being surpassed, or an error in your code, plugins, or theme. It may also be an issue of database corruption.
    – Since the problem can be caused by any number of things, check the error log on your server. If you can’t find the log, please contact your host. Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there.?https://www.ads-software.com/support/article/debugging-in-wordpress/
    – Please review the following article for details on this error and how to fix it:
    https://www.wpbeginner.com/wp-tutorials/how-to-fix-the-critical-error-in-wordpress/
    https://kinsta.com/knowledgebase/there-has-been-a-critical-error-on-your-website/

    Thread Starter Lore

    (@lgcdavilagmailcom)

    Thank you again t-p

    I went ahead and deactivated all the plugins and then activated them again.

    It seems that one was causing an error, and I deleted it. BUT it seems that the probem is with the Theme that I’m using that is not compatible with the PHP 8.1. I reversed the PHP to the older one and the website is “kind of working again”.

    So I might have to contact the Theme developer to help by updating the theme and make it compatible with the PHP 8.1 or higher OR find someone that helps me fix it. My expertise is not website coding or anything else! ??

    Anyway, I’ll check the links that you sent me, but I started and something went over my head!

    Moderator t-p

    (@t-p)

    Glad you have sorted the issue.

    Again, please note to make theme/plugin compatible is the responsibility of the plugin/theme developers.

    Therefore, please report any plugin/theme issue to its developers so they can fix the issue.

    • This reply was modified 1 year, 8 months ago by t-p.

    Hi i tried this with 8.1 but wont work with my theme is there any way of updating the theme to work with 8.1

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Trying to move my website to PHP 8.1 but I had an error!!’ is closed to new replies.