-
AuthorPosts
-
December 6, 2022 at 11:07 pm #1375292
Hey,
I refer to the following threat: #1374215
This threat was closed because I thought the error was fixed. Unfortunately, I just noticed that there are still errors. The payment in Woocommerce store with bank card is not possible, it displays a “fatal error”. We have this error since PHP 8.1.
The Woocommerce debug log also shows an error in the child-theme. How can I fix this? I copy the error below in the private content.Best regards
SonjaDecember 7, 2022 at 5:01 pm #1375380Hey Sonja,
Please check your code on line 51 in the functions.php file in your child theme.
Best regards,
RikardDecember 9, 2022 at 11:49 pm #1375733Hey Rikard,
at the moment there’s following code in line 51:
//add_filter(‘login_errors’, create_function(‘$a’, “return null;”));Yigit has commented it out (have a look at threat #1374215).
WordPress and Enfold work, but not the payment method in woocommerce.
What should I do? Meanwhile the store is not running for more than three weeks…Best regards,
SonjaDecember 10, 2022 at 12:42 pm #1375753Hi,
Thanks for the update. Could you try to explain the problem a bit further please? Enfold is not responsible for any payment methods, so maybe it would be a better idea to reach out to the developers of that solution?
Best regards,
RikardDecember 12, 2022 at 12:31 pm #1375929Hi Rikard,
the provider (HostEurope) has changed from PHP 7.4 to PHP 8.1. Then we had the so-called “white screen of death”. I contacted the provider’s support and they said that their error message indicated that it was an Enfold problem. I tried to update Enfold manually, but as I could not solve the problem myself, I turned to the Enfold support.
You told me to look at line 51 in function.php. Yigit got wordpress working again after “commenting out” the line. You also told me to look at that line of code on 7 December. That line is commented out, but without it the payment method doesn’t seem to work. I’m worried that I’ll be back in front of a blank page when I try it out….Best regards, Sonja
December 12, 2022 at 3:48 pm #1375958Hi,
Thanks for the update. The code is added to your child theme functions.php file, not to the parent theme functions.php file. We can’t be responsible for code being added to your child theme unfortunately. What you add to your child theme is completely up to you.
Best regards,
RikardDecember 14, 2022 at 1:25 pm #1376133Hi Rikard,
you are right. Found the solution (it had nothing at all to do with the code). You can close the threat.
Best regards, Sonja
December 14, 2022 at 3:58 pm #1376177 -
AuthorPosts
- The topic ‘Fatal error since PHP 8.1’ is closed to new replies.