• Resolved sonaht

    (@sonaht)


    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 ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tim W

    (@timwhitlock)

    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 to get around the error and log the cause. Are you able to install this and try it?

    Thread Starter sonaht

    (@sonaht)

    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.