Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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
    Sonja

    #1375380

    Hey Sonja,

    Please check your code on line 51 in the functions.php file in your child theme.

    Best regards,
    Rikard

    #1375733

    Hey 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,
    Sonja

    #1375753

    Hi,

    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,
    Rikard

    #1375929

    Hi 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

    #1375958

    Hi,

    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,
    Rikard

    #1376133

    Hi 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

    #1376177

    Hi Sonja,

    Glad you figured it out and thanks for the update!

    Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Fatal error since PHP 8.1’ is closed to new replies.