Pages start with </__body> tag, not parsing header

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: Pages start with </__body> tag, not parsing header

Post by pixelita »

I am only uding CalGuy's ecommerce module along with cart, orders, products. Not any version of shop made simple.
Submit your site to the We Love CMSMS showcase
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pages start with </__body> tag, not parsing header

Post by Dr.CSS »

I see them listed in your modules, do you have them not installed or ?..
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: Pages start with </__body> tag, not parsing header

Post by pixelita »

Swear on my cats life. Just CalGuys eccommerce modules. I have been sick with a cold these last few days. I will take a screen shot of myodule manager page if that helps.
Submit your site to the We Love CMSMS showcase
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Pages start with </__body> tag, not parsing header

Post by calguy1000 »

Please paste the entire page template... that site was puking before the body was finishing.. wasn't a problem with the head template... that I saw.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Pages start with </__body> tag, not parsing header

Post by psy »

Could not login to "http://honfish.pixelita.com" and the site was set to "Site down for maintenance" and the admin required a username and password.

Try removing CTLModuleMaker. This module is very old and no longer supported. It may be using old syntax in the PHP code that is incompatible with later versions of CMSMS.

It's also not needed on a client site, only the module that it generated. What is the module it created?
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Pages start with </__body> tag, not parsing header

Post by paulbaker »

pixelita, might be fixed by now? But if not, the way I see it is: you didn't do anything to change the sites. But something has changed - so it surely must be the hosting?

Check with them what changes were made at the time the sites first went wrong. That info should help you get to the bottom of the problem.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: Pages start with </__body> tag, not parsing header

Post by pixelita »

As an update, with the help of a forum member, I pretty much got most everything settled down. And it was fine a few days ago. No one breathed on it wrong.

