Plugin crashed site running old version of PHP
-
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 46Here’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
The page I need help with: [log in to see the link]
The topic ‘Plugin crashed site running old version of PHP’ is closed to new replies.