Archived topic
Technical Issue
9 replies · Started by Brendan on January 21, 2021
Hi, I received this email:
G'day!
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, GP Premium.
First, visit your website (https://www.mohsreconstruction.com.au/) and check for any visible issues. Next, visit the page where the error was caught (https://www.mohsreconstruction.com.au/wp-login.php) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.6
Current theme: GeneratePress (version 3.0.2)
Current plugin: GP Premium (version 1.12.3)
PHP version 7.2.33
Error Details
=============
An error of type E_PARSE was caused in line 396 of the file /home/pterygiu/public_html/mohsreconstruction.com.au/wp-content/plugins/gp-premium/elements/class-hero.php. Error message: syntax error, unexpected ''.header-wrap .mobile-header-n' (T_ENCAPSED_AND_WHITESPACE)
can you please help? thanks
Hi,
Strange. The error is pointing to .php file for the Header Element (class-hero.php).
Can you download a fresh copy of GP Premium plugin and reinstall it? Let us know how it goes.
Hi Elvin,
I have replaced the old one with a new copy of the GP Premium plugin and reinstalled it but Wordpress still send me the email with new error details.
Error Details
=============
An error of type E_PARSE was caused in line 437 of the file /home/pterygiu/public_html/mohsreconstruction.com.au/wp-content/plugins/gp-premium/elements/class-hero.php. Error message: syntax error, unexpected ''backgr' (T_ENCAPSED_AND_WHITESPACE)
Hi there,
are you using any Header Elements ( found in Appearance > Elements ) on your site ?
Hi David,
yes I have
Hook: generate_before_header_content
Do you have any other Elements ?
Hi David, yes I do, please check this link https://tinyurl.com/y2ybz85n
Any Elements in the Trash ?
Hi David, there isn't any email in the trash.
Can you share line 437 from that file as you're seeing it on your server?
The core file has this on that line:
$css->add_property( 'background', $navigation_background_hover );
There are no parse errors there - everything is as it should be.
Let me know :)