Front Page - strange problem

Front Page - strange problem

by Arek Jaskolski -
Number of replies: 6
Hello
I have Moodle (now 1.8.4) for over 2 years and 3 days ago happend a strange problem!
My page www.letslearnenglish.info have no Front page and only few blocks.

If I would add some text as summary of front page then everything hide!

Whats happend ?
Arek
Average of ratings: -
In reply to Arek Jaskolski

Re: Front Page - strange problem

by Mauno Korpelainen -

Did you edit header.html or footer.html?

Looking at source code of your site html is for some reason "mixed" or "broken" (some unclosed tags maybe?)

Try to edit that summary and press <> in editor to clean all tags and save.

EDIT: At least

<table id="layout-table" summary="layout">
is not closed at all
In reply to Mauno Korpelainen

Re: Front Page - strange problem

by Arek Jaskolski -
Did you edit header.html or footer.html?

I didn't edit this files.


(table id="layout-table" summary="layout")

is not closed at all


In which place I have to modify this code ?
Regards, Arek
In reply to Arek Jaskolski

Re: Front Page - strange problem

by Mauno Korpelainen -

I think you have the same problem as http://moodle.org/mod/forum/discuss.php?d=89083

"Something" in front page topic section is probably breaking page html and you have several ways to edit it...

In reply to Mauno Korpelainen

Re: Front Page - strange problem

by Richard Enison -
In reply to Richard Enison

Re: Front Page - strange problem

by Mauno Korpelainen -

Yes, it's possible too...although then problems usually appear when you press "Turn editing on". Now html is broken all the time.

If you can't find anything wrong from topic section my next guess is that you should change some code in theme Chameleon css (file user_styles.css). Urs has the following text in file Readme:

You must not write hooks as comma separated lists of elements like

td#middle-column div.bt, div#middle-column div.bt { ... } 

in Chameleon themes because the Chameleon engine can't handle these comma lists. Please write two seperate statements instead.

td#middle-column div.bt { ... } div#middle-column div.bt { ... } 

Your theme user_styles.css has some such tags so I suggest to test if this problem exists in Standard theme and if it does not Chameleon css should be checked next...

Setting debugging to all from administation menu or checking server logs might give more info if none of the previous help.

In reply to Mauno Korpelainen

Re: Front Page - strange problem

by Matt Campbell -
Once upon a time, I wanted to try to add a background image to an HTML Block and it did exactly what I'm seeing on the site - all the blocks up to my HTML Block were fine, but it killed the HTML block and the rest of the blocks and my center column was gone. I was showing some broken divs in my page source.

Now, I couldn't tell you exactly what I did to break it (other than obviously some bad HTML!), but to fix it I went to mdl_blocks and got the block id for the HTML block, then went to mdl_block_instance and searched for that blockid and pageid=1. I took the most recent record and copied the data from configdata over to notepad and then cleared it out and saved it. This cleared out everything I'd put in the HTML block and I was able to work with it again.

I didn't spend a whole lot of time trying to figure it out, but this seemed to be the best answer at the time.

Thanks,
Matt