Can't login after server move

Can't login after server move

ni 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
Average of ratings: -
In reply to Yujin Boby

Re: Can't login after server move

ni Iñaki Arenaza -
Larawan ng Core developers Larawan ng Documentation writers Larawan ng Particularly helpful Moodlers Larawan ng Peer reviewers Larawan ng 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

ni Yujin Boby -
In reply to Yujin Boby

Re: Can't login after server move

ni Iñaki Arenaza -
Larawan ng Core developers Larawan ng Documentation writers Larawan ng Particularly helpful Moodlers Larawan ng Peer reviewers Larawan ng 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

ni 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

ni Iñaki Arenaza -
Larawan ng Core developers Larawan ng Documentation writers Larawan ng Particularly helpful Moodlers Larawan ng Peer reviewers Larawan ng 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.