169 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 500+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+1 more
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
  • Has been part of the Envato Community for over 5 years
  • Located in Australia
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+1 more
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
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has collected 50+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
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:

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by