Forums / General Questions / unable finalize checkout. Warning: fread(): Length parameter must be greater than 0

unable finalize checkout. Warning: fread(): Length parameter must be greater than 0

Locked

Views: 3,757

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Jan 2008, 4:48 PM
#1
mytinymarket avatar

mytinymarket

New Zenner

Join Date:
Jan 2008
Posts:
1
Plugin Contributions:
0

unable finalize checkout. Warning: fread(): Length parameter must be greater than 0

I am having problems with my site. I am getting an error of the final confirm where it sends it to e-mail. This is what I get.

Warning: fread(): Length parameter must be greater than 0. in /html/includes/functions/functions_email.php on line 344

Warning: fread(): Length parameter must be greater than 0. in /html/includes/functions/functions_email.php on line 344

Warning: Cannot modify header information - headers already sent by (output started at /html/includes/functions/functions_email.php:344) in /html/includes/functions/functions_general.php on line 44

Help please :shocking:

30 Jan 2008, 4:58 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: unable finalize checkout. Warning: fread(): Length parameter must be greater than 0

What version of Zen Cart are you using?
What addons/contributions do you have installed?
What are your settings in Admin->Configuration->Email Options?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Feb 2008, 4:04 PM
#3
cdcalvert avatar

cdcalvert

New Zenner

Join Date:
Jan 2008
Location:
Coeur d'Alene, Idaho
Posts:
10
Plugin Contributions:
0

Re: unable finalize checkout. Warning: fread(): Length parameter must be greater than 0

I am using version 1.3.7.1, with no addons. My email confirmation goes through fine, however I am getting this error also when I click the continue checkout button on the main_page=checkout_payment after selecting the Check/Money order radio button:
"Warning: Cannot modify header information - headers already sent by (output started at /public_html/includes/languages/english/modules/payment/moneyorder.php:53) in /public_html/includes/functions/functions_general.php on line 44."
Line 44 in functions_general.php reads:" header('Location: ' . $url);"
Help would be very much appreciated! Thank you.

5 Feb 2008, 4:16 PM
#4
cdcalvert avatar

cdcalvert

New Zenner

Join Date:
Jan 2008
Location:
Coeur d'Alene, Idaho
Posts:
10
Plugin Contributions:
0

Re: unable finalize checkout. Warning: fread(): Length parameter must be greater than 0

Yippee! I found the answer here: https://www.zen-cart.com/tutorials/index.php?article=87
It merely involved deleting a blank line from the end of the file! Whew!
Thank you!