plugin wpml - PHP Warning adding menu

admin2025-06-04  0

(sorry for my english...) I have an issue...:

I can't add / translate menus in my admin. I have this error in debug.log :

PHP Warning: strip_tags() expects parameter 1 to be string, array given in C:\wamp64\www\www.guestonline.io\wp-includes\formatting.php on line 4670

Since i installed WPML, i had many errors with my DB (primary key and auto increment erased...). I corrected theses error easly (just with SQL), but for this new problem with Menus and Warning, i don't know what to do.

Thanks a lot !

(sorry for my english...) I have an issue...:

I can't add / translate menus in my admin. I have this error in debug.log :

PHP Warning: strip_tags() expects parameter 1 to be string, array given in C:\wamp64\www\www.guestonline.io\wp-includes\formatting.php on line 4670

Since i installed WPML, i had many errors with my DB (primary key and auto increment erased...). I corrected theses error easly (just with SQL), but for this new problem with Menus and Warning, i don't know what to do.

Thanks a lot !

Share Improve this question edited Jan 16, 2019 at 16:33 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Jan 16, 2019 at 15:59 Ty-rex.frTy-rex.fr 1
Add a comment  | 

1 Answer 1

Reset to default 0

Please check the first parameter of the function stripe_tags from \wp-includes\formatting.php on line 4670. You can check the value of the parameter by using var_dump( $variable ) and if you get array then change the array to string and then pass the string in the function. You can also use the function is_array to check is this array or not.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748998952a315496.html

最新回复(0)