Jump to content

Prestashop 1.7.4.2 has issues: "AH01630: client denied by server configuration"


Recommended Posts

Running Prestashop on PHP7.1 and tested also on PHP7.2 it seems that there are some nasty issues with Prestashop..

For example: If I change the quantities of a specific product and click on SAVE, the shop tells me it's saved.

If I go to another product or whatever to do something else and return to the specific product above the quantity is not changed..

When I look in the serverlogs, I see this:

[Tue Sep 11 08:37:26.646256 2018] [authz_core:error] [pid 939378:tid 140319194502912] [client ???.???.???.???:17044] AH01630: client denied by server configuration: /home/happyuser/domains/mydomain.com/private_html/translations/cldr/datas/supplemental/plurals.json, referer: https://www.mydomain.com/admin23526f/index.php/product/form/34?_token=changedbecauseitsSecret

In the .htacces file on the location "/home/happyuser/domains/mydomain.com/private_html/translations/" I have this:

# Apache 2.2
<IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
</IfModule>

# Apache 2.4
<IfModule mod_authz_core.c>
    Require all denied
</IfModule>

When I comment out these lines, same issue.

There are more peoples with the same issue, but no sollution found yet ?

Help is needed, we can't use PRESTASHOP in this way...

Link to comment
Share on other sites

Exactly same issue here.

AH01630: client denied by server configuration: /changedbecauseitsSecret/translations/cldr/datas/main/de-DE/numbers.json, referer: https://www.mydomain.com/admin/index.php/product/form/111?_token=changedbecauseitsSecret

AH01630: client denied by server configuration: /changedbecauseitsSecret/translations/cldr/datas/supplemental/currencyData.json, referer: https://www.mydomain.com/admin/index.php/product/form/111?_token=changedbecauseitsSecret

AH01630: client denied by server configuration: /changedbecauseitsSecret/translations/cldr/datas/supplemental/likelySubtags.json, referer: https://www.mydomain.com/admin/index.php/product/form/111?_token=changedbecauseitsSecret

AH01630: client denied by server configuration: /changedbecauseitsSecret/translations/cldr/datas/supplemental/plurals.json, referer: https://www.mydomain.com/admin/index.php/product/form/111?_token=changedbecauseitsSecret

AH01630: client denied by server configuration: /changedbecauseitsSecret/translations/cldr/datas/main/de-DE/currencies.json, referer: https://www.mydomain.com/admin/index.php/product/form/111?_token=changedbecauseitsSecret

 

Solution:

Change content in /translation/cldr/ .htaccess:

from:

Order deny,allow
Allow from all

to:

# Apache 2.2
<IfModule !mod_authz_core.c>
    Order deny,allow
    Allow from all
</IfModule>

# Apache 2.4
<IfModule mod_authz_core.c>
    Require all granted
</IfModule>

 

Working for me and obviously it should have been changed from the maintainers....

Edited by kris711
Solution typos (see edit history)
  • Like 2
  • Thanks 3
Link to comment
Share on other sites

  • 4 weeks later...

I ran into this last week. My fix was move servers to a Plesk that can use PHP-FPM corrrectly.

I also stripped all those emebedded .htaccess files  that had a size 170kb from the install package.

Zero issues now.

I will say this YOU NEED PHP FPM cause your gonna have to have settings configured that CPanel and WHM does not allow.

also for the product combos i had to go to 30k on max_chars_var uses over 300 meg of ram .Very greedy code

Link to comment
Share on other sites

  • 3 weeks later...

Hi everyone,
also my last installation Prestashop 1.7.4.3 have the indicated issue:

AH01630: client denied by server configuration ...

generated on the access to json files in the directory ./translations/cldr/datas / ...

 

The problem occurs by accessing the catalog / products section and opening the product screens.

My problem was aggravated by the fact that my firewall, after a certain number of access errors, blacklisted the ip referrer, leading to an inability to view the site for a certain period of time (in my case 10 minutes ).

 

The solution mentioned above by kris711 did not solve my problem but allowed me to adapt it to my scenario.

With Apache 2.4, PHP ver 7.2.9 and PHP-FPM interface, the .htaccess file in / translation / cldr / .htaccess has been modified to contain only:

Require all granted

 

In addition need to edit .htaccess into /translations/cldr to contain only:

Require all granted

 

This solves the problem at least on a configuration like mine above, I have not had the chance to test it on other Apache / PHP configuration.

Good luck

Edited by Netlogica
I want add my Prestashop version: 1.7.4.3 (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...