Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
446 views
in Q2A Core by
edited by
My site is perfectly running on php version 7.4. But when I change it to version 8.1 then my site has broken. How to fix?

some error Logs:

[13-Mar-2023 06:15:23 UTC] PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /qa-include/qa-base.php on line 722

[13-Mar-2023 06:15:23 UTC] PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /qa-include/qa-base.php(720) : eval()'d code:712
Q2A version: 1.8.5
by
Have you get backup before updating the version? you should have to reverse the process first.

1 Answer

+3 votes
by

You'll have to downgrade to PHP 7.4 or use my Q2A unofficial bugfix branch. It's backwards compatible.

by
Yes, that right. Version 8.x still bugging
...