-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix PHP warnings on Deploy Package #625
Conversation
When opening a package to edit and into another tab switch the profile to Self-Service (or any other profile which doesn't have access to Deploy Package page) it throws a PHP Warning on page if display errors is enabled on PHP settings.
Displaying error from PHP config is strongly discouraged. If user do not have access to page, I guess trying to display it is incorrect. |
do you use nginx? Check nginx configuration, especially fastcgi_param SERVER_NAME $host; From |
Sorry, I think I express myself badly (my native language isn't English). I have access to the page. What happened is the following:
As it expects a referrer, if it isn't set, the PHP function This PR is innofensive as such check was already being made before (it only checks if |
OK, sounds more legit, thanks for details. |
Hello @trasher, thank you for your suggestions, but I believe your changes won't be compatible with PHP 7.4 since |
As far
No, that will works. In PHP >=8, this function only accepts a string, and not the
|
Co-authored-by: Johan Cwiklinski <trasher@x-tnd.be>
Co-authored-by: Johan Cwiklinski <trasher@x-tnd.be>
I see. I commited your changes. Thank you! |
When opening a package to edit and into another tab switch the profile to Self-Service (or any other profile which doesn't have access to Deploy Package page) it throws a PHP Warning on page if display errors is enabled on PHP settings.
Checklist before requesting a review
Please delete options that are not relevant.
Description
Screenshots (if appropriate):