I tried to write a module using the import export api. When I tried send a header, php complained that output already started. It turns out the minixml library has two php files which have a blank line at the end which are causing this problem. The attached simple patch fixed the problem for me and let me send headers properly.

Comments

sun’s picture

Version: master » 5.x-1.x-dev
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new2.4 KB

That's true, and those closing PHP tags should be removed completely.

@Sunil: Please always provide patches with a root path based on the project, i.e. from inside importexportapi, not outside.