DUPLICATE: PHP Fatal error: Uncaught Error: Using $this when not in object context in searchform.php:4

Bricks Version: 1.6.1
Browser: Safari
OS: macOS
URL: Error Log File

When looking at the error log, I keep seeing this line

PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/web/site/public_html/wp-content/themes/bricks/searchform.php:4

Here is the PHP Stacktrace

/var/web/site/public_html/wp-includes/general-template.php(308): require() /var/web/site/public_html/wp-content/themes/bricks/404.php(11): get_search_form(Array) /var/web/site/public_html/wp-includes/template-loader.php(106): include('/var/web/site/p...') /var/web/site/public_html/wp-blog-header.php(19): require_once('/var/web/site/p...') /var/web/site/public_html/index.php(17): require('/var/web/site/p...') {main} thrown in /var/web/site/public_html/wp-content/themes/bricks/searchform.php on line 4

The page seems to be working fine, but I discover this while looking for another issue.

I have the same problem, posted here.

Thank you @Sandro. I’ll add my comment there to continue the conversation.

Hi Robert,
Thanks so much for your report.

I’ll close this thread and reply over at the other thread.

Best regards,
timmse

1 Like