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

---

# PHP Warning: Illegal string offset

 *  Resolved [Terry J](https://wordpress.org/support/users/texasbiz/)
 * (@texasbiz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-5/)
 * Have been looking for a plugin like this!
 * Running on local dev server and getting error below. Never had another plugin
   throw errors like this and wondering if maybe you could point me in right direction:
 * PHP Error: PHP Warning: Illegal string offset ‘path’ in C:\Ampps\wordpress\wp-
   content\plugins\static-html-output-plugin\views\system-requirements.phtml on 
   line 20
 * I am running PHP 7.2.
 * Thanks!

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

 *  Plugin Author [Leon Stafford](https://wordpress.org/support/users/leonstafford/)
 * (@leonstafford)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-5/#post-9932891)
 * Hi Terry,
 * Thanks for your interest in the plugin and for sharing this issue.
 * Hmm, as it’s a non-critical line throwing the error, could you please try commenting
   it out (edit that file mentioned, at line 20 and add two slashes to the front
   of the line, as follows:
 * `//$pass[] = 'Your uploads folder ('. $this->uploadsFolder['path'] .') is writable';`
 * Please let me know if that leads to any further errors or if it allows the plugin
   to work for you.
 * Cheers,
 * Leon
 *  Thread Starter [Terry J](https://wordpress.org/support/users/texasbiz/)
 * (@texasbiz)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-5/#post-9932943)
 * Hi Leon.
 * Yes not a fatal error. Has something to do with empty array which php 7 does 
   not like.
 * For now I simply placed error_reporting(0); at top of file. But did test and 
   commenting out the line also works.
 * Not the way I was wanting to do it, but it is working:)
 * Thanks for the reply Leon.
 * Terry

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/static-html-output-plugin_cce3eb.
   svg)
 * [WP2Static](https://wordpress.org/plugins/static-html-output-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/static-html-output-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/static-html-output-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/static-html-output-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/static-html-output-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/static-html-output-plugin/reviews/)

## Tags

 * [illegal string offset](https://wordpress.org/support/topic-tag/illegal-string-offset/)

 * 2 replies
 * 2 participants
 * Last reply from: [Terry J](https://wordpress.org/support/users/texasbiz/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/php-warning-illegal-string-offset-5/#post-9932943)
 * Status: resolved