Thursday, November 27, 2014

Warning: Illegal string offset 'attributes' php on line 377

To fix go to the file class/xml.php
Find line 366:
if( $v['attributes']) {
Replace with:
if( isset( $v['attributes'] ) && $v['attributes']) {
Hope this helps ;-)
https://wordpress.org/support/topic/warning-illegal-string-offset-1

Warning: Illegal string offset 'attributes' in \wp-content\plugins\automatic-youtube-video-posts\class\xml.php on line 377


Warning: Illegal string offset 'value'   php
   // In some circumstances, web-servers will double compress gzipped files.
     // This may help aleviate that issue by disabling mod-deflate.
     if ($this->mimetype() == 'application/x-gzip') {
-      $headers[] = 'Content-Encoding: gzip';
+      $headers[] = array('key' => 'Content-Encoding', 'value' => 'gzip');
     }
     if ($size = $this->info('filesize')) {

       $headers[] = array('key' => 'Content-Length', 'value' => $size);

1 comment:

  1. Are you looking for free Twitter Followers?
    Did you know that you can get these AUTOMATICALLY AND ABSOLUTELY FREE by registering on Like 4 Like?

    ReplyDelete