Emailer.php Error

Support for the IM Portal Project

Moderator: Integra Moderator

Emailer.php Error

PostAuthor: MWE_001 » Tue Mar 27, 2007 4:04 pm

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
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Emailer.php Error

PostAuthor: Helter » Tue Mar 27, 2007 5:25 pm

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
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Emailer.php Error

PostAuthor: MWE_001 » Tue Mar 27, 2007 8:20 pm

It is confirmed. ?> is infact the very last thing on the document. <img>
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Emailer.php Error

PostAuthor: Frost » Tue Mar 27, 2007 8:51 pm

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
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Emailer.php Error

PostAuthor: Helter » Tue Mar 27, 2007 9:22 pm

doh! ...check emailer.php for either a missing ?> or data after it
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Emailer.php Error

PostAuthor: MWE_001 » Wed Mar 28, 2007 1:58 am

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.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Emailer.php Error

PostAuthor: MWE_001 » Tue Apr 03, 2007 11:04 am

*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>
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Emailer.php Error

PostAuthor: Helter » Tue Apr 03, 2007 3:41 pm

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
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: Emailer.php Error

PostAuthor: MWE_001 » Wed Apr 04, 2007 5:28 am

Ok Ill have a go at it and see what happens. <img>
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Emailer.php Error

PostAuthor: MWE_001 » Sat Apr 14, 2007 10:30 am

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
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois


Return to IM Portal Support Forum

Who is online

Registered users: Majestic-12 [Bot], Vendethiel