PRO vs PHP

I run Pro on multiple websites at the same hosting business. Recently I started getting fatal errors and website will not load. I will go into cpanel and change the version from 8.1 back to version 7.4 WEbsite loads. Clear the cache and then change the PHP version back to 8.0 and site works. Clear the cache and then change the version to the original setting and website loads. It is an intermittent problem that I have discussed with the host. Pro is supposed to be compatible with PHP 8.1 and some sites work just fines. Then all of a sudden one of the sites will lock up and send a fatal error. Any thoughts as to why this would be happening?

Right now all the websites are running with no problems. All on various versions of PHP. 7.4 is the farthest I went back.

IS there something in an HTaccess file that would be telling the program what to load and bypass the cpanel settings?

Hello @kkc3388,

Thanks for writing in! Please make sure that you are using the latest version of the Pro theme because that is the version that is compatible with PHP 8.1. Also, please check if you are using a child theme or not. If you are, there might be some custom coding in the Child theme that is not compatible with PHP 8.1 which may have caused the issue.

Best Regards.

I am having the same issue. I have Pro Version: 6.2.4 and if i upgrade the hosting to php 8.0 or 8.1 the site crashes. I also tried using the child theme or not. Same issue.

Please help,
MC

@mc2tampa @kkc3388
As @ruenel mentioned, I also had the same issues, until I checked logs and noticed some of my child functions.php that would be triggered on certain pages/posts, cause those issues, and throw an infinite loop, causing the site to crash.

A few things I experienced:

  • make sure the functions return instead of echo the results (which in most cases, just replace the word and it’s done)
  • checked log output in separate window, and go through all the pages that might have something triggering (custom shortcode/function or w/e) an error, and it will give you the line to edit

Hi Jon,

Thanks for sharing the probable reason behind the problem here with others.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.