Custom Menu's not working

Custom Menu's not working

by Dominic Crowson -
Number of replies: 6

Hi Everyone,

I'm using 2.1 (Build: 20110701) and having a go with Custom Menu's but if I use the example given, this results in the URL being shown instead of the Text:

Custom Menu

And if you click on the link you get the following error message:

Not Found

The requested URL /admin/<a href= was not found on this server.

Which is not surprising as the output is rendered as:

<a title="Moodle community" href="<a href="http//moodle.org" class="_blanktarget">http://moodle.org</a>">Moodle community</a>

Is anyone else seeing this?

And can anyone tell me which files control the custom menu items?

Thanks

Fred

Average of ratings: -
In reply to Dominic Crowson

Re: Custom Menu's not working

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi,

I have just been running some tests on a website which reported the same problem.

Can you give me some more details so I can set up a Moodle Tracker for this.

I need to know...

Server type (Window 2008/Linux/etc)

Computer OS (Windows 7 /XP/Mac/ etc)

Browser )IE/FireFox/Safari/ etc)

Build version of Moodle (found in your root directory in filename version.php)

Thanks

Mary

In reply to Mary Evans

Re: Custom Menu's not working

by Dominic Crowson -

Hi Mary,

I've just raised it as a bug in Tracker:

http://tracker.moodle.org/browse/MDL-28521

It may be linked to this bug:

http://tracker.moodle.org/browse/MDL-28168

Thanks

Fred

In reply to Dominic Crowson

Re: Custom Menu's not working

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Fred,

Looks like I beat you to it...

MDL-28519

I'll link them together for completeness.

It is beginning to look like the version of Moodle which has the BUG with the men, and I suspect it is also related to the work in MDL-28168 which was done to fix a language problem with the menu. However, later versions released since your version, and the menu works fine.

So my advice is upgrade to the latest version of Moodle 2.1

Thanks

Mary

In reply to Mary Evans

Re: Custom Menu's not working

by Dominic Crowson -

The issue is fixed in the latest stable version - I'm now running  2.1+ (Build: 20110726) and custom menu are working as they should.

Thanks

Fred

In reply to Dominic Crowson

Re: Custom Menu's not working

by Dominic Crowson -

The issue was in:

/moodle/lib/outputcomponents.php

and was fixed with the commit to revision 1.160.2.1, Fri Jul 8 17:40:24 2011 WST

Fred