Menu Javascript error + undefined property class ... newbie in need of some help

Menu Javascript error + undefined property class ... newbie in need of some help

by Kegan D -
Number of replies: 11

I managed to get moodle to install last night, after multiple failed attempts.

The site loads, and allows me to login.  However I've come across a few teething problems. I have searched these forums for solutions, and tried them... but the problems still exist.

Menu not expanding

The admin menu on left side, doesn't expand when I click on 'My Profile Settings' or 'Site Administration',  the others don't expand or contract either... but these ones are already expanded.

I found a solution on this forum which said to include the following code in the javascript.php file

if (windowobj) { after windowobj = window.open(fullurl,name,options); and close the brachet before return false;

I've put this at the very end of the javascript.php file,  after "Minify::serve('Files', $options);    die();}"

When I did this and uploaded it, the error went and the menu worked fine... now I've come back to fix further problems.... the menu problem is back.  I've tried re uploading the javascript.php file, but can't seem to find a solution.

I have copied the error given on internet explorer too, if that helps?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)Timestamp: Sat, 22 Jan 2011 18:35:06 UTC

Message: Syntax errorLine: 1Char: 1Code: 0URI: http://sitename.hpta.co.uk/lib/javascript.php?file=%2Flib%2Fjavascript-static.js&rev=160

Message: Syntax errorLine: 1Char: 1Code: 0URI: http://sitename.hpta.co.uk/lib/javascript.php?file=%2Flib%2Fswfobject%2Fswfobject.js&rev=160

Message: 'M.util' is null or not an objectLine: 321Char: 1Code: 0URI: http://sitename.hpta.co.uk/

Message: 'M.util' is null or not an objectLine: 1Char: 188Code: 0URI: http://sitename.hpta.co.uk/lib/javascript.php?file=%2Fblocks%2Fdock.js&rev=160

Message: Object doesn't support this property or methodLine: 1Char: 126Code: 0URI: http://sitename.hpta.co.uk/lib/javascript.php?file=%2Fblocks%2Fnavigation%2Fnavigation.js&rev=160

Message: Object expectedLine: 1Char: 1Code: 0URI: http://sitename.hpta.co.uk/

___________________________________________________

The other error, shows on login screen and the index.php page.

Notice: Undefined property: stdClass::$frontpage in /homepages/xx/useraccount/htdocs/moodle/index.php on line 144

$frontpagelayout = $CFG->frontpage;

The page calls the following:

require_once($CFG->dirroot .'/course/lib.php');    require_once($CFG->libdir .'/filelib.php');

I have found a few people with this error on their sites, but no solutions... can someone point me in the right direction?

Thanks

Average of ratings: -
In reply to Kegan D

Re: Menu Javascript error + undefined property class ... newbie in need of some help

by Colin Fraser -
Picture of Documentation writers Picture of Testers

You may want to post this in the General Developer Forum.. you might have more luck there.

In reply to Kegan D

SETTING BLOCK WONT EXPAND!

by Karrie V -

I installed Moodle 2.0.2 (Build: 20110221) last night, played all night and love what I created however all of a sudden my settings block wont expand either... PLEASE HELP!

In reply to Karrie V

Re: SETTING BLOCK WONT EXPAND!

by Julian Harris -

you need to login using admin login

and go to this link : http://yourdomain.com/admin/purgecaches.php

and click purge all caches button.

it's work for me and hope this help your problem

Average of ratings: Useful (1)
In reply to Julian Harris

Re: SETTING BLOCK WONT EXPAND!

by Erlyn Baack -
Hello, I couldn't do anything with site administration as it wouldn't expand. I thought it must have something to do with files in cache, so I deleted all temp files and everything else I could think of with NO GOOD RESULTS. Then, I saw the link posted, and it worked like a miracle! big grin The only thing I had to do though, for my use, I'm trying 2.2+ on my computer in EasyPHP, and I also had to close and restart EasyPHP. After that, everything worked. Your suggestion came just in time! Thanks!
In reply to Julian Harris

Re: SETTING BLOCK WONT EXPAND!

by Michal Cekan -

I have been having the same issues as above and have also used the fix above (with success), but it seems i have to do this every so often as the menu's stop functioning after a day or two. is there a permanent fix for this issue yet? also will this affect students navigation as they begin to register themselves into my moodle?

In reply to Michal Cekan

Ynt: Re: SETTING BLOCK WONT EXPAND!

by eda karacelebi -

please help mee for two days I am writing to forums and reading the forums and doing what the people advise but still my administration blog menu items don't expnadsad

In reply to eda karacelebi

Re: Ynt: Re: SETTING BLOCK WONT EXPAND!

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Eda - I gave you a suggestion in another post you posted https://moodle.org/mod/forum/discuss.php?d=256624&parent=1112845#p1112849 Have you tried all these options?

In reply to Mary Cooch

Ynt: Re: Ynt: Re: SETTING BLOCK WONT EXPAND!

by eda karacelebi -

YEs Mary thanks a lotsmile my problem was about removing the navigation. When I reinstall it, there is no problem on the admin blocks.

In reply to Julian Harris

Re: SETTING BLOCK WONT EXPAND!

by Ahmad K -

And if the above link did NOT give a magic solution,

you can try this link: http://yourdomain.com/theme/index.php

and hit the (Clear theme caches) button.

it worked for me where the (Purge all caches) did not,

HTH

Average of ratings: Useful (1)
In reply to Ahmad K

This forum post has been removed

The content of this forum post has been removed and can no longer be accessed.
In reply to Julian Harris

Re: SETTING BLOCK WONT EXPAND!

by Armando Duran -

That did it for me!

I had been searching for the possible solution to this all weekend and it was not until I upened the console with firebug that I saw m.util is disabled so googling: "m.util is disabled moodle" took me to this post.


Thanks again!