domain.org renders fine; error in IE8 on www.domain.org
Hello all
This is a bit of an odd one. The home page of the Contao/Isotope site on which I am working renders in IE8 only if I miss off the www. from the URL. mydomain.org is an A name, www.mydomain.org is a CNAME pointing at mydomain.org.
All other Windows browsers render either address fine. IE8 throws the following error on www.mydomain.org:
Fatal error: Class name must be a valid object or a string in /var/www/vhosts/mydomain.org/httpdocs/system/modules/isotope/IsotopeProductCollection.php on line 229
As I say, if I browse to http://mydomain.org, it works fine.
Can anyone help?
Thanks
Tom
Re: domain.org renders fine; error in IE8 on www.domain.org
What is the code from IsotopeProductCollection.php on line 229?
Re: domain.org renders fine; error in IE8 on www.domain.org
Quote:
What is the code from IsotopeProductCollection.php on line 229?
Code:
$objProduct = new $strClass($objProductData->row(), deserialize($objItems->product_options), $this->blnLocked);
Any ideas?
Tom
Re: domain.org renders fine; error in IE8 on www.domain.org
sorry tom, meaningless to me...
i can't see why only one browser would throw an error but not another.
Re: domain.org renders fine; error in IE8 on www.domain.org
No, I know. It's got me baffled. It seems to be the case that any page which has any Isotope FE module fails to render in IE8/Win if I browse to www.domain.org. Lose the www., and it works. Remove the Isotope modules, and it works with www..
Eh?!
Tom
Re: domain.org renders fine; error in IE8 on www.domain.org
Hi Tom-
Can you PM me a link? That's the weirdest thing I have ever heard. All the processing is server-side on your error, so I don't know how the heck it could throw the error in one browser and not another.
Re: domain.org renders fine; error in IE8 on www.domain.org
PM sent. Buuuut, a colleague has just checked for me, and his IE8 works fine with either. I am truly baffled.
Tom
Re: domain.org renders fine; error in IE8 on www.domain.org
Yeah... My IE8 works fine, too. Did you try emptying your cookies?
Re: domain.org renders fine; error in IE8 on www.domain.org
Yes, but we are thinking along the same lines. Fiddler2 is telling me a cookie stores ISOTOPE_TEMP_CART. I follow through the dB tables, and that cart contains a non-existent product ID. So, maybe try the following (untested):
1. add a product to your basket
2. delete the product from the catalogue in the back end
3. end your IE session, then browse back to the site
Thinking about it, I've proabbly deleted the cookie for www.domain.org, and not for domain.org.
See if you can recreate.
Thanks
Tom
Re: domain.org renders fine; error in IE8 on www.domain.org
Bingo. Deleted the right cookie, and the site came back to life. So, is it the case that if a user places an item in their cart, and that item is then deleted from the back end, that Isotope crashes out when they revisit?
Will test this.
Tom
Re: domain.org renders fine; error in IE8 on www.domain.org
Confirmed, I think:
1. Add item to cart
2. Delete item in back-end
3. Revisit site - crashes with the error above
4. Delete cookie
5. Revisit site - site now works again
Hope this helps, and sorry for being so slow in thinking of cookies as the obvious explanation.
Tom