upgrade moodle failed

upgrade moodle failed

riris grace發表於
Number of replies: 8

Hi all, i need your help, i want to upgrade my moodle from version 2.7.2+ (Build: 20141002) (2014051202.04) to 3.1+ (Build: 20160707) (2016052300.07)

and i already fix several requirements then i get into this page:

upgrade_page

then i click continue but the result is the blank page,

 

what should i do to fix this? really need your help...thank you


評比平均分數: -
In reply to riris grace

Re: upgrade moodle failed

Just H發表於

Turn on debugging to developer level and see if the error is shown (post the error here if you're not sure what it means).

In reply to Just H

Re: upgrade moodle failed

riris grace發表於

Where I could set the debugging level? 

In reply to riris grace

Re: upgrade moodle failed

Just H發表於
In reply to Just H

Re: upgrade moodle failed

riris grace發表於

the error message is $CFG->dataroot is not configured properly! Exiting

then i follow several intruction and make some changes in config.php

change

$CFG->wwwroot   = 'http://example.com/moodle'; to

$CFG->wwwroot   = 'http://localhost/moodle'; and

$CFG->dataroot  = '/home/example/moodledata'; to
$CFG->dataroot  = 'C:\xampp\moodledata';

but it still give error message :

Error: database driver problem detected

The site administrator should verify server configuration

PHP has not been properly configured with the PGSQL extension so that it can communicate with PostgreSQL. Please check your php.ini file or recompile PHP.

Debug info:
Error code: dbdriverproblem
Stack trace:
  • line 127 of \lib\dml\pgsql_native_moodle_database.php: dml_exception thrown
  • line 344 of \lib\dmllib.php: call to pgsql_native_moodle_database->connect()
  • line 612 of \lib\setup.php: call to setup_DB()
  • line 855 of \config.php: call to require_once()
  • line 30 of \index.php: call to require_once()

plese help..

In reply to riris grace

Re: upgrade moodle failed

Albert Ramsbottom發表於

You need to change the:

$CFG->dbtype    = 'pgsql';

to:

$CFG->dbtype    = 'mysqli';


Assuming that you are using MySQL


Albert

評比平均分數:Useful (1)
In reply to Albert Ramsbottom

Re: upgrade moodle failed

riris grace發表於

thanks Albert,

this problem already solved, but i still have another problem :

Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\moodle\lib\classes\plugin_manager.php on line 2212


and i try to change :

max_execution_time = 1800
max_input_time = 1800

and try:

max_execution_time = -1
max_input_time = -1

but still has the same problem.

do you have any idea?



In reply to riris grace

Re: upgrade moodle failed

riris grace發表於

i'm sorry but i did wrong edit on php.ini,

this already resolved.

thanks guys 微笑

In reply to riris grace

Re: upgrade moodle failed

riris grace發表於

Hi all, i need your help,

i already change wwwroot and my localhost already can be access from another pc but several image in moodle, which i use in front page using acchaius theme still can't be load from another pc because if i open 'view source' on the page, the image source still load from localhost <img src="http://localhost/moodle/theme/archaius/pix/picture/images.jpg">

how can i change this to ip number?

but its only happen in two images, the others already load from the ip number, i really confuse 傷心