Title: Optimize JavaScript Issue
Last modified: March 18, 2022

---

# Optimize JavaScript Issue

 *  [jhayghost](https://wordpress.org/support/users/jhayghost/)
 * (@jhayghost)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/optimize-javascript-issue/)
 * Hello,
 * We are getting 500 Internal Server Error Request Status when Optimize JavaScript
   is enabled, but it is actually loading properly. The effect of this is that GoogleBots
   can not crawl the site.
 * Please see [https://d.pr/i/uQuQvU](https://d.pr/i/uQuQvU)
 * #0 wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/
   ext/php/jsmin.php(157): WMAC\JSMin->action(3)
    #1 wp-content/plugins/clearfy/
   components/minify-and-combine/includes/classes/ext/php/jsmin.php(96): WMAC\JSMin-
   >min() #2 wp-content/plugins/clearfy/components/minify-and-combine/includes/classes/
   class-scripts.php(615): WMAC\JSMin::minify(‘this[“wp”] = th…’) #3 wp-content/
   plugins/clearfy/components/minify-and-combine/includes/classes/class-scripts.
   php(218): WMAC_PluginScripts->minifySingle(‘/nas/content/li…’) #4 wp-content/
   plugins/clearfy/components/minify-and-co in wp-content/plugins/clearfy/components/
   minify-and-combine/includes/classes/ext/php/jsmin.php on line 264 [18-Mar-2022
   08:13:06 UTC] PHP Notice: add_theme_support( ‘post-formats’ ) was called **incorrectly**.
   You need to pass an array of post formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:06 UTC] PHP Notice: add_theme_support(‘
   post-formats’ ) was called **incorrectly**. You need to pass an array of post
   formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:17 UTC] PHP Notice: add_theme_support(‘
   post-formats’ ) was called **incorrectly**. You need to pass an array of post
   formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:18 UTC] PHP Notice: add_theme_support(‘
   post-formats’ ) was called **incorrectly**. You need to pass an array of post
   formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:18 UTC] PHP Notice: add_theme_support(‘
   post-formats’ ) was called **incorrectly**. You need to pass an array of post
   formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:19 UTC] PHP Notice: add_theme_support(‘
   post-formats’ ) was called **incorrectly**. You need to pass an array of post
   formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:20 UTC] PHP Notice: add_theme_support(‘
   post-formats’ ) was called **incorrectly**. You need to pass an array of post
   formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:21 UTC] PHP Notice: add_theme_support(‘
   post-formats’ ) was called **incorrectly**. You need to pass an array of post
   formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:24 UTC] PHP Notice: add_theme_support(‘
   post-formats’ ) was called **incorrectly**. You need to pass an array of post
   formats. Please see [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
   for more information. (This message was added in version 5.6.0.) in wp-includes/
   functions.php on line 5768 [18-Mar-2022 08:13:25 UTC] PHP Fatal error: Uncaught
   WMAC\JSMin_UnterminatedRegExpException: WMAC\JSMin: Unterminated RegExp at byte
   109586: /wp:${blockName} –>`; in wp-content/plugins/clearfy/components/minify-
   and-combine/includes/classes/ext/php/jsmin.php:264

The topic ‘Optimize JavaScript Issue’ is closed to new replies.

 * ![](https://ps.w.org/clearfy/assets/icon-256x256.gif?rev=2392119)
 * [Clearfy Cache – WordPress optimization plugin, Minify HTML, CSS & JS, Defer](https://wordpress.org/plugins/clearfy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/clearfy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/clearfy/)
 * [Active Topics](https://wordpress.org/support/plugin/clearfy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/clearfy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/clearfy/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jhayghost](https://wordpress.org/support/users/jhayghost/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/optimize-javascript-issue/)
 * Status: not resolved