• Resolved preseli

    (@preseli)


    with PHP 5.3 we get error

    PHP Parse error: syntax error, unexpected ‘[‘ in /home/abc/public_html/wp-content/plugins/widgets-on-pages/public/class-widgets-on-pages-public.php on line 126

    upgrading to PHP 5.6 fixed the error.

    ATB preseli

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author toddhalfpenny

    (@toddhalfpenny)

    Cheers for the info @preseli.
    I will try to work out and fix this.
    Thanks again for the info and great news on getting it working again.

    Thread Starter preseli

    (@preseli)

    Hi, thanks for the follow up @toddhalfpenny

    My PHP was old so it was good to upgrade it… I hope my post can help others ??

    Great work from you guys…. this plugin is used on a site designed by someone else I have ended up taking over and hosting so this is my first experience of troubleshooting this plugin ??

    ATB preseli

    We encountered the same error:

    Parse error: syntax error, unexpected ‘[‘ in /web/htdocs/www.eumm-nord.it/home/site/wp-content/plugins/widgets-on-pages/public/class-widgets-on-pages-public.php on line 126

    We are beginners of Wp, after the update of the plugin to the latest version we founded the site completely blow up and this script over there.
    Can you tell us, please, how we can fix the problem step by step?

    We don’t know what is this PHP and how to update it. ??
    Thank you for every help you can give to us.

    ps: We are trying to fix it with filezilla, but it is very difficult for us.

    EDIT: We are running Wp version 4.7.3, the latest version.
    Nothing more to say, for now.

    • This reply was modified 7 years, 11 months ago by gloca89.

    Resolved! Thank you anyway ??

    Thread Starter preseli

    (@preseli)

    Hi @gloca89, sorry for not replying sooner. I was away from my computer…
    My best tip is to get your web host to update PHP for you unless you can do it yourself via CPANEL in your web setup.
    The other option is to roll back the plugin to an earlier version

    • This reply was modified 7 years, 11 months ago by preseli.

    Seems it doesn’t work on 5.4 either, the newest I can get my clients GoDaddy account to run (yeah, I know, GoDaddy… I didn’t put it there).

    Currently digging through their backups (that I did set up) to locate the old version.

    Plugin Author toddhalfpenny

    (@toddhalfpenny)

    Sorry to here this @billsmithem.
    The prev version can be downloaded here https://downloads.www.ads-software.com/plugin/widgets-on-pages.0.0.12.zip

    Could you confirm what error message you see?

    Thread Starter preseli

    (@preseli)

    @billsmithem at the foot of the page below you can download old versions

    https://www.ads-software.com/plugins/widgets-on-pages/advanced/

    ATB preseli

    Todd, It’s the same parse error that started the thread. Otherwise, I’d have started a new one. ??

    preseli, Thanks for the note on where they’ve moved the old versions. Not used to the new layout yet. I’ve already gotten the site running from the client’s backups. Just deleted the directory and uploaded the old version.

    I’ve instructed the client not to update the plugin until they hear from us. I’d appreciate a note here when/if you can modify to be compatible with PHP 5.4.

    Plugin Author toddhalfpenny

    (@toddhalfpenny)

    Thanks @billsmithem, just had to confirm.
    If it’s no trouble could you also double-check the PHP version?
    I ask as the work I’ve done so far seems to point to pre 5.4.
    Ta

    FGD

    (@creativetopia)

    Some of us need to run older PHP versions dependent upon other items. If this cannot run pre 5.4 then we will have to leave this plugin and move on to something else.

    Plugin Author toddhalfpenny

    (@toddhalfpenny)

    Hi @creativetopia, Understand… sorry about this.
    I am currently setting up an older PHP instance for me to test against.
    I will get a fix out in the next upgrade; apologies for now you will need to use the v0.0.12 build.

    @toddhalfpenny confirmed site was initially running 5.3 via phpinfo(), switched it to 5.4 (newest available on GoDaddy) in the hope that it might work, waited the 20+ minutes it takes GoDaddy to update settings, verified running version was 5.4 via phpinfo() before testing again and getting the same error.

    Plugin Author toddhalfpenny

    (@toddhalfpenny)

    Hey all – update from me.
    I have created a local env running earlier versions of PHP and have afix that removes this error.

    I’m going to run through my tests again (including upgrading from v0.0.12 and v1.0.3) and will get an update out soon I hope. This will prob be tomorrow at some point.

    p.s. This the tool I used to create the server setups.

    Plugin Author toddhalfpenny

    (@toddhalfpenny)

    I have just pushed v1.0.4, that supports down to PHP v5.2.

    I have tested this through and it all seems good, but please let me know if you see any issues… and of course if (when) it all goes well ??

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘V1.0.3 does not work with PHP 5.3’ is closed to new replies.