Warning appears on page after upgrade to WP 4.4.2
-
I just upgraded to WP 4.4.2 and when I did I got this warning on the top of the page:
Warning: trim() expects parameter 1 to be string, array given in /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php on line 92
How do I fix this?
-
What makes you think this is related to this plugin? Does the page in question have a YouTube video embedded on it using our shortcode? Could you provide a link to the page with the error on?
Thanks,
David.A quick Google of the error shows other users with the same error. It appears to be related, as you say, to WP 4.4.2. Can you provide me with a link to the page where the error appears?
Thanks,
David.marionpollmannceramics.com
The error goes away when I remove the plugin. This isn’t the only place it is giving the error. If I log out of the dashboard with the plugin active I get the below string of errors, I can only log back in if I deactivate the plugin:
Warning: trim() expects parameter 1 to be string, array given in /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php on line 92
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-login.php on line 387
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-login.php on line 400
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 977
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 978
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 979
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 980
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 981
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 982
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 985
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 986
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 987
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 988
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 991
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 992
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 993
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 994
Warning: Cannot modify header information – headers already sent by (output started at /home/marionpollmann/marionpollmannceramics.com/wp-includes/shortcodes.php:92) in /home/marionpollmann/marionpollmannceramics.com/wp-includes/pluggable.php on line 1228
Thanks. We’ll get to the bottom of this!
In Admin can you go into YouTube Embed -> General Settings. What is the Alternative Shortcode field set to?
David.
It is set to ‘Array’
A-ha, as I thought, that’s the cause.
Please type into this field ‘youtube_video’ (without the quotes) and then click on “Save Changes”. Does this get rid of the error?
David.
YES! Thank you.
Brilliant! Thanks for confirming that for me. I now need to get to the bottom to why this has happened in the first place – as soon as I can work it out and apply a fix, I’ll release a small update to the plugin.
David.
I’ve just pushed out version 4.3.1 which should resolve this issue for anybody else experiencing it.
David.
- The topic ‘Warning appears on page after upgrade to WP 4.4.2’ is closed to new replies.