Can't login after server move

Can't login after server move

Yujin Boby發表於
Number of replies: 6
Hi,

I can't login after server move.

Now if i enter wrong login details, it says Invalid login, please try again

But when i enter proper login details, i get error

Warning: Invalid argument supplied for foreach() in /home/somcorp/public_html/funeralce/courses/lib/adodb/adodb-lib.inc.php on line 570

Can any one tell how to fix the problem ?

Thanks,

Yujin
評比平均分數: -
In reply to Yujin Boby

Re: Can't login after server move

Iñaki Arenaza發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

I'm afraid not, unless you tell us what exact Moodle version you are running and all of the execution environment details (web server version, php version, database version, etc.).

Saludos. Iñaki.

In reply to Iñaki Arenaza

Re: Can't login after server move

Yujin Boby發表於
Hi,

Login url is

http://www.funeralce.com/courses/login/index.php

phpinfo is at

http://www.funeralce.com/courses/login/phpinfo.php

Where can i find Moodle version ?

Thanks,

Yujin

In reply to Yujin Boby

Re: Can't login after server move

Yujin Boby發表於
php files start with

// $Id: contents.php,v 1.8 2005/01/27 05:20:31 defacer Exp $

So it is version 1.8 ?
In reply to Yujin Boby

Re: Can't login after server move

Iñaki Arenaza發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

Where can i find Moodle version ?

Just have a look at file .../moodle/version.php and paste its content here.

Saludos. Iñaki.

In reply to Iñaki Arenaza

Re: Can't login after server move

Yujin Boby發表於
The version is

$version = 2005060201; // YYYYMMDD = Moodle 1.5 Date
// X = Moodle 1.5 Point release (0,1,2...)
// Y = Interim incrementer

$release = '1.5 +'; // Human-friendly version name


It was working well on old server, just moved to a new server, it caused the problem. Both old and new server use php 4.4.4
In reply to Yujin Boby

Re: Can't login after server move

Iñaki Arenaza發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片
You seem to be running a very old 1.5 version, which maybe has some issues at the ADODB layer with your new Mysql database and associated libraries. The error message is telling Moodle (in fact ADODB) is unable to get the colums names from the database, so it can't insert data into the database.

I don't know if upgrading to the latest 1.5.4+ version will fix it, but if you have good backups of your database and site files, I think it's worth trying.

Saludos. Iñaki.