Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Please help! Language adding shows 404 error  (Read 5012 times)

Offline gelatinsilver

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Please help! Language adding shows 404 error
« 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
« Last Edit: September 14, 2017, 01:17:01 PM by gelatinsilver »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5807
  • Karma: +274/-2
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #1 on: September 15, 2017, 01:33:31 AM »
Hello.

Please check your error log just after you got an error

Offline gelatinsilver

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #2 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
« Last Edit: September 15, 2017, 04:44:25 AM by gelatinsilver »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5807
  • Karma: +274/-2
    • View Profile

Offline gelatinsilver

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #4 on: September 15, 2017, 05:40:28 AM »
Yes, I tried, but the result is the same.

Offline gelatinsilver

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #5 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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5807
  • Karma: +274/-2
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #6 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?

Offline gelatinsilver

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #7 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>

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5807
  • Karma: +274/-2
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #8 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

Offline gelatinsilver

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #9 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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5807
  • Karma: +274/-2
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #10 on: September 15, 2017, 07:58:11 AM »
Problem not in disable or enable mod_secure. Usually hosting administrator should configure it correctly  ;)

Offline gelatinsilver

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #11 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.

Offline gelatinsilver

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-1
    • View Profile
Re: Please help! Language adding shows 404 error
« Reply #12 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.

 

Powered by SMFPacks Social Login Mod