## General help

### Error in latest CVS?

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

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...

Average of ratings: -
Re: Error in latest CVS?
It is a bug, the files will be updated soon. Sorry for the problems.

skodak

Average of ratings: -
Re: Error in latest CVS?

No problem, thanks a lot for the feedback Petr.

Average of ratings: -
Re: Error in latest CVS?
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)
Re: Error in latest CVS?

Thanks for this Petr.
My nearly 1.4.2 Moodle for windows is now working.
Tim

Average of ratings: -
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: -
Re: Error in latest CVS?
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: -
Re: Error in latest CVS?
My fault - the script is OK on my site but I forgot to check it in.

Average of ratings: -