Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Miko Belludo

    (@mikoooo)

    It’s all good now

    I’ve traced the missing files based on the errors and there I’ve found on the directory there are CSS and JS files with different filenames so I’ve renamed them to be the missing files

    Now it’s back to normal, but I wondered what happened?

    Thank you!

    Plugin Author Agus Prawoto Hadi

    (@agusph)

    Hi thank you for your bug reporting, sorry for late response.
    Currently, the plugin use wp_head hook to catch all loaded js and css files, once finished it generate the merged files (e.g merged-js-435654.js) and add it to wp_enqueue_script

    Unfortunately, if there is no found assets, such as image, js, css files, WordPress will run 404 page in the background and run the plugin again in the background too, along with that, the plugin will create new merged files (e.g merged-js-909876.js) and delete the old one.

    Because the plugin have added merged-js-435654.js to the wp_enqueue_script, and the merged files changed, so wordpress can’t find that file.

    To solve this, there is an option in the setting page to not run the plugin on the 404 page, so if there are missing assets and wordpress run the 404 page in the background, the plugin stop to run.

    Thread Starter Miko Belludo

    (@mikoooo)

    Hey,

    Thank you for getting back.

    Actually, replacing/renaming the missing files and deactivating the plugin didn’t help (which I did as you can see in my last reply).

    What I did was, after deactivating the plugin, I activated a different theme and re-activate the current theme. That did the trick of missing JS and CSS files.

    I am using latest Avada theme btw.

    Plugin Author Agus Prawoto Hadi

    (@agusph)

    Hi, thank you for your reply

    The possible condition of the missing merged files occur is the 404 page run in the background, if you face the problem again, please check if there is not found assets.

    Currently, deactivating and then activating the plugin doesn’t create the new merged files. There are two conditions when the plugin generates new merged files

    • Merged files not found. By deleting that files, the plugin will generate new ones.

      Deleting the files can be done through plugin setting page. On that page, scroll down to the bottom and click Clear All Cache. once deleted the plugin will generate the new merged files.

    • Found new css or js files. If there are new css or js files, the plugin will generate new merged files

    In your situation, by changing the theme, the plugin detects new css and js files, then generate new merged files.

    Btw, nice website ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help! Front end is broken, errors are missing CSS and JS files’ is closed to new replies.