169 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 200 and 499 users
  • Sold between 5 000 and 10 000 dollars
CallMePaul says

Hey guys! Today I got my theme approved and made 2 sales! Happy for that.

Now, the customers where experiencing an error I was not on my server (it looks like it depends on the php configuration)

Anyway, after some embarrassing moment with the customers I found that the error was due to a blank space at the end of the file, after the ?> tag

The error wp gives away obviously does not say that all the problem is the white space, in my case the error the customers were giving was something to do with “Warning: Cannot modify header information – headers already sent by….”

I solve it just by deleting every blank space at the end.

Hope this helps someone. P

78 posts
  • Australia
  • Beta Tester
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
fredwu says

And it is recommended to not include the closing tag in PHP files:

http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html

177 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • United Kingdom
conceptcoding says

Watch out there’s no whitespace at the beginning either. ;)

@fredwu

That is something which annoys me, simple because I always forget that for some pages and end up with a mixture of both. D:

by
by
by
by
by
by