NO BUG: Received an email from WordPress about the Bricks theme causing fatal error!

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue

Today I have received the following msg from WordPress:

"WordPress has 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 your theme, Bricks.

First, visit your website (https://aidepo.net/) and check for any visible issues. Next, visit the page where the error was caught (AI Depo - sign in | AIDepo) 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."

Error Details

An error of type E_COMPILE_ERROR was caused in line 237 of the file /var/www/vhosts/xxxxxx.me/aidepo.net/wp-content/themes/bricks/functions.php. Error message: Cannot redeclare wp_system_query_script() (previously declared in /var/www/vhosts/wpshow.me/aidepo.net/wp-content/themes/bricks-child/functions.php:510)

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.6.2
Active theme: Bricks Child Theme (version 1.1)
Current plugin: (version )
PHP version 8.1.30

None of the Bricks pages are accessible via front-end, there’s no ā€œEdit with Bricksā€ link to pages in Dashboard.

Any help or advice would be appreciated!

Take a look into the functions.php file in your child theme and check for something suspicious.

No worries, just figured I’ve been hacked :slight_smile: Russians.
Believe it or not they got thru the Wordfence WP plugin.

1 Like

Did you managed to fix the issue? If so how? I would be interested how to avoid these kind of situatuons.

1 Like

I do a regular backup of an entire site so I just restored the latest one. I have had some really bad experience in the past and doing backups is a must in this day and age.

1 Like

I’m glad you figured it out. :slight_smile: I’ll mark the topic as no bug.

Matej