• Resolved psabbatella

    (@psabbatella)


    Hi guys, I have just upgraded to last version of “Above the fold optimization” and the wordpress dashboard has broken. When I try to login I see the error:

    “Parse error: syntax error, unexpected ‘[‘ in /home/lopezmar/public_html/wp-content/plugins/above-the-fold-optimization/admin/admin.pwa.class.php on line 63”

    Could you help me please ?
    Thanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • What is your PHP version?

    It may caused by the array syntax “icons” => [],
    PHP version prior to 5.4 don’t support this syntax.

    Try to upgrade your PHP and see how it goes.

    • This reply was modified 7 years, 6 months ago by selse.
    Plugin Author optimalisatie

    (@optimalisatie)

    Hi psabbatella,

    Our apologies. We intend to support PHP 5.3. Besides this relative small issue the plugin is compatible with older PHP versions.

    The issue occurred when you tried to create the manifest.json file in the admin panel.

    The issue has been resolved in v2.8.13.

    Thread Starter psabbatella

    (@psabbatella)

    Hi, how should I update without access to wordpress admin ?

    thanks

    Plugin Author optimalisatie

    (@optimalisatie)

    The issue is unrelated to access of WordPress.

    Are you currently unable to login? If so, the ABTF plugin is not likely to be a possible cause since you were already able to access the PWA tab.

    Thread Starter psabbatella

    (@psabbatella)

    When I enter https://www.lopezmarisol.com/wp-admin/
    I get the error

    Parse error: syntax error, unexpected ‘[‘ in /home/lopezmar/public_html/wp-content/plugins/above-the-fold-optimization/admin/admin.pwa.class.php on line 63

    Could I update that file via FTP with the new release ?

    Plugin Author optimalisatie

    (@optimalisatie)

    Hi psabbatella,

    It would be best to do the following:

    1) login via FTP
    2) rename the directory /plugins/above-the-fold-optimization/ to /plugins/above-the-fold-optimization-disabled/
    3) login to WordPress
    4) rename the plugin back to /plugins/above-the-fold-optimization/

    The plugin will then be specifically disabled and it would be possible to upgrade the plugin with the fix for PHP 5.3.

    Thread Starter psabbatella

    (@psabbatella)

    Thanks mate, you rock

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Parse error: syntax error, unexpected ‘[‘’ is closed to new replies.