• Resolved krachtinternetmarketing

    (@krachtinternetmarketing)


    After we converted the server version from PHP 7.4 to PHP 8.4, we were able to create a new page in the base language Dutch, and it displayed correctly. However, after converting to English, an error appeared on the front-end. We switched the PHP version back to PHP 7.4, and now it’s working again.
    What can we do to make it work in PHP 8.4?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    What are the details of this error?

    Thread Starter krachtinternetmarketing

    (@krachtinternetmarketing)

    This error is shown on the English page:
    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    This message is displayed in the menu bar. The rest of the content below it is hidden.

    See this link: https://www.detombstonespecialist.nl/en/test/

    Plugin Author Chouby

    (@chouby)

    This won’t help. What I need to understand what’s happening on your site are the technical details of the error (which error, which lines, which lines were executed before). So I need that you log the error to a file and that you copy the content here.

    See https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/ to know how to generate a debug log. Maybe your host provider support can assist you to get this error.

    • This reply was modified 8 months ago by Chouby. Reason: typos
    Thread Starter krachtinternetmarketing

    (@krachtinternetmarketing)

    My apologies for the inconvenience. This worked fine in PHP 7.4. But it didn’t in version 8.4.
    I assumed $languages was an array of arrays (like [[‘url’ => …, ‘name’ => …], …]) – but $languages likely became a string (e.g., ‘en’ or ‘nl’) or wasn’t defined correctly.

    We’ve adjusted the code in the header.php file and the error has been resolved.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP 8.4 Issue’ is closed to new replies.