Title: Big problem
Last modified: December 8, 2022

---

# Big problem

 *  Resolved [catuyen](https://wordpress.org/support/users/catuyen/)
 * (@catuyen)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/big-problem-37/)
 * My website runs PHP 8.0 and has Autoptimize plugin installed. Everything is ok
   but today after taking some changes in Autoptimize settings – the Search engine
   bot can’t access the site.
 * Everything is ok from the front-end view but only the search bot gets an “Internal
   500 error”.
 * I found that Autoptimize makes this problem so deactivated and removed it. Google
   search bot can access the site again.
 * Please check carefully and fix this error, not many people know it and the website
   installed Autoptimize may be lost its ranking on the search engine and the owner
   may never know the reason.

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16272512)
 * That’s interesting catuyen, I immediately checked my own crawl stats in Google
   Search Console and all is fine for my sites, so at least it’s not a generic problem
   with Autoptimize.
 * Now the question is why did this happen in your case. The first thing to do would
   be to (ask your host to) check the PHP errorlog file for relevant information
   to help us pinpoint the exact issue.
 * What could also help is what AO settings you had before (when things were working)
   and after your changes (when Google indexing became a problem)?
 * frank
 *  Thread Starter [catuyen](https://wordpress.org/support/users/catuyen/)
 * (@catuyen)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16272602)
 * I found a lot of the same error blocks in the log file
 *     ```
       #0 /home/mywebdir/web/mywebsite.com/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(152): JSMin->action()
       #1 /home/mywebdir/web/mywebsite.com/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php(86): JSMin->min()
       #2 /home/mywebdir/web/mywebsite.com/public_html/wp-content/plugins/autoptimize/classes/external/php/ao-minify-html.php(257): JSMin::minify()
       2022/12/08 15:20:33 [error] 16047#16047: *45459 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught JSMin_UnterminatedStringException: JSMin: Unterminated String at byte 497: "We design and create your website for a cheap price. in /home/mywebdir/web/mywebsite.com/public_html/wp-content/plugins/autoptimize/classes/external/php/jsmin.php:214
       ```
   
 * and the exactly the error message is: “500 Internal Server Error”
    -  This reply was modified 3 years, 6 months ago by [catuyen](https://wordpress.org/support/users/catuyen/).
    -  This reply was modified 3 years, 6 months ago by [catuyen](https://wordpress.org/support/users/catuyen/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16272741)
 * OK, that helps a lot, it pins down the issue to JS minification (so not CSS or
   HTML or images or anything in the “extra” tab).
 * Next up; what were your (new) JS optimization settings? And can you share the
   site’s URL so I can take a look at the JavaScript on which JSMin died?
 *  Thread Starter [catuyen](https://wordpress.org/support/users/catuyen/)
 * (@catuyen)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16272783)
 * I checked the following options:
 * **JavaScript Options**
    – Optimize JavaScript Code? -Individual JS-files will
   be minified and deferred, making them non-render-blocking.
 * **HTML Options**
    – Optimize HTML Code? – Also minify inline JS/ CSS?
 * Please give me your e-mail. I will send you the URL and reinstall the plugin.
   This is a client’s website so I can’t post the URL here.
    -  This reply was modified 3 years, 6 months ago by [catuyen](https://wordpress.org/support/users/catuyen/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16272787)
 * you can contact me at futtta-at-gmail-dot-com 🙂
 *  Thread Starter [catuyen](https://wordpress.org/support/users/catuyen/)
 * (@catuyen)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16272820)
 * Installed again and check, Search bot now can access the site.
 * The option: Do not aggregate but defer?
    Can’t be checked.
 * I will check for a few days the site, also the log, and let you know if there
   is any issue.
 * Thank you for your support.
    -  This reply was modified 3 years, 6 months ago by [catuyen](https://wordpress.org/support/users/catuyen/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16272839)
 * ah, so the problem started when “Do not aggregate but defer?” and/or “also defer
   inline JS” were ticked?
 * in that case based on the error-message one specific block of inline JS is causing
   that JSmin crash, look any inline JS that has (or is close to) the string “We
   design and create your website for a cheap price.”, I think there might be a 
   small JS syntax error there which JSMin can’t handle.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16321005)
 * any news catuyen ?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16376262)
 * No feedback so I assume you were able to fix this catuyen ? Feel free to follow
   up if you still encounter issues!
 * have a great day!
    frank

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

The topic ‘Big problem’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/big-problem-37/#post-16376262)
 * Status: resolved