AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: gelatinsilver on September 14, 2017, 11:03:38 AM

Title: Please help! Language adding shows 404 error
Post by: gelatinsilver on September 14, 2017, 11:03:38 AM
Hello! I have a strange problem. Generally site works well, but when I'm installing any language extension and trying to switch on (or edit) it in System>Localization>Language the site shows 404 error. Please, help. I appreciate for any suggestions.

P.S.
Also 404 arises when I'm trying to add new language in System>Localization>Language

Adding and editing currencies are working fine.

If it helps: Site is whitelabeled and goes under SSL and redirected from http to https via htaccess
Title: Re: Please help! Language adding shows 404 error
Post by: Basara on September 15, 2017, 01:33:31 AM
Hello.

Please check your error log just after you got an error
Title: Re: Please help! Language adding shows 404 error
Post by: gelatinsilver on September 15, 2017, 04:20:05 AM
Hello!
Thank you for the quick respond, the matter is that no errors highlighted in the errors log, just when I press "+" button in "System>Localization>Language" I'm getting 404 error.

This page shows 404
/index.php?rt=localisation/language/insert&s=xxxxxxxx&token=xxxxxxxx

And this page is ok
/index.php?rt=localisation/currency/insert&s=xxxxxxxx&token=xxxxxxxx
Title: Re: Please help! Language adding shows 404 error
Post by: Basara on September 15, 2017, 05:09:54 AM
Hello

Try http://docs.abantecart.com/pages/tips/troubleshooting.html#mod_security
Title: Re: Please help! Language adding shows 404 error
Post by: gelatinsilver on September 15, 2017, 05:40:28 AM
Yes, I tried, but the result is the same.
Title: Re: Please help! Language adding shows 404 error
Post by: gelatinsilver on September 15, 2017, 06:16:56 AM
Have you any idea why it happens? I tried to switch off the https, tried to disable mod_security. Seems this is a core bug or something else. Any way I'm very sad with the fact that I can't add a new language to the site.
Title: Re: Please help! Language adding shows 404 error
Post by: Basara on September 15, 2017, 06:42:48 AM
Most of hosting do not allow you to disable mod_secure. Are you sure you disable it?

Did you check file permissions? Are the accessible?
Title: Re: Please help! Language adding shows 404 error
Post by: gelatinsilver on September 15, 2017, 07:11:58 AM
index.php is 644, I tried 755 - the same result
I included the following directive in htaccess and nothing changed
<IfModule mod_security.c>
SecFilterInheritance Off
</IfModule>
Title: Re: Please help! Language adding shows 404 error
Post by: Basara on September 15, 2017, 07:30:18 AM
If you add this does not mean it work. Most of hostings limit users with .htaccess and php.ini commands
Title: Re: Please help! Language adding shows 404 error
Post by: gelatinsilver on September 15, 2017, 07:47:57 AM
So, you advise to ask hosting provider to disable mod_security? Ok, I'll try, not sure that this will help, but thank you.
Title: Re: Please help! Language adding shows 404 error
Post by: Basara on September 15, 2017, 07:58:11 AM
Problem not in disable or enable mod_secure. Usually hosting administrator should configure it correctly  ;)
Title: Re: Please help! Language adding shows 404 error
Post by: gelatinsilver on September 15, 2017, 08:09:08 AM
Can you please write the correct configuration for mod_security, so I'll be able to ask provider to configure it properly. Thank you.
Title: Re: Please help! Language adding shows 404 error
Post by: gelatinsilver on September 15, 2017, 01:19:44 PM
SOLVED, thank you! The matter was exactly in the apache's mod_security, it must be switched off via CPanel and not htaccess.