Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

clivewalker
Ecommerce Template Expert

United Kingdom
689 Posts

Pre-sales questions only
(More Details...)

Posted - 08/08/2024 :  01:53:34  
Can anyone help with this? I am getting the following PHP error in server error log. It's an occasional error every few days but it is not affecting the site front end.

[code]Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/vsadmin/inc/incminidropdowncart.php:117) in /home/xxx/public_html/vsadmin/inc/incfunctions.php on line 2716[/code]

I've looked at line 2716 and it is this

[code]header('HTTP/1.1 404 Not Found');[/code]
.... within a PHP function called notfoundmarkup

Is this happening because I have an empty minidropdowncart or something else?


CVW Web Design
www.cvwdesign.co.uk | web design and development

Edited by - clivewalker on 08/08/2024 02:00:38

Vince
Administrator

42756 Posts

Posted - 08/08/2024 :  02:21:19  
Hi Clive
What seems to be happening is that the mini dropdown cart produces output and then the page is trying to set the header probably because the product isn't in the catalog. This could be because you don't have output buffering set so do you have the ob_start() function call as here at the top of the page?

<?php
session_cache_limiter('none');
session_start();
ob_start();
?>

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

clivewalker
Ecommerce Template Expert

United Kingdom
689 Posts

Pre-sales questions only
(More Details...)

Posted - 08/08/2024 :  04:46:57  
Thanks Vince. I have checked pages and have found some without the ob_start() function call. Not quite sure why some are missing it (my omission I'm sure) but will add it and check error logs over coming days.

Thanks again
Clive

CVW Web Design
www.cvwdesign.co.uk | web design and development
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000