• Resolved sadistiko

    (@sadistiko)


    I have several WP sites but this one isn’t important now so I can play with it until it works. I want to upgrade PHP to 7.4 or even PHP 8.0, I own a server so I can change how I want the PHP version.
    After switching from PHP 7.3 to 7.4 or 8 web pages get error 500. I already thought something was wrong with the server and the new versions of PHP7.4 and 8, but I came up with and installed a brand new WP site and it works without error both on PHP 7.4 and on PHP 8.
    I would ask for help if anyone knows what could be the cause of this problem.
    Thanks in advance
    Ivan Kosak

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Errors like this are logged. 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/

    You can also try this: 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 cannot access wp-admin, there are other ways to deactivate plugins.

    AT this time, I wouldn’t go to PHP 8. There are still missing components (e.g., pecl-imagik).

    Thread Starter sadistiko

    (@sadistiko)

    Thank you for your fast responce.
    This is debugging I got on screen:

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 32768 bytes) in /home/adp1group/public_html/wp/wp-content/plugins/woocommerce/includes/class-wc-ajax.php on line 1555

    Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 24576 bytes) in /home/adp1group/public_html/wp/wp-includes/pomo/streams.php on line 173

    It looks Woocommerce cause problem with ajax

    Thread Starter sadistiko

    (@sadistiko)

    yep, after I disable woocommerce site works, BUT Woocommerce is that main plugin I need for web shop.

    Thread Starter sadistiko

    (@sadistiko)

    Well, I’m stupid!
    I mistakenly replaced the values for memory_limit and post_max_size. Of course, as soon as I increase the memory_limit site works with woocommerce. Oh her. I apologize for my mistake and for wasting your time.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    No problem. No time wasted at all. And you learned something today, so take the rest of the day off.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change from PHP 7.3 to PHP 7.4 causes an error 500 or 503’ is closed to new replies.