Fatal error
-
Hello! After updating WP and PHP 8, I get these errors. Please tell me how fix this?
spl_autoload_register(): Argument #2 ($do_throw) has been ignored, spl_autoload_register() will always throw in /home/#/www/wp-content/plugins/loco-translate/loco.php on line 188
Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /home/#/www/wp-content/plugins/loco-translate/src/package/Header.php:32 Stack trace: #0 /home/#/www/wp-content/plugins/loco-translate/src/package/Header.php(32): method_exists(Array, 'get') #1 /home/#/www/wp-content/plugins/loco-translate/src/config/BundleReader.php(90): Loco_package_Header->__get('TextDomain') #2 /home/#/www/wp-content/plugins/loco-translate/src/config/BundleReader.php(29): Loco_config_BundleReader->loadModel(Object(Loco_config_XMLModel)) #3 /home/#/www/wp-content/plugins/loco-translate/src/package/Bundle.php(503): Loco_config_BundleReader->loadXml(Object(Loco_fs_File)) #4 /home/#/www/wp-content/plugins/loco-translate/src/package/Bundle.php(605): Loco_package_Bundle->configureXml() #5 /home/#/www/wp-content/plugins/loco-translate/src/package/Plugin.php(254): Loco_package_Bundle->configure('/home/#...', Array) #6 /home/#/www/wp-content/plugins/loco-translate/src/admin/list/PluginsController.php(16): Loco_package_Plugin::create('loco-translate/...') #7 /home/#/www/wp-content/plugins/loco-translate/src/mvc/AdminRouter.php(241): Loco_admin_list_PluginsController->render() #8 /home/#/www/wp-includes/class-wp-hook.php(287): Loco_mvc_AdminRouter->renderPage('') #9 /home/#/www/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #10 /home/#/www/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #11 /home/#/www/wp-admin/admin.php(259): do_action('loco-translate_...') #12 {main} thrown in /home/#/www/wp-content/plugins/loco-translate/src/package/Header.php on line 32
- The topic ‘Fatal error’ is closed to new replies.