Support » Plugin: Head & Footer Code » fatal error after update

  • Resolved amaronew

    (@amaronew)


    After uopdate I got a fatal error:
    Parse error: syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{‘ or ‘$’ in /var/www/vhosts/mysite.it/httpdocs/wp-content/plugins/head-footer-code_old/inc/class-auhfc-meta-box.php on line 18

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @amaronew,

    You probably use unsupported legacy PHP version (prior to 5.5), is that correct?

    Please update PHP to at least 5.5, or edit file /var/www/vhosts/mysite.it/httpdocs/wp-content/plugins/head-footer-code_old/inc/class-auhfc-meta-box.php and replace code

    [ self::class, 'html' ],

    with

    [ 'AUHfc_Meta_Box', 'html' ],

    Thanks,
    Aleksandar

    Yes, i got a previous PHP version.. i made the modification you suggest and now it is working. tks

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