Zen Cart Logo
Forums / General Questions / Error on line 44 (functions_general.php)

Error on line 44 (functions_general.php)

Locked

Views: 7,564

Results 21 to 23 of 23
This thread is locked. New replies are disabled.
12 Dec 2009, 2:49 PM
#21
tyguy avatar

tyguy

New Zenner

Join Date:
Dec 2009
Posts:
2
Plugin Contributions:
0

Error on line 44 (functions_general.php)

I am having a similar issue to these guys. the debug system is giving me:

PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/share/php/class.smtp.php:1095) in /var/www/clients/client6/web14/web/includes/functions/functions_general.php on line 44

needless to say thats not a good thing. when i do send a message via the smtp method this appears on the screen.

SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "220 p3plsmtpa01-02.prod.phx3.secureserver.net ESMTP " SMTP -> get_lines(): $data is "220 p3plsmtpa01-02.prod.phx3.secureserver.net ESMTP " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250-p3plsmtpa01-02.prod.phx3.secureserver.net " SMTP -> get_lines(): $data is "250-p3plsmtpa01-02.prod.phx3.secureserver.net " SMTP -> get_lines(): $data was "250-p3plsmtpa01-02.prod.phx3.secureserver.net " SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN " SMTP -> get_lines(): $data is "250-p3plsmtpa01-02.prod.phx3.secureserver.net 250-AUTH LOGIN PLAIN " SMTP -> get_lines(): $data was "250-p3plsmtpa01-02.prod.phx3.secureserver.net 250-AUTH LOGIN PLAIN " SMTP -> get_lines(): $str is "250-8BITMIME " SMTP -> get_lines(): $data is "250-p3plsmtpa01-02.prod.phx3.secureserver.net 250-AUTH LOGIN PLAIN 250-8BITMIME " SMTP -> get_lines(): $data was "250-p3plsmtpa01-02.prod.phx3.secureserver.net 250-AUTH LOGIN PLAIN 250-8BITMIME " SMTP -> get_lines(): $str is "250 PIPELINING " SMTP -> get_lines(): $data is "250-p3plsmtpa01-02.prod.phx3.secureserver.net 250-AUTH LOGIN PLAIN 250-8BITMIME 250 PIPELINING " SMTP -> FROM SERVER: 250-p3plsmtpa01-02.prod.phx3.secureserver.net 250-AUTH LOGIN PLAIN 250-8BITMIME 250 PIPELINING SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 " SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 " SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "235 Authentication succeeded. " SMTP -> get_lines(): $data is "235 Authentication succeeded. " SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 Sender accepted. " SMTP -> get_lines(): $data is "250 Sender accepted. " SMTP -> FROM SERVER: 250 Sender accepted. SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 Recipient accepted. " SMTP -> get_lines(): $data is "250 Recipient accepted. " SMTP -> FROM SERVER: 250 Recipient accepted. SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "354 End your message with a period. " SMTP -> get_lines(): $data is "354 End your message with a period. " SMTP -> FROM SERVER: 354 End your message with a period. SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "250 Accepted message qp 31822 bytes 985 " SMTP -> get_lines(): $data is "250 Accepted message qp 31822 bytes 985 " SMTP -> FROM SERVER: 250 Accepted message qp 31822 bytes 985 SMTP -> get_lines(): $data was "" SMTP -> get_lines(): $str is "221 Good bye. " SMTP -> get_lines(): $data is "221 Good bye. " SMTP -> FROM SERVER: 221 Good bye.

And here is the kicker.... the message actually gets sent. so the system is technically working.

I am running my own ubuntu server hosting the site but I'm letting godaddy handle email. I've tried the regular godaddy relay server but since I'm not on a godaddy server it gets blocked, and i get a similar message to the one above, except with a big fail at the end. so I'm stuck using the authenticated smtp system.

I know it wasnt for my issue exactly but earlier it was mentioned in here to replace the languages/index.php which i did anyway but still get the error.

so.... any ideas? sadly I don't get paid for this site untill its 100% functional, apparently 99.99999999% just wont cut it.

12 Dec 2009, 3:02 PM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Error on line 44 (functions_general.php)

That's all SMTP debug information, which only appears if you've edited .php files to turn it on.
So, this begs the question ... why did you turn that on in the first place?

Compare these files on your server against the original Zen Cart files, and resolve the differences:
/includes/functions/functions_email.php
/includes/classes/class.smtp.php

12 Dec 2009, 3:23 PM
#23
tyguy avatar

tyguy

New Zenner

Join Date:
Dec 2009
Posts:
2
Plugin Contributions:
0

Re: Error on line 44 (functions_general.php)

you sir, are my new personal savior. I found in the functions_email:

define('EMAIL_SYSTEM_DEBUG','0');

set it to one and whalla. worked fine. Thank you so very much. I now can send out a bill and get enough money to buy chrstmas presents... and food. and maybe pay my heating bill.