Post by promofire » Wed Sep 19, 2012 1:42 am

I am using OC 1.5.4. I have been editing my own theme while leaving the default theme alone as recommended. However my issue relates to both default and my own.

Basically, using either theme, the whole site loads just fine. Except for the product page. The product page only loads to the tags section and does not load the footer. It also does not show the tabs, just all the info splatted on there in one shot. If you click Add to Cart, nothing happens. When clicking the error notice in IE it gives me this:

Code: Select all

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; IPH 1.1.21.4019)
Timestamp: Tue, 18 Sep 2012 17:38:52 UTC
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://www.puro3.com/puro3/puro3-jojoba-oil
I have no idea how to fix this. I even redownloaded the 1.5.4 file and reuploaded the whole default template, just in case I accidentally replaced a file previously. It still doesn't work. Right now I have it on my custom theme but it does the same no matter what theme I use, and only on the product page. I'm begging for some help with this.

Thanks

Active Member

Posts

Joined
Thu Jan 27, 2011 2:00 am

Post by promofire » Wed Sep 19, 2012 4:25 am

After MUCH testing I've determined the issue is in this code:

Code: Select all

<script type="text/javascript"><!--
$('.colorbox').colorbox({
	overlayClose: true,
	opacity: 0.5
});
//--></script> 
When I placed that after the tags script before the footer on product.tpl it loaded the tabs but still not the footer. Once I deleted that bit entirely, everything loads but when you click the product picture, it loads in the window itself and you have to hit back, which is not ideal. Does anyone know what the problem is and how to fix it so I can still get image popups but not the IE issues with loading?

Thanks

Active Member

Posts

Joined
Thu Jan 27, 2011 2:00 am

Post by promofire » Wed Sep 19, 2012 4:41 am

ALL right, I've managed to fix it somewhat. At least everything works now. For anyone else having this issue, cut the code I showed above for the colorbox out of product.tpl and put it in footer.tpl right above the </body> tag. In IE8 it simply won't load anything that comes after it but by having it last, everything is above, so everything loads.

Active Member

Posts

Joined
Thu Jan 27, 2011 2:00 am

Post by promofire » Tue Oct 02, 2012 10:12 pm

Glad I could help though it won't be much. If you install any mods that vqMod stuff just above the </body> tag, they won't load in IE8 because they'll appear after the colorbox script. A real fix would be much more helpful if anyone knows of one. Otherwise you'll have to manually add any vqMod scripting into your footer above the colorbox bit.

Active Member

Posts

Joined
Thu Jan 27, 2011 2:00 am

Post by skaero » Sat Oct 06, 2012 1:21 pm

Just ran into this problem myself, here is the correct way to fix it:
Find:

Code: Select all

$('.colorbox').colorbox({
	overlayClose: true,
	opacity: 0.5
});
And replace it with:

Code: Select all

$(function() {
  $('.colorbox').colorbox({
          overlayClose: true,
          opacity: 0.5
  });
});
This will run the colorbox setup after the page has finished rendering so the content below it wont get cut off.

Newbie

Posts

Joined
Tue Aug 05, 2008 8:18 am

Post by aaron-commerce » Sun Oct 07, 2012 11:04 pm

Thanks a million skaero for this.
I followed your code and it worked!

Also thanks promofire for identifying this issue in the colorbox

I really appreciate this fix
skaero wrote:Just ran into this problem myself, here is the correct way to fix it:
Find:

Code: Select all

$('.colorbox').colorbox({
	overlayClose: true,
	opacity: 0.5
});
And replace it with:

Code: Select all

$(function() {
  $('.colorbox').colorbox({
          overlayClose: true,
          opacity: 0.5
  });
});
This will run the colorbox setup after the page has finished rendering so the content below it wont get cut off.


Posts

Joined
Sun Oct 03, 2010 9:27 pm

Post by bshaw1975 » Wed Nov 14, 2012 4:01 am

Will this be fix be checked into the github?

Newbie

Posts

Joined
Mon Nov 12, 2012 3:05 am
Who is online

Users browsing this forum: No registered users and 8 guests