Prestashop: Error accessing json files in translation folder

Created on 29 Aug 2018  路  7Comments  路  Source: PrestaShop/PrestaShop

The BO product form page try to access to some .json files in the translation folder, but the .htaccess file in that folder has a "Require all denied" rule.

image

````

Apache 2.2


Order deny,allow
Deny from all

Apache 2.4


Require all denied

````

The issue appears in Apache 2.4 in 1.7.4. On previous versions, the .htaccess file was different (only for Apache 2.2)

It generate lots of errors in Apache error logs, and the json contents are probably needed somewhere in the forms

Additionnal information
PrestaShop version: 1.7.4.2
PHP version: 7.2

1.7.4.2 Bug Duplicate

Most helpful comment

Thank you very much for your answers, now I have solved thanks to you. I wish you a good job and a good day.

All 7 comments

Hi @TBurtin,

Could you please add steps to reproduce the issue in a new comment.

Best regards, Khouloud

Hi,

We are aware of that issue, which will be fixed in the next version of PrestaShop.
You can find more details here: https://github.com/PrestaShop/PrestaShop/pull/9474

I'm closing as this is a duplicate.
Regards

Duplicate of #9474

hi I have the same error with 1.7.4.2 I can not update my site to later versions but I have to keep this version. please can you tell me how I can solve?

Hi, you can replace the content of the translations/cldr/.htaccess file with that;
````

Apache 2.2


Order deny,allow
Allow from all

Apache 2.4


Require all granted

````

It's the content of the file in 1.7.5 where the bugs is solved.

Hi @feyll,

Here's the change made in the PS1.7.5.0 https://github.com/PrestaShop/PrestaShop/pull/9474/files to fix the issue.
Thanks!

Thank you very much for your answers, now I have solved thanks to you. I wish you a good job and a good day.

Was this page helpful?
0 / 5 - 0 ratings