• Resolved nezumi

    (@nezumi)


    Hi,
    the latest update generates a critical error on my site:

    Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in /home/httpd/web08583/www/wp/wp-content/plugins/photonic/layouts/Layout_Default.php on line 664

    It also does this after disabling all other plugins… I have the latest WP version.
    Might you have a link to the previous version of the plugin until I can figure out what is going on?
    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    What PHP version are you on? Can you switch to the latest PHP version?

    Thread Starter nezumi

    (@nezumi)

    Hi,
    I do currently use an older version of PHP, because I’m migrating an outdated site to a new version based on WordPress. Unfortunately, I have to maintain this php (5.6.40) version temporarily, to keep the old site in the air while I’m busy migrating. So it will probably fix itself after upgrading the PHP.

    But I’d like to be able to arrange my new site in the mean time, this is why I hoped you’d be able to provide the previous version so I could bring my gallery in order before switching the user acces to the new site.
    Thanks for your quick reply!

    Plugin Author Sayontan Sinha

    (@sayontan)

    You can go here: https://www.ads-software.com/plugins/photonic/advanced/. Scroll to the bottom, and you will be able to download 2.31 from there.

    Yesterday’s autoupgrade blew my site up. Expunged it from the net. What gives?

    The issue, from your wp error log: [asterixs added]

    [29-Mar-2020 14:32:54 UTC] PHP Parse error: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘ in /home/****/****_html/wp/wp-content/plugins/photonic/layouts/Layout_Default.php on line 664

    The plugin functioned flawlessly for years before this upgrade.

    Plugin Author Sayontan Sinha

    (@sayontan)

    @gwvanderleun,
    As it happens, there are two lines in the code that seem to require PHP 7.0 or higher. While I try to actively ensure that the code meets the minimum PHP version requirements (i.e. PHP 5.6), these two were done automatically by the tool I use for coding.

    If you have the option to upgrade your PHP version to 7.0 or higher (as per WP’s official recommendations), this will automatically start working. Note that WP has had this recommendation in place for well over a year, so every big hosting provider supports this.

    If you cannot upgrade PHP on your site for any reason, you have two options. First, you can downgrade Photonic to 2.3.1 by getting it from the link above. Second, if you can wait for a few hours, I am going to be releasing a patch for this shortly.

    No problem. I can wait. I just noted this.

    Thread Starter nezumi

    (@nezumi)

    Thanks!!

    Plugin Author Sayontan Sinha

    (@sayontan)

    I had released 2.33 yesterday – hope that fixes the Critical Error issue that you were seeing.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Critical error in line 664’ is closed to new replies.