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

kwinters’s picture

This 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 :)

Frank Steiner’s picture

Status: Active » Fixed

Right, yes, at the time of the bug report my knowledge of php and drupal was very low-level ;-)
Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.