And now, once more, same misbehavior (starts parsing with the </__body> tag, skipping what's above), but I have isolated it to something that used to work and now has stopped working so I thought I'd come here and ask, once more, for some help.

The Product (CGeCommerce) module is involved. I have a detail template that calls a summary template at the bottom of the page, which is to display three random products from the same category. It had been working when Wonderful Forum Guy handed the site back to me. And neither of us has touched it since. And now it stopped working; as in, the code that once worked works no more. We are out of ideas.

I know this summary template code is the culprit because if I remove it, the page loads fine. But I really want that feature -- the ability to display other related products, with pictures, formatted as I had them.

One big clue is error text that is displayed in place of the summary template:

Code: Select all

INTERNAL ERROR: Query failed - SELECT SQL_CALC_FOUND_ROWS C.*,PH.hierarchy_id FROM cms_module_products C LEFT JOIN cms_module_products_prodtohier PH ON PH.product_id = C.id WHERE C.status = 'published' ORDER BY random asc LIMIT 0, 3 -- Unknown column 'random' in 'order clause'
Here is the summary template code that is supposed to display those three random same-category products:

Code: Select all

<!-- HFC_V3_PRODUCT_SUMMARY_SIMILAR_INLINE_REVD -->
{foreach from=$items item=entry}
	<div class="store-similar-items">
	{if count($entry->fields)}
		{foreach from=$entry->fields key='name' item='field'}
		{if $field->name == 'image'}
			<a href="{$entry->detail_url}" class="item-link"><img class="item-image" src="{$entry->file_location}/{$field->value}" width="225" height="260" alt="{$field->value}"/></a>
			<ul class="store-similar-list">
			<li><strong>Item:</strong> <a class="summary-product-link" href="{$entry->detail_url}" class="item-link">{$entry->product_name}</a></li>
			<li><strong>Price:</strong> {$currency_symbol}{$entry->price}</li>
			{if isset($entry->categories)}
			<li><strong>Category</strong>: {foreach from=$entry->categories item='category'}{$category->name},&nbsp;{/foreach}</li>
			{/if}
			</ul>
		{/if}
		{/foreach}
	{/if}
	</div><!-- /store-similar-items -->
{/foreach}
And here is the code in the detail template that used to call that summary template without a problem until yesterday, and which, once removed, causes the page to load fine (although without the Similar Products displayed):

Code: Select all

{Products action='default' category=$category->name sortby='random' pagelimit='3' summarytemplate='hfc_v3_product_summary_similar_inline_revd'}
And here is the main products page. clicking on any product should take you to the detail page for that product.
Login Credentials: client/letmein
http://honfish.pixelita.com/store

Oh, and while I was writing this, I encountered more failure. Now, it throws out an error:

Code: Select all

Error: at line 127 in file /home/pixelita/public_html/honfish/lib/smarty/sysplugins/smarty_internal_templatebase.php:

Message:
Unable to load template module_db_tpl 'Cart;addtocart_hfc_v3_add2cart'
And here's the template it complains about; and it also complains in the same way if I switch to the sample template. Oy.

Code: Select all

<!-- CART: hfc_v3_add2cart -->
<div class="add2cart">
{if isset($cart_error)}
{cgerror}{$cart_error}{/cgerror}
{/if}

<div class="mycart">
{$formstart}
<input type="text" name="{$quantityname}" value="1" size="2" maxlength="2"/>
{if isset($attribute_count) && $attribute_count gt 0} 
{foreach from=$attributes item='attrib'}
{$attrib->name}: {$attrib->control}
{/foreach}
{/if}
<input type="submit" name="{$submitname}" value="{$addtocarttext}"/>
{$formend}
</div><!-- /mycart -->
</div><!-- /add2cart -->
This is exactly the kind of thing that had started happening when I first posted this thread. The fact that you can sit there and DO ABSOLUTELY NOTHING and your CMSMS-based site can fail.

Is there something I am not doing (and I've been developing CMSMS sites for awhile so I am not exactly a newbie, although I don't understand as much as some of you about Smarty and PHP)???
Submit your site to the We Love CMSMS showcase
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Pages start with </__body> tag, not parsing header

Post by calguy1000 »

Well, obviously something has changed.

BTW. the sortby=random will not work in Products 2.18.4, it's a bug I have fixed but haven't released yet.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am

Re: Pages start with </__body> tag, not parsing header

Post by pixelita »

BTW. the sortby=random will not work in Products 2.18.4, it's a bug I have fixed but haven't released yet.
CalGuy, if you are trying to drive me crazy, it will be a short trip! :D

So should I just hang on and wait for the release? (I am having eye surgery in three weeks and I am trying to prod my client to get this thing launched before that as I don't know what shape my eye will be in after that. :) (Lesson for all you young pups out there, old age ain't for wimps!)
Submit your site to the We Love CMSMS showcase
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Pages start with </__body> tag, not parsing header

Post by paulbaker »

The Looking for similar products? section is working for me at the moment. Does that mean it's been fixed? :P
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Pages start with </__body> tag, not parsing header

Post by Wishbone »

I have had this issue before ... When I turned on debug, PHP errors showed up, which gave me a clue what the issue was.. I don't remember what the actual issue was, however.
janvl
Power Poster
Power Poster
Posts: 985
Joined: Wed Aug 13, 2008 10:57 am

Re: Pages start with </__body> tag, not parsing header

Post by janvl »

THIS IS SOLVED!

[EDIT] The updats for mudules in the module manager showed up first half an hour after the update! When I updated the Cart-Module all is working OK

When upgrading from 1.11.4 to 1.11.7 mind to upgrade the modules for the CGE-ecommerce-suit, checkout in the download-area of the website if you have all the new modules!
Then it will work perfectly again!

Kind regards,
Jan
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Pages start with </__body> tag, not parsing header

Post by staartmees »

adjust the timesettings in your config.php
add [SOLVED] to the title
janvl
Power Poster
Power Poster
Posts: 985
Joined: Wed Aug 13, 2008 10:57 am

Re: Pages start with </__body> tag, not parsing header

Post by janvl »

I cannot add solved to the title, this is not a thread I started.

Kind regards,
Jan
Locked

Return to “Modules/Add-Ons”