ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Fatal error on undefined function


  • 2003-07-10 13:06:37

    Fatal error on undefined function

    I am a complete newbie when it comes to installing mysql and php support
    but I think I have got everything running on a Libranet 2.8 installation of
    Debian (small plug for a Canadian accomplishment: try Libranet if you want
    the joys of Debian without the pain ;-)
    I haven't put this server online yet so have just left the Apache home address as localhost, but it works and after modifying httpd.conf to get it
    to accept php pages, I end up with this fatal error message:

    Fatal error: Call to undefined function: cache() in /var/www/ATutor/include/vitals.inc.php on line 428

    What have I done wrong? I followed the installation instructions for ATutor
    to the letter - except for modifying config.inc.php
    In other words I haven't defined the database user passwrds; could this
    explain such a fatal thing as this error?
    Thanks for any help.
    Guy :\

  • 2003-07-10 13:17:52

    Mysql must be set up first

    Yes that is the problem. ATutor will not run without access to the database.

    If you have trouble with cache errors after the database is setup comment out the last line of config.inc.php (see the instructions in the config file)

  • 2003-10-25 17:33:25

    Hosted accounts can sometimes seem tricky

    As an example, using phpMyAdmin you'll typhically create a Mysql database (such as 'atutor'), then create a user (such as 'thomas') and finally a password (such as '4325')

    The thing to keep in mind is that often your hoster will config phpMyAdmin to actually create something like this:

    'yourhosteraccountname_atutor' as the database
    and
    'yourhosteraccountname_thomas' as the user

    It is *these* strings that need to be inserted into the config.inc.php file. Inexplicably, (from my perspective at least) the password you've defined ('4325') does not get put in with the prefix, just '4325'.

    btw, many thanks to these board contributors. TEH

    ;)