Page 1 of 1

Embedding Serendipity in Zen Cart

Posted: Fri May 20, 2005 9:55 am
by jparker
I am trying to embed Serendipity within Zen Cart. I can load wrapper.php as described in the documnet http://www.s9y.org/55.html via zen cart (xxxxx.php?main_page=wrapper) but get the error:

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/htdocs/xxxxxxxx/www/includes/templates/template_default/common/html_header.php:29) in /usr/local/apache/htdocs/xxxxxxxxxx/www/serendipity/index.php on line 20

Directly accessing wrapper.php from the browser works like a charm.
Any ideas on how I can get around this problem?
Thanks,
Jim
PS: The two related settings on the Admin Panel (I think that there are only 2) are set as follows:
Index File................................wrapper.php
Is serendipity embedded?......YES

Re: Embedding Serendipity in Zen Cart

Posted: Fri May 20, 2005 11:49 am
by garvinhicking
The problem is that your zen cart makes output before serendipity is called. You need to make sure via ob_start() or other facilities that NO output is made prior to embedding Serendipity! The whole output of your "embedded framework" can only be later outputted when s9y is completed and you have its data captured like outlined in the documentation.

Regards,
Garvin

Thanks Garvin

Posted: Fri May 20, 2005 11:54 am
by jparker
I will see what I can do to fix it. Thanks for the information!
:D
Best Regards,
Jim