Support » Plugin: Head & Footer Code » Parse error: syntax error, unexpected ‘class’ (T_CLASS), after website restore

  • Hello Aleksandar,

    PHP 7.1, I’m getting the fatal crash when trying to load admin page.

    This happens after a full restore of my website with a backup that’s only… 5 days old. I do regular updates of all my plugins so I don’t what version was on previous (apparently 10.0.9.1 as per readme.txt)

    Please help as I cannot admin my website.

    Thanks

    Mark

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

Viewing 1 replies (of 1 total)
  • Hello @dannau,

    Error you mentioned looks like one triggered on PHP under version 5.6. Anyway, as a workaround for Head & Footer Code, do the following:

    Step 1) Open file wp-content/plugins/head-footer-code/inc/class-auhfc-meta-box.php from your server in any code editor.

    Step 2) Replace line 23 from this:
    [ self::class, 'html' ],

    to this:

    [ $this, 'html' ],

    Step 3) Save file changes.

    Please let me know does this work?

    Kind regards
    Aleksandar

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.