Title: Functions.php Error
Last modified: July 10, 2024

---

# Functions.php Error

 *  [djgb63](https://wordpress.org/support/users/djgb63/)
 * (@djgb63)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/functions-php-error-3/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunctions-php-error-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [1 year, 8 months ago](https://wordpress.org/support/topic/functions-php-error-3/#post-17881307)
 * I recommend asking at [https://wordpress.org/support/theme/astra/#new-post](https://wordpress.org/support/theme/astra/#new-post)
   so the theme’s developers and support community can help you with this.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/functions-php-error-3/#post-17881706)
 * 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](https://wordpress.org/support/users/djgb63/)
 * (@djgb63)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/functions-php-error-3/#post-17884166)
 * 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](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/functions-php-error-3/#post-17884254)
 * 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:
 *     ```wp-block-code
       function wp_system_query_script()
       ```
   

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/functions-php-error-3/#post-17884254)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
