• Hello Everyone,

    For some reason a website that I built and update is now showing an error (see below) I have reloaded it then after 2 or 3 days I cant access it, ANY IDEAS ON HOW TO FIX IT?

    Error Details ============= An error of type E_COMPILE_ERROR was caused in line 188 of the file /home/anzrrz9oi07l/public_html/wp-content/themes/astra/functions.php. Error message: Cannot redeclare wp_system_query_script() (previously declared in /home/anzrrz9oi07l/public_html/wp-content/themes/astra-child/functions.php:86)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I recommend asking at https://wordpress.org/support/theme/astra/#new-post so the theme’s developers and support community can help you with this.

    Moderator threadi

    (@threadi)

    In your Astra child theme you use a function with exactly the same name as the Astra theme uses. The solution would be to adapt the relevant function in the Astra child theme. Change “wp_system_query_script” to “custom_wp_system_query_script”, for example.

    Thread Starter djgb63

    (@djgb63)

    Hello threadi,

    Sorry for being thick but where do I find “wp_system_query_script” as I have looked in astra child theme functions.php and the main theme but nothing in there by that name.

    David

    Moderator threadi

    (@threadi)

    Since you are using a child theme, I assumed that you had programmed it yourself? Then you should be able to find the function in the functions.php of this child theme. It should start with a line that looks something like this:

    function wp_system_query_script()
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Functions.php Error’ is closed to new replies.