-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid warning open_basedir restriction (using fetch instead of display) #154
Conversation
PrestaEdit
commented
Dec 7, 2021
•
edited
Loading
edited
Questions | Answers |
---|---|
Description? | Avoided the "Warning: file_exists(): open_basedir restriction in effect. File(/views/templates/front/customerAccount.tpl) is not within the allowed path(s)" due a slash before the "views" on the file route. Also update the line with the "$this->fetch" function (like #152 , thx to @danidomen) + use of fetch instead of display) |
Type? | bug fix |
BC breaks? | no |
Deprecations? | no |
Fixed ticket? | |
How to test? | Enable debug mode, check that warning not rise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code seems good but can you please submit a bug report to help QA team analyze and explore this topic?
Regarding the other PR discussion, no needs :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, we could also use fetch on the other PR
It's the same issue, I can even close this one and make a suggestion to the another, I don't think about it. My bad. |
Oh sorry I didn't see that it was for the same file. I prefer fetch to display. The PR is in QA let's wait for it to be merged and then yours so that everyone's work is rewarded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi everyone, unfortunately php-cs-fixer rejects this contribution.
Also can someone to write clearly what is supposed to be broken in develop
, why this PR fixes it, and the difference between display()
and fetch()
and why fetch()
is better 😉
Don't assume the person in front knows all 😄 these informations will be very useful
- for reviewers
- for testers
- for developers who discover this change in the future and wonder why such changes were needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI @PierreRambaud,
Can we have an issue and the steps to reproduce to let the team QA test it correctly ?
Thank you :)
It can be tested by a dev as the only thing you have to do is to configure the open_basedir php configuration |
@AureRita Is this OK for you if we consider this PR should be tested by developers? |
Hi @matks , Yes, I think this PR could be tested by developers |
Everything worked as expected, it's QA ✔ |