Title: Static site errors
Last modified: May 4, 2023

---

# Static site errors

 *  Resolved [IdeFixx](https://wordpress.org/support/users/idefixx/)
 * (@idefixx)
 * [3 years ago](https://wordpress.org/support/topic/static-site-errors/)
 * Hi Frank,
 * First of all, let me thank you for a great plugin.
 * I’m not able to find out how to get rid of these two errors on my website. And
   I’m honestly also not sure if they are related to your plugin or the Simply Static
   plugin because it’s happening just on a static website, a website with a live
   WP is errorless.
 * First one: [Error] SyntaxError: Invalid regular expression: unmatched parentheses(
   anonymous function) — Invalid regular expression: unmatched parentheses
 *     ```wp-block-code
       aop_around(head,"appendChild")
       ```
   
 * Second one: [Error] ReferenceError: Can’t find variable: aop_around; Global Code—
   Can’t find variable: aop_around
 *     ```wp-block-code
       aop_around(document.body, 'appendChild');
       ```
   
 * Plugin settings:
    - JavaScript not optimized
    - CSS Code optimized
    - HTML Code optimized
    - yes/checked – Save aggregated script/css as static files?
    - yes/checked – Minify excluded CSS and JS files?
 * Let me know with any suggestions you might have or which details you need to 
   know while identifying the problem.
 * Thank you in advance for your help.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstatic-site-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years ago](https://wordpress.org/support/topic/static-site-errors/#post-16710024)
 * those errors are from the discontinued “wp donottrack” plugin idefixx and it 
   is very likely you’ll see the same errors when AO is disabled :-/
 *  Thread Starter [IdeFixx](https://wordpress.org/support/users/idefixx/)
 * (@idefixx)
 * [3 years ago](https://wordpress.org/support/topic/static-site-errors/#post-16710256)
 * Yes, that was it – disabling “wp donottrack” plugin solved errors in the console.
 * Thank you very much for your help.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years ago](https://wordpress.org/support/topic/static-site-errors/#post-16710408)
 * what might also help (if you prefer to keep wp donottrack) is disabling “minify
   inline css/ js OR optimize HTML?

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

The topic ‘Static site errors’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [ReferenceError](https://wordpress.org/support/topic-tag/referenceerror/)
 * [syntaxerror](https://wordpress.org/support/topic-tag/syntaxerror/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/static-site-errors/#post-16710408)
 * Status: resolved