• Resolved Terry J

    (@texasbiz)


    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

    (@leonstafford)

    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

    (@texasbiz)

    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.