Closed (fixed)
Project:
Web File Manager
Version:
6.x-2.9-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 May 2008 at 09:33 UTC
Updated:
17 Jun 2009 at 15:00 UTC
Hi,
by chance I had a blank line in my own module before the <?php line. That caused the WebFM Attachments to fail completely when creating or editing a page. It doesn't show attached files anymore, it doesn't show anything in the file browser anymore, and uploading fails complaining about an invalid upload path.
This happens when *any* module has a blank line before the <?php. I guess such a blank line violates drupal coding standards or sth., but you wouldn't expect webfm to stop working :-) It took me days to figure that out :-)
cu,
Frank
Comments
Comment #1
kwinters commentedThis will actually break most any PHP code. It isn't really WebFM specific, because when you have a blank line at the top of a php file it will output it to the screen, and usually early enough in the process to break the response headers and hose AJAX responses, 301 redirects, etc.
You have to remove the blank line in your code anyway, so my vote is close this out so the maintainer can concentrate on other things :)
Comment #2
Frank Steiner commentedRight, yes, at the time of the bug report my knowledge of php and drupal was very low-level ;-)
Thanks!