Title: PHP Warning: Illegal string offset..
Last modified: May 3, 2018

---

# PHP Warning: Illegal string offset..

 *  Resolved [fh](https://wordpress.org/support/users/felipestyle77/)
 * (@felipestyle77)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-7/)
 * Version 7.4.1
 * PHP message: PHP Warning: Illegal string offset ‘path’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 148
    PHP message: PHP Warning:
   Illegal string offset ‘size’ in ../wp-content/plugins/wordpress-seo/inc/class-
   wpseo-image-utils.php on line 159 PHP message: PHP Warning: Illegal string offset‘
   id’ in ../wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php on
   line 69 PHP message: PHP Warning: Illegal string offset ‘alt’ in ../wp-content/
   plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line 70 PHP message:
   PHP Warning: Cannot assign an empty string to a string offset in ../wp-content/
   plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line 70 PHP message:
   PHP Warning: Illegal string offset ‘width’ in ../wp-content/plugins/wordpress-
   seo/inc/class-wpseo-image-utils.php on line 71 PHP message: PHP Warning: Illegal
   string offset ‘height’ in ../wp-content/plugins/wordpress-seo/inc/class-wpseo-
   image-utils.php on line 71 PHP message: PHP Warning: Illegal string offset ‘pixels’
   in ../wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line
   71 PHP message: PHP Warning: Illegal string offset ‘type’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 74 PHP message: PHP Warning:
   array_intersect_key(): Argument #1 is not an array in ../wp-content/p 2018/05/
   03 01:22:58 [error] 10847#10847: *295392 FastCGI sent in stderr: “PHP message:
   PHP Warning: Illegal string offset ‘url’ in ../wp-content/plugins/wordpress-seo/
   inc/class-wpseo-image-utils.php on line 147

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

 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-7/#post-10242007)
 * Version 7.4.1 was released to address the illegal string offset issue.
 * * Fixes an unintended backwards-incompatible change which caused “Warning: Illegal
   string offset ‘url’ in”.
 * Can you try and gather as much information for us as possible? Please perform
   the following:
 * 1. Make sure the issue doesn’t persist when Yoast SEO is disabled.
    2. [Check for conflicts](https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts).
   3. Check for [JavaScript errors with your console](https://kb.yoast.com/kb/how-to-find-javascript-errors-with-your-browsers-console).
 * If you perform a conflict check and find that the issue still occurs with all
   other plugins (except Yoast SEO) deactivated and a default theme like TwentySeventeen,
   can you confirm that the Illegal String Offset issue still occurs?
 *  Thread Starter [fh](https://wordpress.org/support/users/felipestyle77/)
 * (@felipestyle77)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-7/#post-10249694)
 * I tried everything you said but nothing worked. I reverted back to version 7.3
   right away, and everything is fine again.
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-7/#post-10251279)
 * Yoast SEO v7.4.2 has been released. Can you please update the plugin to the latest
   version to check whether this resolves the issue?
 *  Thread Starter [fh](https://wordpress.org/support/users/felipestyle77/)
 * (@felipestyle77)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-7/#post-10252560)
 * I already updated to v7.4.2 and still seeing errors/warnings.
 * [error] 5836#5836: *67053 FastCGI sent in stderr: “PHP message: PHP Warning: 
   Illegal string offset ‘url’ in ../wp-content/plugins/wordpress-seo/inc/class-
   wpseo-image-utils.php on line 101
 * PHP message: PHP Warning: Illegal string offset ‘path’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 102
 * PHP message: PHP Warning: Illegal string offset ‘size’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 113
 * PHP message: PHP Warning: Illegal string offset ‘id’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 51
 * PHP message: PHP Warning: Illegal string offset ‘alt’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 52
 * PHP message: PHP Warning: Cannot assign an empty string to a string offset in../
   wp-content/plugins/wordpress-seo/inc/class-wpseo-image-utils.php on line 52
 * PHP message: PHP Warning: Illegal string offset ‘width’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 53
 * PHP message: PHP Warning: Illegal string offset ‘height’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 53
 * PHP message: PHP Warning: Illegal string offset ‘pixels’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 53
 * PHP message: PHP Warning: Illegal string offset ‘type’ in ../wp-content/plugins/
   wordpress-seo/inc/class-wpseo-image-utils.php on line 56
 * PHP message: PHP Warning: array_intersect_key(): Argument #1 is not an array 
   in ../public_html/wp-content/plug
 *  [Elkok](https://wordpress.org/support/users/elkok/)
 * (@elkok)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-7/#post-10256118)
 * Hello,
 * I have also this problem on sites with png images.
    On sites only with jpg there
   is no problem.
 * I use version 7.4.2 and wp 4.9.5
 * Greetings
    Elko
    -  This reply was modified 8 years, 1 month ago by [Elkok](https://wordpress.org/support/users/elkok/).
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-7/#post-10262743)
 * [@felipestyle77](https://wordpress.org/support/users/felipestyle77/) [@elkok](https://wordpress.org/support/users/elkok/)
   Thanks for confirming that you are still experiencing the error when using version
   7.4.2. We have found that the error is still occurring for some users and our
   developers are working to resolve this and the fix will be included in the 7.5
   release of the plugin:
    [https://github.com/Yoast/wordpress-seo/issues/9676](https://github.com/Yoast/wordpress-seo/issues/9676)
   [https://github.com/Yoast/wordpress-seo/pull/9667](https://github.com/Yoast/wordpress-seo/pull/9667)

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

The topic ‘PHP Warning: Illegal string offset..’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-7/#post-10262743)
 * Status: resolved