Title: PHP 8.4 Issue
Last modified: July 25, 2025

---

# PHP 8.4 Issue

 *  Resolved [krachtinternetmarketing](https://wordpress.org/support/users/krachtinternetmarketing/)
 * (@krachtinternetmarketing)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-4-issue/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-4-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-4-issue/#post-18571125)
 * Hello,
 * What are the details of this error?
 *  Thread Starter [krachtinternetmarketing](https://wordpress.org/support/users/krachtinternetmarketing/)
 * (@krachtinternetmarketing)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-4-issue/#post-18573629)
 * This error is shown on the English page:
   There has been a critical error on this
   website.
 * [[[Learn more about troubleshooting WordPress.](https://wordpress.org/documentation/article/faq-troubleshooting/)
 * 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/](https://www.detombstonespecialist.nl/en/test/)
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-4-issue/#post-18574226)
 * 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/](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 10 months, 2 weeks ago by [Chouby](https://wordpress.org/support/users/chouby/).
      Reason: typos
 *  Thread Starter [krachtinternetmarketing](https://wordpress.org/support/users/krachtinternetmarketing/)
 * (@krachtinternetmarketing)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-4-issue/#post-18574281)
 * 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.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [krachtinternetmarketing](https://wordpress.org/support/users/krachtinternetmarketing/)
 * Last activity: [10 months, 2 weeks ago](https://wordpress.org/support/topic/php-8-4-issue/#post-18574281)
 * Status: resolved