Fatal error when translating page
-
I’ve been using the plugin fine for the last few hours, translating pages. But I went to click on the flag on a page to translate it and got the “Something went wrong” error. I then tried to use the Bulk Actions translate option and I got a fatal error:
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /sites/www.domain.com/files/wp-content/plugins/auto-translator-polylang/includes/Base/ATFP_Translation.php:551 Stack trace: #0 /sites/www.domain.com/files/wp-content/plugins/auto-translator-polylang/includes/Base/ATFP_Translation.php(551): count() #1 /sites/www.domain.com/files/wp-includes/class-wp-hook.php(324): ATFP_Includes\Base\ATFP_Translation->bulk_translate_posts_notice() #2 /sites/www.domain.com/files/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /sites/www.domain.com/files/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /sites/www.domain.com/files/wp-admin/admin-header.php(313): do_action() #5 /sites/www.domain.com/files/wp-admin/edit.php(411): require_once(‘…’) #6 {main} thrown in /sites/www.domain.com/files/wp-content/plugins/auto-translator-polylang/includes/Base/ATFP_Translation.php on line 551
I can’t refresh the page or go to another admin page like Posts, as the error just remains. I had to go into the file and comment out that line so I could access other pages. Commenting it out actually “fixed” it and let me continue to translate pages.
The topic ‘Fatal error when translating page’ is closed to new replies.