Title: PHP version 8.3.6 Error
Last modified: May 7, 2025

---

# PHP version 8.3.6 Error

 *  Resolved [sonaht](https://wordpress.org/support/users/sonaht/)
 * (@sonaht)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-version-8-3-6-error/)
 * I have a website and PHP 8.3.6 and I get an error;
 * Loco Translate (version 2.7.2) PHP version 8.3.6 Error Details ============= 
   An error of type E_ERROR was caused in line 104 of the file /var/www/xxx/public_html/
   wp-content/plugins/loco-translate/src/admin/list/LocalesController.php. Error
   message: Uncaught TypeError: Loco_admin_list_LocalesController::{closure}(): 
   Argument #2 ($b) must be of type ArrayAccess, array given in /var/www/xxx/public_html/
   wp-content/plugins/loco-translate/src/admin/list/LocalesController.php:104 Stack
   trace: #0 [internal function]: Loco_admin_list_LocalesController->{closure}()#
   1 /var/www/xxx/public_html/wp-content/plugins/loco-translate/src/admin/list/LocalesController.
   php(104): usort() #2 /var/www/xxx/public_html/wp-content/plugins/loco-translate/
   src/mvc/AdminRouter.php(246): Loco_admin_list_LocalesController->render() #3 /
   var/www/xxx/public_html/wp-includes/class-wp-hook.php(324): Loco_mvc_AdminRouter-
   >renderPage() #4 /var/www/xxx/public_html/wp-includes/class-wp-hook.php(348):
   WP_Hook->apply_filters() #5 /var/www/xxxr/public_html/wp-includes/plugin.php(
   517): WP_Hook->do_action() #6 /var/www/xxx/public_html/wp-admin/admin.php(259):
   do_action() #7 {main} thrown
 * Are you planning to upgrade to compatibility for that php version soon ?
 * ![](https://dev.wellapy.gr/wp-json/wp-mail-smtp/v1/e/ZGF0YSU1QmVtYWlsX2xvZ19pZCU1RD0yMTUmZGF0YSU1QmV2ZW50X3R5cGUlNUQ9b3Blbi1lbWFpbCZoYXNoPTE3MGE5YWJjY2NhMjE0Njc5MGUyZjg4NjQ5NjZjYTgwMTQwMzY4NzJiYWU3MmM2MDcyZjM0ODE1ZTBkZmE1OGM
   =)

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

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-version-8-3-6-error/#post-18454721)
 * Thanks for reporting.
 * This doesn’t look like a PHP 8.3 compatibility issue, but rather a small bug 
   where a translation file exists on disk, but is not an installed language. Possibly
   due to a wrong locale code in the file name.
 * I’ve just put a [quick fix on the dev branch](https://github.com/loco/wp-loco/blob/master/src/admin/list/LocalesController.php#L88-L94)
   to get around the error and log the cause. Are you able to install this and try
   it?
 *  Thread Starter [sonaht](https://wordpress.org/support/users/sonaht/)
 * (@sonaht)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-version-8-3-6-error/#post-18454730)
 * Hello, just did and there is no error anymore !!!
 * Thank you for this !!! amazingly / blazing fast reply !!!

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

The topic ‘PHP version 8.3.6 Error’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [sonaht](https://wordpress.org/support/users/sonaht/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/php-version-8-3-6-error/#post-18454730)
 * Status: resolved