Prestashop: Deleting languague fails with open_basedir restriction in effect

Created on 23 Aug 2020  路  8Comments  路  Source: PrestaShop/PrestaShop

Describe the bug

Unable to delete a language because it fails on .htaccess and index.php files from PS_MODULE_DIR due to lack of testing whenever the path is actually a directory or not with open_basedir restriction in effect.

Expected behavior

Error should not be thrown, language shall be deleted.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to International => Localization => Languages
  2. Click on 'delete' on a chosen language
  3. Click OK to confirm
  4. See error

Additional information

  • PrestaShop version: develop/1.7.7.x
  • PHP version: 7.2.32 with open_basedir restriction
1.7.6.7 1.7.7.x BO Bug Fixed International Languages Minor PR available

All 8 comments

Thanks for opening this issue! We will help you to keep its state consistent

@PrestaShop/prestashop-product-team should this be in the 177 scope or develop ? Feel free to change the PR description with the right answer!

Hi @rozwell,

Have you this exception when deleting a language?
image
image

Thanks!

@NeOMakinG We need to reproduce the issue before, make sure it's not a regression and qualify it
The version mentionned here is the affected version, not the version where the issue will be fixed

@marionf, @NeOMakinG,

I followed these steps:
set the open_basedir value (ex open_basedir = '/var/www/html/Prestashop')
Try to delete a language
I have this exception
image
I just reload the page
I have this error
image

I have the same issue with PS1.7.6.7 and 177x branch.
But I'm not sure if it is a PrestaShop core issue or not.

Thanks!

Hi @rozwell,

Have you this exception when deleting a language?
image

Hi @khouloudbelguith,
Yes, that's the issue, just in my case it was failing on .htaccess file first, then index.php.

@rozwell, thanks for your feedback.
I manage to reproduce the issue with PS1.7.6.7 and 177x branch.
I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!

@khouloudbelguith, I've already sent a pull request for it #20681 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zuk3975 picture zuk3975  路  3Comments

PrestaShark picture PrestaShark  路  3Comments

vincent-dp picture vincent-dp  路  3Comments

Fabuloops picture Fabuloops  路  3Comments

marionf picture marionf  路  3Comments