You can open the JavaScript file yourself and will probably see it still has the wrong version number in it. Something is caching that.
Deleting the plugin through WordPress will delete all the data. You can maybe export the data and then re-import, but I don’t think it will help much. Maybe if you put the JS URL in https://redirect.li/ it might show what other caches are being applied.
We checked the JS file via sFTP and it says 5.4.1 but the plugin version in > WP admin > plugins shows 5.4.2.
JS file on server via sFTP: https://www.dropbox.com/scl/fi/74kw4tjbewf3eur75lv14/redirection-js-version.png?rlkey=51bvaun5561n5s9ztvrrp47ff&dl=0
Plugin version: https://www.dropbox.com/scl/fi/y9lwohdanv3fke3n1rtp9/redirection-plugin-version.png?rlkey=rvw6esvy3d3cnbdmpxkibtbi3&dl=0
We checked the JS file version in the current download on WP.org and it’s 5.4.2.
Why does the plugin show 5.4.2 yet the JS file is 5.4.1? And why is it not updating?
Also, just a reminder, we can’t get into the admin screen so we can’t import/export and we don’t want to lose the settings and redirections.
-
This reply was modified 1 year, 12 months ago by
Sculley.
-
This reply was modified 1 year, 12 months ago by
Sculley.
-
This reply was modified 1 year, 12 months ago by
Sculley.
Why does the plugin show 5.4.2 yet the JS file is 5.4.1?
I cannot possibly say. The version available from WP.org is 5.4.2, and the version in Github is 5.4.2. Nobody else has reported this problem so it seems specific to your site. Is it possible that something went wrong during the last update and the file was not updated? Or maybe someone updated the file with an older version?
You could try updating the file manually (https://github.com/johngodley/redirection/blob/trunk/redirection.js). Deleting the directory and re-installing should also be possible (not deleting from WP itself). This won’t delete any data.
We replaced the whole directory and just the JS file and we are still getting the error.
When we replaced the whole directory, the redirects no longer worked. But when we replaced the JS file only, the redirects worked.
We checked the JS file on the server and it is now 5.4.2
We also looked at the redirection.php file on the server and it’s Version: 5.4.1. Do we need to replace that too? And any other files?
What’s next?
-
This reply was modified 1 year, 12 months ago by
Sculley.
-
This reply was modified 1 year, 12 months ago by
Sculley.
The redirects will continue to work regardless of the JS file.
Does the file match the expected version? If it doesn’t then you will need to make sure it does match, and that your browser can request that version.
You appear to use several forms of caching. The JS file is cached busted with each version of the plugin. I don’t know if there’s much more I can add to help here.
Using incognito (Chrome) and another browser (FF) worked. We can now see the redirects.
We tried incognito yesterday and it didn’t work. The only thing we’ve changed is the JS file so that changing that file worked.
We noticed that the read.me and redirection.php files are 5.4.1. We didn’t overwirte them. Is that a problem?
Are there any other files we need to overwrite?
-
This reply was modified 1 year, 12 months ago by
Sculley.
-
This reply was modified 1 year, 12 months ago by
Sculley.
I have no idea how your files could get into such a state. The readme doesn’t affect anything, and I dont think the redirection.php file has changed so that should be ok as well. Hopefully the next update will update the files properly.
Yes, hopefully.
I’m not sure either. I just contacted the host to check on some things to hopefully resolve it. Thanks for your help!