Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Failed to load plugin url: …plugins/ajax-sea
- This topic has 9 replies, 2 voices, and was last updated 3 years, 2 months ago by
Ernest Marcinko.
-
AuthorPosts
-
April 5, 2023 at 10:52 am #42111
EditorCZ
ParticipantAfter update to latest version I am getting this error in backend:
Failed to load plugin url: https://green-gate.online/wp-content/plugins/ajax-search-pro/backend/tinymce/buttons.js
April 5, 2023 at 12:36 pm #42112Ernest Marcinko
KeymasterHi,
When I tried to open the file, the server says that there is an issue with your .htaccess file, so it denies access to the file automatically.
You can try reinstalling the plugin, to make sure the file was not deleted by accident, but this is more likely a server side problem.I strongly suggest checking the .htaccess file in the root and sub folder (if they exist), as well as the file access permissions. Direct access to javascript, image and CSS assets should be permitted on the server.
April 5, 2023 at 12:59 pm #42113EditorCZ
ParticipantHello, thank you for your reply.
Reinstall didn’t help.
I attach screen from the backend with how it looks – the red column is the error, and you can also see that the Ajax content under the post is somehow broken.
I will ask the hosting provider about it, but there was no change to .htaccess or file persmissions before the plugin update.
April 5, 2023 at 1:14 pm #42115Ernest Marcinko
KeymasterUnfortunately this is unrelated to the plugin, the server does not allow access to that file. The file exists, as the error only states that based on a .htaccess rule it can’t allow loading the file, it denies permission.
If the .htaccess was not changed, then it has a malformed mod_rewrite rule, which triggers for this specific path or path model. I strongly recommend reviewing the all of the rules, it is more than likely the source of the issue.
Checking the file access permissions for accessing certain file types on the server configuration can also help, however this seems to be only affecting this specific structure, so it is much more likely a mod_rewrite rule problem.This file and it’s location was not changed for over 3 years.
April 5, 2023 at 1:18 pm #42116EditorCZ
ParticipantThis is the only content of the .htaccess file in the root of the web:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>I am not keen on the .htaccess rules and content so if you see anything wrong here, please tell me.
HOWEVER when I rename the .htaccess to .htaccess.bak the problem presists.
April 5, 2023 at 1:22 pm #42117Ernest Marcinko
KeymasterThat looks okay at first sight, but make sure to check any sub-folders too, if there is any htaccess file upper in the hierarchy, it will override these rules.
Then you will have to check on the server configuration. Try the tips from this topic, they were dealing with the same issue. Directory ownership and incorrect chmod can apparently cause the server not to be able to access the .htaccess file and then it denies direct access to some files.
April 5, 2023 at 1:33 pm #42118EditorCZ
ParticipantJust contacted hosting support – they advised to use their hosting tool to fix the files presmissions and voila – fixed.
I believe this happened after downloading the plugin from the Evanto and uploading it manually to the server. To prevent this, what is the better way of updating the plugin?
April 5, 2023 at 1:42 pm #42119Ernest Marcinko
KeymasterUpdating via the plugin manager is the best and safest way to update any plugin, as WordPress will extract and set the proper permissions and the file ownerships inherit from the apache server.
Updating any plugin via FTP/SSH or other direct file upload methods is generally problematic as the client user ownership of the files are not neccessary in group with the apache server, so it may not be able to access the files afterwards. I only recommend that to developers who can set the ownerships and folder masks properly via SSH.
You can also enable automatic updates, that is the same as updating via the plugin manager.
April 5, 2023 at 1:53 pm #42120EditorCZ
ParticipantThank you for your support and information.
Have a nice day.
April 5, 2023 at 1:54 pm #42121Ernest Marcinko
KeymasterAll the best to you 🙂
If you don’t mind, I will close this topic soon and mark it as resolved, feel free to open another one if you have other questions or issues.
If you like the plugin and have not rated already, feel free to leave a rating on your codecanyon downloads page and on the wordpress plugin repository, it’s greatly appreciated.
-
AuthorPosts
- You must be logged in to reply to this topic.