Title: Illegal string offset &#8211; PHP 5.4
Last modified: August 21, 2016

---

# Illegal string offset – PHP 5.4

 *  [MCM](https://wordpress.org/support/users/nathmie/)
 * (@nathmie)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/)
 * Warning: Illegal string offset ‘attributes’ in wp-content\plugins\automatic-youtube-
   video-posts\class\xml.php on line 377
 * Installed on PHP version 5.4 it works okay 5.3
 * [http://wordpress.org/extend/plugins/automatic-youtube-video-posts/](http://wordpress.org/extend/plugins/automatic-youtube-video-posts/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [ternstyle](https://wordpress.org/support/users/mpraetzel/)
 * (@mpraetzel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789001)
 * You’re saying there is an issue with PHP 5.4 but not with PHP 5.3?
 *  Thread Starter [MCM](https://wordpress.org/support/users/nathmie/)
 * (@nathmie)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789003)
 * Yes, it is still occuring after I upgraded to new version both on my local install(
   XAMPP) and live website.
 *  Plugin Author [ternstyle](https://wordpress.org/support/users/mpraetzel/)
 * (@mpraetzel)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789004)
 * What type of server is the live website?
 *  Thread Starter [MCM](https://wordpress.org/support/users/nathmie/)
 * (@nathmie)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789005)
 * Both using 5.4.
 * The live site is with Dreamhost.
 *  [nhockungfu](https://wordpress.org/support/users/nhockungfu/)
 * (@nhockungfu)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789027)
 * I also encountered this problem when adding a new channel.
    PHP version 5.4 More
   details for you: Warning: Illegal string offset ‘attributes’ in \wp-content\plugins\
   automatic-youtube-video-posts\class\xml.php on line 377
 * Warning: Cannot modify header information – headers already sent by (output started
   at \wp-content\plugins\automatic-youtube-video-posts\class\xml.php:377) in \wp-
   includes\option.php on line 568
 * Warning: Cannot modify header information – headers already sent by (output started
   at \wp-content\plugins\automatic-youtube-video-posts\class\xml.php:377) in \wp-
   includes\option.php on line 569
 *  Thread Starter [MCM](https://wordpress.org/support/users/nathmie/)
 * (@nathmie)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789040)
 * Please can you advise us how to fix this?
 *  [Morisu](https://wordpress.org/support/users/morisu/)
 * (@morisu)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789076)
 * Hello, I too am having this problem, though functionality in itself is not affected,
   the error logs for my client’s site using this plugin averages 28MB a day! They
   are a high-traffic site and I need to cut the clutter this plugin is causing.
   The site is running on PHP v5.4.4 (for local development) and PHP v5.3.27 (for
   the web server). The web server is running on Debian while the local is running
   on MAMP (Mac). I get the same number of errors for each in the logs and I also
   get another `Illegal string offset 'value' in [file path]/wp-content/plugins/
   automatic-youtube-video-posts/core/parse.php on line 264`
 * Any help will be appreciated!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789077)
 * **[@morisu](https://wordpress.org/support/users/morisu/)**: If you require assistance
   then, as per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic.
 *  [Morisu](https://wordpress.org/support/users/morisu/)
 * (@morisu)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789078)
 * Sorry about that, I have done so. Thank you.
 *  [DVDfever](https://wordpress.org/support/users/dvdfever/)
 * (@dvdfever)
 * [12 years ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789100)
 * No-one solved the problem, though. If we’re all having the same problem (me included),
   surely it’s better to keep it in the same thread?
 *  [stadulis66](https://wordpress.org/support/users/stadulis66/)
 * (@stadulis66)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789109)
 * Hi has anybody solved this problem? The web is littered with the errors of you
   do a search, including some of my AB Testing
    abtesting.runtimetv.com/‎ Warning:
   Illegal string offset ‘value’ in /home/runtime/public_html/wp-content/plugins/
   automatic-youtube-video-posts/class/xml.php on line 362. Warning: Illegal …sites!
 * I am sure a fix must be in the cards?
 *  [walpap](https://wordpress.org/support/users/walpap/)
 * (@walpap)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789111)
 * The same is happening to me, and after reloading the page it appears ok.
    I think
   the problem relies on the PSEUDO CRON JOBS the plugin has where it asks you to
   set how many hours to wait until get the videos automatically from the channel
   or playlist. Every time someone visits the site after “x” hours, the plugin tries
   to import new videos. Then the error appears. But after reloading the page evererything
   works well.
 * But maybe im wrong.
 * The author of the plugin should answer please.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Illegal string offset – PHP 5.4’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/automatic-youtube-video-posts_e39595.
   svg)
 * [Automatic Youtube Video Posts Plugin](https://wordpress.org/plugins/automatic-youtube-video-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatic-youtube-video-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatic-youtube-video-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/automatic-youtube-video-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatic-youtube-video-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatic-youtube-video-posts/reviews/)

 * 12 replies
 * 8 participants
 * Last reply from: [walpap](https://wordpress.org/support/users/walpap/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/illegal-string-offset-php-54/#post-3789111)
 * Status: not resolved