Elxis CMS Forum

Extensions => Components => Topic started by: pv2010 on October 10, 2010, 01:44:49

Title: IOS Reservations: occasional problem in HTML rendering
Post by: pv2010 on October 10, 2010, 01:44:49
Hi

I'm just starting to use IORS 3.3.

Sometimes parts of raw HTML are displayed instead of the graphical elements. Usualy refreshing the page solves the problem.

This happens in the admin area but also on the user area.

Note: I don't know if the problem if specific to component IOS reservation, or if is related to the CMS itself.

Can somebody explain help on how to fix this?

(http://imgur.com/hO28H.png)
(http://imgur.com/P8Mhw.png)
(http://imgur.com/NaEiN.png)






Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: datahell on October 10, 2010, 10:28:25
I think someone has reported this again in the past. Personally I have sever seen a behaviour like this. Maybe an HTML tag does not close correctly somewhere or a quote breaks the menu javascript, or a javascript blocker on your computer/browser blocks something. It is hard to see what is the reason for this as the problem happens randomly. If this happen again detect the first area on the page that this happens. Then do right click -> view source and locate that spot on the html code. If there is something unusual there we can afterwards investigate why this has happened. Focus on the Elxis menu, I believe that the problem is there.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: pv2010 on October 10, 2010, 13:04:39
Hi

I just tested in your own demo site and I confirm that the problem is present, and very frequent (like once per 10 requests).

Using Chrome, you see bad HTML rendering, as shown in previous print screens.

Using IE or Firefox, the menu disapears (see image below).

I'm sure you can reproduce the problem in no time using the demo site - I just did that!

Thanks.

(http://imgur.com/o2Ctr.png)
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: datahell on October 10, 2010, 17:51:44
I am sorry but the screenshot you show us is absolutely correct.
The menu does not get displayed in IOSR configuration, also in Elxis configuration and in some other pages too. This is absolutely normal in order to force you to push one of the toolbar icons (save, apply, cancel, etc) and not something from the menu. So, no bug there.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: aiden11 on October 10, 2010, 20:18:02
i have got IOSR installed in too websites and cant see this error, never occurred to me.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: pv2010 on October 11, 2010, 00:57:11
OK - I understand the missing munu.

But please try to use the demo site using Chrome (http://hotels.isopensource2.com/administrator). The problem happens very often using that browser.

Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: datahell on October 11, 2010, 20:56:46
Elxis administration console is optimized for Firefox web browser. Please use firefox.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: pv2010 on October 11, 2010, 23:54:47
OK - I can bear with that. But I saw the problem in the front end also.

As soon as I find the problem again in the front end I will notify you.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: pv2010 on October 12, 2010, 02:45:25
Hi again

The problem just happened again in the fron-end, using Chrome.

I used Chrome's programmer tools (similar to Firebug in Firefox) to inspect the code. The print-screen is in the link below.

Seems like a "bot" is injecting html dinamically, in the wrong place.
To be honest I don't know yet what a "bot" is, and how usefult it can be for the site.

If the problem is originated by the bot, can I just disable all bots? What would be the consequences?

Thanks

Image showing the problem (sorry for the big image):

(http://imgur.com/RStCK.png)

Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: datahell on October 12, 2010, 11:43:54
This is strange. From your screen shots I see that it appears on the IOSR pathway.
 I am checking it right now and I will reply later.

Edit: I checked it and I did nt found any problem on the IOSR pathway. Everything is fine.
I would like to see your site to tell you why this may happen. You have it offline, if you wish open it to see it.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: pv2010 on October 12, 2010, 16:48:59
It's online now - thanks.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: datahell on October 12, 2010, 18:58:25
I am sorry but I dont see this code anywhere.
For me it is absolutely fine, see the screenshot.

The only (irrelevant) thing it is not good is the display of the "n" character above pathway which I guess it is due to wrong escaping of the newline character in template's philoxenia index.php file of a modification by you. Fix that line.

line 81: echo '<div style="clear: both;"></div>'."\n";

[attachment deleted by admin]
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: benniecpt on October 13, 2010, 16:35:25
Hi there

I have exactly the same problem.

I am using chrome most of the times.

I emailed IOS stating that I want to do a clean install, because of this, and to ensure that my license will stay put.

Nevertheless, I did a clean install a couple of days ago before I received a reply - and its still doing it, just a bit less often.

I have not tampered with any code now or before the clean install.

But exactly the same is happening to me. and sometimes its up to a quater (almost half) of the page.

Will keep checking! Maybe someone has a solution.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: datahell on October 13, 2010, 18:07:55
If you dont tell me how I can reproduce the problem then I can not help. I dont nt see anything bad on the site, for me it works fine and there is no strange code in the HTML source code. Note that the HTML source code is irrelevant from the web browser. So, if there was javascript in wrong place in HTML source code all we would see the same thing at least in html.
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: pv2010 on October 14, 2010, 19:11:59
Hi

Maybe it's something very specific to Chrome; maybe it's the way it handles the javascript - I don't know.

Last time the problem happened to me, the HTML source was OK (using "view source code" in the browser).

But using the "Developer Tools" in chrome, which is similar to Firebug in Firefox, I could see the wrong HTML source, which was being rendered on screen.

I hope this helps. I suggest that you focus on testing with Chrome.

Thanks
Title: Re: IOS Reservations: occasional problem in HTML rendering
Post by: datahell on October 14, 2010, 20:11:51
All right, now you made it clear.
"developer tools" is a browser plug-in that displays you not the original source code but a beautified one. The original source code is the one you see by using "view source" which is the same for all browsers, even if you open the page in html, text or any other mode. Even if you get this page with CURL or PHP's fsockopen you will see the exact same HTML source code. This is universal. It is the source code the elxis via the web server has generated. Anything else has been rendered though a filter and it may contain 1000 other things for which I dont care as they simple dont exist and it might be a browser bug. The javascript code you wrote for example is impossible to have been injected there by elxis/IOSR.

Elxis/IOSR tells the web server to generate the link like that:
Code: [Select]
http://www.mysite.com/index.php?x=1&y=2&Itemid=8You see in your debugging program this:
Code: [Select]
http://www.mysite.com/index.php?x=1&y=2&Itemid=<script>....</script>8
There is no way Elxis / IOSR to do that as there is nothing between "Itemid=" and "8" in the original source code. This is a dynamic javascript injection in your debugger program as that kind of javascript injection can not be done in the HTML source code. This is why it is not visible is the "view source", it really does not exist! This is a bug of the debugger program you are using or there is a virus in your computer or "bad" javascript in your site.

Simple tools are always the best. Use "view source", it is simple and the exact thing the web server generates.