ver 1.5 dev install

ver 1.5 dev install

Jacob Romeyn -
回帖数:6

When I try to install Moodle ver 1.5 dev I still get the following error: 

Page class mapping for id "course" exists but class "" is not defined

Continue

The first part :     always stays the same but the rest changes when you click on continue.

I asked my ISP to increase the memory setting in the PHP,  as someone sugested but it did not change anything.

Any other sugestions?

The link is at http://romeyn.ca/moodle/


You are logged in as Admin User (Logout)
回复Jacob Romeyn

Re: ver 1.5 dev install

mike gifford -
I'm getting this same error with an install of the CVS version in MAMP.

Just pulled down the latest code..  got that error, but also got:

Page class mapping for id "course" exists but class "#­À" is not define

After playing with it for a bit.  Not much advancement!

Mike
回复mike gifford

Re: ver 1.5 dev install

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
What is the URL when you see this message?  I've never seen it.
回复Martin Dougiamas

Re: ver 1.5 dev install

mike gifford -
It's everywhere.  I've just set this up on my localhost (so this is a fake domain name), but I get this error from the root directory:
    http://www.moodle.ca/

I didn't get this in previous installs.  This is with the latest version of MAMP for the Mac and the latest CVS code on a new DB.

Mike
回复mike gifford

Re: ver 1.5 dev install

Martin Dougiamas -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
I just tried a clean install without seeing it ... are you sure you have a clean copy of the code?  Try downloading a fresh nightly (or use CVS).
回复Martin Dougiamas

Re: ver 1.5 dev install

John Gone -
I did a fresh install about 8 hours ago with no problems at all.
回复John Gone

Re: ver 1.5 dev install

mike gifford -
Thanks John & Martin for your replies.

Not sure if it is MAMP whch is giving me grief (Apache/2.0.50 (Unix), PHP/4.3.9, and MySQL 3.23.49) or if its because I'm starting from a blank database rather than upgrading the code.

In either case this is the second independent report in the last month so something's up.  Still seems to be busted here from the original complaint:
    http://romeyn.ca/moodle/

The error originates from this library:
$ grep -ir 'Page class mapping for id' *
lib/pagelib.php:        error('Page class mapping for id "'.$type.'" exists but class "'.$mappings[$type].'" is not defined');

And comes from this context:
 
function page_map_class($type, $classname = NULL) {
    static $mappings = array(
        MOODLE_PAGE_COURSE => 'page_course'
    );
 
    if(!empty($type) && !empty($classname)) {
        $mappings[$type] = $classname;
    }
    if(!isset($mappings[$type])) {
        error('Page class mapping requested for unknown type: '.$type);
    }
 
    if(!class_exists($mappings[$type])) {
        error('Page class mapping for id "'.$type.'" exists but class "'.$mappings[$type].'" is not defined');
    }
 
    return $mappings[$type];
}

Mike