Wordpress help. Messed up my site.

playerone

Active member
May 13, 2020
27
108
33
I was trying to optimize my site for speed using WP Rocket, perfmatters, autoptimize and somehow it's all messed up now on the backend admin panel. It cannot load javascripts.
I tried to disable/delete all the cache scripts and didn't work.

Example: White trying to debug with the dev console in Firefox I get a 403 on
Loading failed for the <script> with source “https://www.example.com/wp-includes/js/dist/vendor/react.min.js?ver=16.9.0”.

But if I hit the link without the query string https://www.example.com/wp-includes/js/dist/vendor/react.min.js from the browser. It load fine.
Perhaps some stupid things I did. Still a noob with Wordpress. The Web server is openlitespeed.

Thank you in advance for any insights into the problem.
 

xlx

Active member
Dec 13, 2018
141
53
28
1) is it a live site?
2) you could start by disabling the plugins
 

playerone

Active member
May 13, 2020
27
108
33
Yes, it's a live site. I've disable every caching stuff. Only basic plugins like gutenberg, elementors, etc. left. Those are working fine before I played with the caching/minify/css optimzing stuff.

Perhaps somehow the jquery basic script failed to load and messed up the rest of the script loading after it ?
 

expatriate

Member
Aug 3, 2018
31
9
8
If you are looking for professional help, I can fix it for you.
You can contact me on technical issues.
 

playerone

Active member
May 13, 2020
27
108
33
If you are looking for professional help, I can fix it for you.
You can contact me on technical issues.

Thank you for the offer, just trying to debug right now. Can't afford professional service at the moment. If I get stuck much longer, I may look into it.
 

guguk

Well-known member
Jul 19, 2019
1,150
828
113
Ottoman Empire
Yes, it's a live site. I've disable every caching stuff. Only basic plugins like gutenberg, elementors, etc. left. Those are working fine before I played with the caching/minify/css optimzing stuff.

Perhaps somehow the jquery basic script failed to load and messed up the rest of the script loading after it ?
check the htaccess file probably it has been changed. Replace origianl file.
Also check wp-content/uploads folder if there any folder relavant these plugins clean them.
 

MR A

Well-known member
Trusted Seller
Trusted Uploader
Banned User
Apr 19, 2019
755
299
63
Root
wp rocket modify htaccess ..i think try to disable then run !
 

playerone

Active member
May 13, 2020
27
108
33
check the htaccess file probably it has been changed. Replace origianl file.
Also check wp-content/uploads folder if there any folder relavant these plugins clean them.

- I cleaned the .htacces file with nothing left than the basic WP rewrite.
- Checked the uploads folder and didn't see anything related.

Also restarted the Web server to see if it can clear anything.
 

playerone

Active member
May 13, 2020
27
108
33
Do you have a backup?

Get one of those auto backup plugin or service. Some enable you to store backups externally in GDrive and restore sites with one click.

Also, I don't understand why you used all three plugins at the same time. Make it a habit to do all testing in a staging server before pushing it to the live server. A plugin like WP-Staging can help.

Understand one-click optimization plugin is really a blind way of going with optimization. First assess what requires optimization and then target those assets. I think you would be better with Cloudflare if you are new to the WP thing.

Good Luck!
Yes, I did a database backup this morning, reloaded it, didn't work. Didn't backup the directory. So it may have something to do with it.

Didn't have a staging env, this is just a personal blog that I update with my free time during the Corona shutdown.

Already have Cloudflare, just working on the backend to optimize the site, since it takes 6s-7s to load, I was able to get it down to 3s when it broke. Uninstalled all the cache plugins, but maybe it left something in the dir that broke the loading of the JS.
 

forlonx

Member
Nov 15, 2019
60
11
8
Yes, I did a database backup this morning, reloaded it, didn't work. Didn't backup the directory. So it may have something to do with it.

Didn't have a staging env, this is just a personal blog that I update with my free time during the Corona shutdown.

Already have Cloudflare, just working on the backend to optimize the site, since it takes 6s-7s to load, I was able to get it down to 3s when it broke. Uninstalled all the cache plugins, but maybe it left something in the dir that broke the loading of the JS.

If you can give ftp access, I can probably have a look at it. Also, do you have a separate database backup?
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu