Page content disappears

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Page content disappears

Post by cnymike »

Something very odd is going on with the page editor.

I'm using Firefox 2.0.0.3 on a Mac.

I've not noticed the problem before... but it has occurred since upgrading to 1.0.5. Not sure if there is a correlation or not.

I have a page on my website that has only one line of code on it. It is the imbedded Google Calendar code which is an iFrame.

So when I went to that page in Admin today to look at it, the textarea where the page content should have been was blank. No code for the Google calendar at all. It had basically disappeared. However going to the website and clicking on the "Calendar" page, shows the calendar just fine.

So I went back  into admin and back to the Calendar page. I entered the Google Embed code again into the page and Applied it and the code showed up as you would expecct. then I submitted the page. when I went back to the page in Admin, again, the page content was blank.

what the heck?

I  just checked the Admin with Safari and the content is not missing... so it seems to be a Firefox issue of some sort. Beats me.

Michael
Last edited by cnymike on Fri Apr 20, 2007 6:33 pm, edited 1 time in total.
Pierre M.

Re: Page content disappears

Post by Pierre M. »

In my FF, I have NoScript and Adblock extensions, and settings to prevent downloading/execution of remote unsollicited content/images/scripts/etc. I think these settings forbid an iframe mess to mess things. Sorry, I don't like (i)frames at all ;)
Pierre M.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Page content disappears

Post by cnymike »

What is strange is that this hasn't been happening previously in Firefox. I don't think Firefox is the culprit, I think the FCKeditor is.

I've been using Firefox all along because the FCKeditor won't work in Safari, so Firefox is my only option. But why this issue has developed all of a sudden is what baffles me. I -think- it might be related to CMSMS 1.0.5 or the FCKeditor because inserting the iFrame code into the editor in Soure mode then switching to WYSIWIG mode makes the code disappear. It doesn't even have anything to do with applying or submitting the page.

If I go view the source code for the Admin Editing window, even though the code does not show up in the Editor textarea, it -does- show up in the source code for the page, but the issue seems to be with entities being converted.

So I pasted this into the editor...

""

And then I switch to WYSIWIG view and when I look at the source code of the Editor window it looks like this...



Sure looks like an editor issue to me... and one that has just recently developed, probably with 1.0.4 or 1.0.5 updates? What else could do this?
Last edited by cnymike on Fri Apr 20, 2007 6:35 pm, edited 1 time in total.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Page content disappears

Post by cnymike »

So it -is- an FCKeditor thing because I just switched editors to TinyMCE and the iFrame code shows up perfectly!

Where do I report this as a bug or problem?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Page content disappears

Post by Nullig »

I notice in this piece of your code a missing " - I wonder if it's throwing everything off.

style=" border-width:"0" width="640" frameborder="0" height="588"

Nullig
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Page content disappears

Post by cnymike »

That was a good observation and I was hoping that that would fix the problem. that code is Google generated code so that part of it is a Google problem that I will have to alert them to.

Sadly, it did not fix the problem of that showing up in the FCEeditorX though.

I wonder if it's the entities causing the problem?
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Page content disappears

Post by cnymike »

Well it wasn't the entities... in the editor in source view, I changed all the "&" to "&" and it didn't make a bit of difference. the code still disappears from the editor window once you apply, submit or just switch to the WYSIWIG view.

I have another installation of CMSMS 1.0.5 on the same server that also exhibits the same problem. If I take away the tag, then the page displays the code. So it sort of seems like it is the tag that is causing this behavior.

Now here is something I just discovered... if I add another piece of code or text to the page below the iFrame, then everything starts working again.

Could someone else try adding a page that has nothing but an iFrame in it to see if you can duplicate this? then try adding something like " Test below the iFrame code and see what happens then?

Another thing I just discovered is that if I enclose the iFrame code in a tag, then that makes everything work again too>

So does XHTML 1.0 Transitional require that an iFrame be enclosed in tags? Or is this just a FCKeditorX problem?
Locked

Return to “[locked] Installation, Setup and Upgrade”