$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>plugin wpml - PHP Warning adding menu|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugin wpml - PHP Warning adding menu

matteradmin8PV0评论

(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.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far