• Resolved catuyen

    (@catuyen)


    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

    (@optimizingmatters)

    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

    (@catuyen)

    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 1 year, 11 months ago by catuyen.
    • This reply was modified 1 year, 11 months ago by catuyen.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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

    (@catuyen)

    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 1 year, 11 months ago by catuyen.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you can contact me at futtta-at-gmail-dot-com ??

    Thread Starter catuyen

    (@catuyen)

    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 1 year, 11 months ago by catuyen.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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

    (@optimizingmatters)

    any news catuyen ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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.