Page 1 of 1

Emailer.php Error

PostPosted: Tue Mar 27, 2007 5:04 pm
Author: DjPorkchop
Your phpBB Version: 2.0.22
phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://myshack.org

PHP Version:
MySQL Version:


What was done before the problem appeared?
Nothing Had this issue since install bnut found it a minor issue compared to opening site up


What was done to try to solve the problem?
Not sure what to do



De.scription and Message

Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/myshack/public_html/portal/includes/emailer.php on line 121

Thats what I get for clicking an invite button for MPS mod.


Warning: fread() [function.fread]: Length parameter must be greater than 0. in /home/myshack/public_html/portal/includes/emailer.php on line 121

Warning: Cannot modify header information - headers already sent by (output started at /home/myshack/public_html/portal/includes/emailer.php:121) in /home/myshack/public_html/portal/includes/page_header.php on line 1110

Warning: Cannot modify header information - headers already sent by (output started at /home/myshack/public_html/portal/includes/emailer.php:121) in /home/myshack/public_html/portal/includes/page_header.php on line 1112

Warning: Cannot modify header information - headers already sent by (output started at /home/myshack/public_html/portal/includes/emailer.php:121) in /home/myshack/public_html/portal/includes/page_header.php on line 1113


thats what I get whn trying to PM users via the board.... Im thinking edit error due to the headers out put but not sure. I never did a mod that affected emailer.php in anyway at all

Re: Emailer.php Error

PostPosted: Tue Mar 27, 2007 6:25 pm
Author: Helter
check /includes/page_header.php the very last character on the page should be ?>

if there is anything after, even empty lines, you will get errors

Re: Emailer.php Error

PostPosted: Tue Mar 27, 2007 9:20 pm
Author: DjPorkchop
It is confirmed. ?> is infact the very last thing on the document. <img>

Re: Emailer.php Error

PostPosted: Tue Mar 27, 2007 9:51 pm
Author: Frost
Ok.. couple of questions <img>

1. are you absolutely sure that there is not one single space after ?> ?
also go ahead and check includes/page_header.php as well

2. the error could also be there if there is no template loading for the emailer. I'm not familiar with the emailer as I've never used it, but I would imaging you click to email, it takes you to a page that you fill in their name/address etc, then once you've filled it out, you click send and you get the error? This could mean that whatever template file that is supposed to come next isnt there or isn't loading.

So what template are you using?

3. the error could also x 2 be from emply fields not included in if statement in php
So you probably have Address, and CC, and BCC etc, try filling out all fields and submitting and post back

Re: Emailer.php Error

PostPosted: Tue Mar 27, 2007 10:22 pm
Author: Helter
doh! ...check emailer.php for either a missing ?> or data after it

Re: Emailer.php Error

PostPosted: Wed Mar 28, 2007 2:58 am
Author: DjPorkchop
Nope. No trailing spaces in either file. The only thing i find out of the ordinary is [function.fread] is a link and if I click it , i get page can not be displayed. Im not sure if this has anyhting to do with it or not.

I have double and triple checked all of my mods and I havent found a 1 that has any changes at all in emailer.php

And as I said, this occurs with a pm via the board. And any emails sent by system. And note, all emails sent by the system are blank when recieved.

I can create a account if needed............Once my site comes back online *^#$! DNS <img>

And for the record, Im using the Integra2 theme with many mods installed.

Re: Emailer.php Error

PostPosted: Tue Apr 03, 2007 12:04 pm
Author: DjPorkchop
*caugh....Caugh..... Anybody? I have dug though file after file after file and still the same thing. I have a test board setup and this does not occur. It must be a mod I installed, but foir the life of me, I can not think of a SINGLE mod that i installed that would effect that file at all. Is it possible I have a file bad somewhere else that is affecting that particular files functions? <img>

Re: Emailer.php Error

PostPosted: Tue Apr 03, 2007 4:41 pm
Author: Helter
im sure the problem is in your modifications to page_header.php
replace this file with a default one and do your edits one at a time

Re: Emailer.php Error

PostPosted: Wed Apr 04, 2007 6:28 am
Author: DjPorkchop
Ok Ill have a go at it and see what happens. <img>

Re: Emailer.php Error

PostPosted: Sat Apr 14, 2007 11:30 am
Author: DjPorkchop
well, here goes 1 more time. I have uploaded a clean copy of page_header.php and re did all of my edits and had a 2nd party come in and check all of my edits. STILL I get this error.

I then uploaded yet another clean copy of this file with no edits done to it at all and still get this error. So I begin thinking to myself, Its not a true test unless I check my other theme as well just incase my overall_header is bad...... No dice. Same exact error on both themes.

My next question is, If it's not the page_header.php or the overall_header.php, What else could be happening? I have double and triple checked for trailing white spaces and nothing at all comes up.

I been scratching my chin for a long time over this and come up with nothing at all. Emailer is nice to have on a social networking site. :D