Chamelopn only working when debug is on

In both sites I have a template for modern browsers, mobile devices (smartphones) and Internet Explorer 7&8.

I have set rules for modern browsers for smartphones and one single rule for IE7 and one rule for IE8.

When debugging is on, the right template is shown in the according User Agent and the debugging message shows that it works fine.

When swithcing off, the tewmplates wont be shown correctly.

In IE the Template for modern browsers is shown (which looks crap in those old browsers by the way).

Now I have just commented out the and that works.

But that is not a good solution of the problem bec<use I use a form component which enables me to show a message after a visitor has sent me an email.

Any idea what could be the problem? I have looked through the forum but didn't find the solution to my problem.

I don't use a bought template, I use a responsive grid in HTML5 for modern browsers and a rock solid one in XHTML for IE 7&8.

Could it be that the Internet Explorer just is unable to work properly? I have IE 10 installed on my PC under Windows 7 Professional and it crahses all the time when I switch emulator from IE7 ot IE8 etc.

Re: Chamelopn only working when debug is on

Hmmm, I have a feeling that the reason why it works with debugging turned on is probably because of caching. There are some caching components (including the system cache plugin) that do not cache the page if there are "messages" in the queue. The debugging code produces these messages. So you need to turn off the system cache plugin.

I know, caching can be vital, so I would suggest that you use JotCache which allows you to set up different caches for different devices, and that should solve that problem.

Cheers,
Stephen

Stephen BrandonMetaMod / Chameleon developerIf you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod