Having issue when try to edit block it gives error

Permalink
Hi All,

I have made a block but when i try to edit the edit part comes but when i try to save it i got the error


Warning: Cannot modify header information - headers already sent by (output started at /home/c7015221/public_html/blocks/block_name/controller.php:1) in /home/c7015221/public_html/updates/concrete5.4.1.1/concrete/startup/process.php on line 464

I checked blocks controller but there is no space in controller also

SO can any one help me in this , is there anything wrong with new concrete version?

Please help me to get out of this

 
jordanlev replied on at Permalink Reply
jordanlev
Please ZIP up your block's code and post it as an attachment (it's impossible to know what the problem is without seeing the code).
savan replied on at Permalink Reply 1 Attachment
Hi

Thanks for your reply, one thing to mention i am getting the error when i save the block means when i edit the edit part comes fine but when i save it , it gives me this issue
I am attaching the zip file
jordanlev replied on at Permalink Reply
jordanlev
Your package is set up in the wrong way. You need to take most of those files and put them into a block. See documentation here:
http://www.concrete5.org/documentation/developers/system/packages...
savan replied on at Permalink Reply
Hi jordanlev,

Thanks for your fast reply.
The zip i given is the block not the package so is there any issue in creating block you mean?
jordanlev replied on at Permalink Reply
jordanlev
I'm sorry, I totally misunderstood! This is a *very* complex block you have here. I'm honestly not sure what the problem is off the top of my head. I will try to take a closer look later when I have time and let you know.
savan replied on at Permalink Reply
Thanks for your reply, i got the solution , i have created new file for controller.php and i got the part working i think there was some invisible charchter on start of page which i cant get in editor so i just copied the part between php tags and i got it worked.