Support » Plugin: WP2Static » fatal error

  • Resolved Jon Dingman

    (@jdingman)


    I installed a fresh copy of the plugin and I can’t activate it because it’s throwing a fatal error…

    Parse error: syntax error, unexpected ‘[‘ in /home/content/37/13228637/html/wp-content/plugins/static-html-output-plugin/library/StaticHtmlOutput/UrlRequest.php on line 110

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Leon Stafford

    (@leonstafford)

    Hi Jonathon,

    Thanks for using the plugin.

    I believe this is caused by introduction of one of the new features and it not being compatible with your hosting environment.

    To quickly get you out of trouble, you can download one of the zips on this page:

    https://wordpress.org/plugins/static-html-output-plugin/developers/

    I’d recommend version 1.2

    Now, to resolve the issue you’re having and get you onto the latest version of the plugin, with it’s useful new features, could you please help me to debug your situation?

    If you can run this plugin and send me the output:

    https://en-nz.wordpress.org/plugins/wordpress-php-info/

    As the output is too long to post on this support forum, please either email it to me: lionhive@gmail.com or use pastebin.com to store the output and reply to me with the link to the pastebin.

    I should then be able to work out a solution for this in not too much time.

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Hi Jonathon,

    Could you please get back to me with the PHP version in use on your server?

    Cheers,

    Leon

    Thread Starter Jon Dingman

    (@jdingman)

    PHP INFO: 5.3.24 | SAPI: cgi-fcgi

    Plugin Author Leon Stafford

    (@leonstafford)

    Thanks Jonathan,

    It took me a while to get a PHP 5.3 WP installation setup for testing.

    PHP 5.3 is no longer officially supported (http://php.net/supported-versions.php)

    This doesn’t mean I won’t work on a solution, I’m starting to take a look now.

    In the meantime, it would be good to talk to your web host to upgrade the PHP version to an officially supported version. If you’re paying for hosting, they should probably be keeping their software up to date for you, but that’s my opinion 😉

    I’ll update this ticket if I push out an updated version of the plugin which resolves this or it falls into the “will not support basket”.

    You can also download version 1.2 of the plugin here, which will not have the latest bugfixes and improvements, but will be more usable than one which doesn’t work at all on your environment:

    https://downloads.wordpress.org/plugin/static-html-output-plugin.1.2.0.zip

    Cheers,

    Leon

    Plugin Author Leon Stafford

    (@leonstafford)

    Update: I’m making some progress with adjusting some coding syntax not supported in PHP 5.3 and also downgrading the Amazon SDK used for transferring files to S3 seems like it will fix the issue. It will require a bit more time to convert the current code to use the older version of the Amazon SDK. I’ll update again, hopefully with a new release for you!

    Thread Starter Jon Dingman

    (@jdingman)

    I appreciate it. thanks Leon.

    I was able to upgrade to PHP 5.4 per your suggestion, but others will benefit from the backwards compatibility.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘fatal error’ is closed to new replies.