General help

Error in latest CVS?

 
 
Picture of Tim Allen
Error in latest CVS?
 

I just upgraded to the latest CVS for "1.4.2 nearly ". 

Now whenever I click on the settings link within a course, as an admin, I am getting the following error:

Fatal error: Call to undefined function: parameter() in /var/www/html/myclass/course/edit.php on line 8   sad

Unless someone tells me that this is some oversight or idiosyncracy on my part, I will add this to the bigtracker in the next hour...thoughtful

 
Average of ratings: -
Picture of Petr Skoda
Re: Error in latest CVS?
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers
It is a bug, the files will be updated soon. Sorry for the problems.

skodak
 
Average of ratings: -
Picture of Tim Allen
Re: Error in latest CVS?
 
No problem, thanks a lot for the feedback Petr.  smile 
 
Average of ratings: -
Picture of Petr Skoda
Re: Error in latest CVS?
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers
If you want to fix it, edit file course/edit.php
change:
    $id       = (int)parameter('id', 0);         // course id
    $category = (int)parameter('category', 0);   // possible default category

to:
    $id       = (int)optional_param('id', 0);         // course id
    $category = (int)optional_param('category', 0);   // possible default category

 
Average of ratings:Useful (1)
Me and Ray
Re: Error in latest CVS?
 
Thanks for this Petr.
My nearly 1.4.2 Moodle for windows is now working.
Tim
 
Average of ratings: -
Picture of Ken Rushing
Re: Error in latest CVS?
 

I made the change you suggested, but I still get the same error.  Do you have any more suggestions?

Thanks,
Ken

 
Average of ratings: -
Picture of Petr Skoda
Re: Error in latest CVS?
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers
Try tomorrow the update to the latest 1.4_STABLE CVS version. There are some pending changes in weblib.php - it takes several hours before the update is available when using anonymous CVS access.

skodak
 
Average of ratings: -
Martin Dougiamas
Re: Error in latest CVS?
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers
My fault - the script is OK on my site but I forgot to check it in.
 
Average of ratings: -