Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.32.0

Bug #15533 file upload leads to white page when permissions don't work
Submitted: 2009-01-07 11:57 UTC
From: cweiske Assigned: dufuz
Status: Closed Package: pearweb (version 1.17.1)
PHP Version: 5.2.8 OS:
Roadmaps: 1.18.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 17 - 1 = ?

 
 [2009-01-07 11:57 UTC] cweiske (Christian Weiske)
Description: ------------ I get the errors as described below. In that case, the pear web package upload shows me a white page without any explanation. That shouldn't be, a decent error message would help greatly. Actual result: -------------- [Wed Jan 07 12:48:32 2009] [error] [client 82.224.158.56] PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: Permission denied in /var/www/ html/pearweb/pear.php.net/include/pear-rest.php on line 274, referer: http://euk1.php.net/package-edit.php?id=744 [Wed Jan 07 12:48:32 2009] [error] [client 82.224.158.56] PHP Warning: file_put_contents(/var/www/html/pearweb/pear.php.net/public_html/rest/p/console_comma ndline/info.xml) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /var/www/html/pea rweb/pear.php.net/include/pear-rest.php on line 280, referer: http://euk1.php.net/package-edit.php?id=744 [Wed Jan 07 13:02:57 2009] [error] [client 85.232.25.153] PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: Permission denied in /var/www/ html/pearweb/pear.php.net/include/pear-rest.php on line 581, referer: http://euk1.php.net/release-upload.php [Wed Jan 07 13:02:57 2009] [error] [client 85.232.25.153] PHP Warning: file_put_contents(/var/www/html/pearweb/pear.php.net/public_html/rest/p/pearweb/maint ainers.xml) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /var/www/html/pearweb/ pear.php.net/include/pear-rest.php on line 585, referer: http://euk1.php.net/release-upload.php [Wed Jan 07 13:02:57 2009] [error] [client 85.232.25.153] PHP Warning: file_put_contents(/var/www/html/pearweb/pear.php.net/public_html/rest/p/pearweb/maint ainers2.xml) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /var/www/html/pearweb /pear.php.net/include/pear-rest.php on line 587, referer: http://euk1.php.net/release-upload.php [Wed Jan 07 13:02:57 2009] [error] [client 85.232.25.153] PHP Notice: Undefined index: pear_rest in /var/www/html/pearweb/pear.php.net/include/pear-databas e-package.php on line 439, referer: http://euk1.php.net/release-upload.php [Wed Jan 07 13:02:57 2009] [error] [client 85.232.25.153] PHP Fatal error: Call to a member function saveAllPackagesREST() on a non-object in /var/www/html/ pearweb/pear.php.net/include/pear-database-package.php on line 439, referer: http://euk1.php.net/release-upload.php

Comments

 [2009-01-22 22:23 UTC] dufuz (Helgi Þormar Þorbjörnsson)
Put error checking on all file operations and made upload release check if something fails, if it does then we get a error message. pear.admin karma people and higher (that includes the group) will see the internal error msg while other people see a generic error message suggesting they contact the webmaster. Please try it out
 [2009-01-22 22:23 UTC] dufuz (Helgi Þormar Þorbjörnsson)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.