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
Embedding Serendipity in Zen Cart
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Embedding Serendipity in Zen Cart
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
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thanks Garvin
I will see what I can do to fix it. Thanks for the information!
Best Regards,
Jim
Best Regards,
Jim