• I receive this message when I try to access my website: shop.lapsuscreations.com

    Fatal error: Uncaught Error: Call to undefined function astra_html_before() in /home/lapsusne/shop.lapsuscreations.com/wp-content/themes/astra-child/header.php:13 Stack trace: #0 /home/lapsusne/shop.lapsuscreations.com/wp-includes/template.php(704): require_once() #1 /home/lapsusne/shop.lapsuscreations.com/wp-includes/template.php(653): load_template(‘/home/lapsusne/…’, true) #2 /home/lapsusne/shop.lapsuscreations.com/wp-includes/general-template.php(41): locate_template(Array, true) #3 /home/lapsusne/shop.lapsuscreations.com/wp-content/themes/astra-child/home2.php(17): get_header() #4 /home/lapsusne/shop.lapsuscreations.com/wp-includes/template-loader.php(77): include(‘/home/lapsusne/…’) #5 /home/lapsusne/shop.lapsuscreations.com/wp-blog-header.php(19): require_once(‘/home/lapsusne/…’) #6 /home/lapsusne/shop.lapsuscreations.com/index.php(17): require(‘/home/lapsusne/…’) #7 {main} thrown in /home/lapsusne/shop.lapsuscreations.com/wp-content/themes/astra-child/header.php on line 13

    I’m a WordPress beginner and am having a lot of trouble. Thanks in advance for any help.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did you make any modifications to the main Astra theme? Based upon the error message, the child theme is unable to find the code that it expects should exist.

    Thread Starter simranmunot

    (@simranmunot)

    No I didnt. I just made all the changes in the child theme.

    Hello @simranmunot,

    The error seems PHP is not able to find the function – astra_html_before() although this does exist in the theme shipped from www.ads-software.com – see here

    I would recommend you to re-install the Astra theme on your website. Since you have not yourself modified any files it is possible that your site may be affected by malware. It is very common in malware to modify theme/plugin files like this.

    After you have re-installed the theme I would recommend you to scan your website for malware by using WordFence or any other security plugins.

    Thread Starter simranmunot

    (@simranmunot)

    Sir,
    In the header.php there is mention of function astra_html_before()
    See here

    Yes, the function is called from header.php and is defined in inc/core/theme-hooks.php#L94

    Can you check if this file has the function definition?

    Also – Can you make sure if contents of functions.php file from parent theme is same as that of the file on www.ads-software.com?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error Message – How do I fix this?’ is closed to new replies.