Undefined variable Installation Errors

Undefined variable Installation Errors

by David Roberts -
Number of replies: 3

I tried installing moodle on my server and I recieved this error on my page:

Notice: Undefined variable: CFG in /home/activere/public_html/elearn/lib/setup.php on line 18

Fatal error: Failed opening required '/lib/adodb/adodb.inc.php' (include_path='') in /home/activere/public_html/elearn/lib/setup.php on line 20

Fatal error: Call to undefined function: get_string() in /home/activere/public_html/elearn/mod/resource/lib.php on line 11

Here is my config.php info=

 

$CFG->wwwroot   = "http://www.activereactive.com/elearn";

$CFG->dirroot   = "http://www.activereactive.com/elearn";

$CFG->dataroot  = "http://www.activereactive.com/elearn/elearndata";

 

Thanks for taking the time to help me out

 

Average of ratings: -
In reply to David Roberts

Re: Undefined variable Installation Errors

by Martin Dougiamas -
Mmàggini di Core developers Mmàggini di Documentation writers Mmàggini di Moodle HQ Mmàggini di Particularly helpful Moodlers Mmàggini di Plugin developers Mmàggini di Testers
The second two are wrong. They should be directory names, not URLs.

Try:

$CFG->dirroot = "/home/activere/public_html/elearn/";

$CFG->dataroot = "/home/activere/public_html/elearn/elearndata";

In reply to Martin Dougiamas

Re: Undefined variable Installation Errors

by David Roberts -

Thanks Marcus!!!!!!!!!!!!!!!!!!!!

biggrin.gif  That was extra quick and painless to fix!

In reply to David Roberts

Re: Undefined variable Installation Errors

by Martin Dougiamas -
Mmàggini di Core developers Mmàggini di Documentation writers Mmàggini di Moodle HQ Mmàggini di Particularly helpful Moodlers Mmàggini di Plugin developers Mmàggini di Testers
 > Thanks Marcus!!!!!!!!!!!!!!!!!!!!

No worries, Darren! wink