Has anyone seen this yet after adding a new category...

Has anyone seen this yet after adding a new category...

de către Tom Ventresco-
Număr de răspunsuri: 4
Hi,

Warning: Failed opening '/home/httpd/html/moodle/mod/reading/db/mysql.php' for inclusion (include_path='.:/usr/local/lib/php')
in /home/httpd/html/moodle/admin/index.php on line 137

I did a painless upgrade from 1.0.5 to 1.0.6 beta 1 all works well. I am logged in as admin.

After adding a new category and clicking on the Administration link at the top I get this little message as above. All works though. Funny thing line 137 of the index.php file the end of the file.

Thanks

Tom V.
Media notelor: -
Ca răspuns la Tom Ventresco

Re: Has anyone seen this yet after adding a new category...

de către Martin Dougiamas-
Imaginea Core developers Imaginea Documentation writers Imaginea Moodle HQ Imaginea Particularly helpful Moodlers Imaginea Plugin developers Imaginea Testers
The reading module was renamed to resource. This error is occurring because something from the old reading module is still hanging around. Exactly how did you do the upgrade?

If you used CVS you MUST use the -P and -d options:

cvs update -dP

Cheers,
Martin
Ca răspuns la Martin Dougiamas

Re: Has anyone seen this yet after adding a new category...

de către Frank Parker-

Martin, I have seen this same error when I upgraded as well and I downloaded from the new release.  I noticed that there is no file mysql.php in the mod/reading/db/ folder. Moving a copy to this location created another error.  The rest of the site appears ok. The error exist only when going to the admin page.  I am running on WInNT.

Warning: Failed opening 'd:\program files\easyphp\www\moodle/mod/reading/db/mysql.php' for inclusion (include_path='.;d:\Program Files\EasyPHP\php\pear\') in d:\program files\easyphp\www\moodle\admin\index.php on line 137

' + inobj[objprop] + '\n');
}
op.document.close();
}

function fillmessagebox(text) {
document.form.message.value = text;
}

function openpopup(url,name,height,width) {
fullurl = "http://hermes.jcsu.edu/moodle" + url;
options = "menubar=0,location=0,scrollbars,resizable,width="+width+",height="+height;
windowobj = window.open(fullurl,name, options);
windowobj.focus();
}

function copyrichtext(textname) {
textname.value = document.richedit.docHtml;
return true;
}


// done hiding -->

Frank

Ca răspuns la Frank Parker

Re: Has anyone seen this yet after adding a new category...

de către Martin Dougiamas-
Imaginea Core developers Imaginea Documentation writers Imaginea Moodle HQ Imaginea Particularly helpful Moodlers Imaginea Plugin developers Imaginea Testers
Did you install the new files OVER THE TOP of your old files? (see UPGRADING.txt)

There shouldn't even BE a mod/reading directory.

To fix this you'll need to:

- delete the mod/reading directory, and
- delete the record containing 'reading' from the 'modules' table

Cheers,
Martin
Ca răspuns la Martin Dougiamas

Re: Has anyone seen this yet after adding a new category...

de către Frank Parker-
You were right.  I eliminated the mod/reading directory and deleted the record containing 'reading' from the 'modules' table and cleared everything up.  Thanks for your prompt response.  The new features are fantastic.   Frank biggrin.gif