Public bug reported:

Binary package hint: moodle

After installing Moodle to run with mysql I simply got blank pages when 
accessing
http://localhost/moodle/admin  (I was instructed to use this URL post install 
by the installer).

I eventually changed a line in /usr/share/moodle/lib/setup.php changing ...
  error_reporting(o);  // Hide errors
to become
  error_reporting(1);  // Show errors

At this point my browser, instead of showing blank pages, displayed ....

Fatal error: Call to undefined function mysql_pconnect() 
in /usr/share/moodle/lib/adodb/drivers/adodb-mysql.inc.php on line 376

So installed php5-mysql

This fixed the problem - which had been nasty, because so little information 
was given,
and the above change in the setup file is not obvious. The main setup file is 
actually in another location
( /etc/moodle/config.php )

So I now consider that the install script should check to see if you are using 
the mysql database,
and if you are, it should ensure that php5-mysql is installed. There must be 
many many hardy users that
are having this problem - or else I've just been unlucky somehow, as I upgraded 
from Gutysy to Hardy and may
have found a problem caused by the upgrade route.

==========================================
DATA REQUESTED BY LAUNCHPAD 

lsb_release -rd
Description:    Ubuntu 8.04
Release:        8.04

apt-cache policy moodle
moodle:
  Installed: 1.8.2-1ubuntu4
  Candidate: 1.8.2-1ubuntu4
  Version table:
 *** 1.8.2-1ubuntu4 0
        500 http://gb.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

** Affects: moodle (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Blank pages in Moodle after install - failed to install  php5-mysql
https://bugs.launchpad.net/bugs/234609
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to