• Resolved drewmca

    (@drewmca)


    When I ran an update on Header Footer Code, my site (new to me) never came back up. I did notice that the PHP version running the site was kicking an error that it was old.

    Here’s the error (that currently displays on the site):
    Parse error: syntax error, unexpected ‘[‘ in /home/content/04/6671404/html/spark/wp-content/plugins/head-footer-code/inc/helpers.php on line 46

    Here’s the code the error references:
    ‘ wp_die(
    ‘<p>’ . sprintf(
    /* translators: %1$s will be replaced with plugin name Head & Footer Code
    %2$s will be replaced with related software name (PHP or WordPress)
    %3$s will be replaved with minimal version of related software required to plugin work properly */
    esc_html__( ‘The %1$s plugin requires %2$s version %3$s or greater.’, ‘head-footer-code’ ),
    sprintf( ‘%s‘, esc_html__( ‘Head & Footer Code’, ‘head-footer-code’ ) ),
    $flag,
    $version
    ) . ‘</p>’,
    esc_html__( ‘Plugin Activation Error’, ‘head-footer-code’ ),
    [
    ‘response’ => 200,
    ‘back_link’ => true,
    ]
    );’

    Any help would be greatly appreciated!

    Thank you,

    –Drew

    • This topic was modified 5 years, 8 months ago by drewmca.

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

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Plugin crashed site running old version of PHP’ is closed to new replies.