ATutor

Learning Management Tools







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


Database Error


  • 2015-08-26 13:31:30

    Database Error

    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:


    The messages are:

    1:
    Warning: Invalid argument supplied for foreach() in /home2/blynnsik/public_html/ATutor/include/lib/output.inc.php on line 288

    2: Close
    The following errors occurred:

    ATutor was unable to access the database

    ATutor Version:
    2.2(unknown - 2015-08-26 11:47:49). Check Latest Version.
    PHP Version:
    5.4.43
    MySQL Version:
    5.5.42-37.1
    OS:
    Linux 3.12.35.1418868451


    have two messages coming up after installing version 2.2. I have looked at the forum and I cannot fix the issue. I cannot add classes and many of the functions do not work. I also made sure the collation of the tables were as utf8_general_ci

  • 2015-08-26 14:57:13

    Re: Database Error

    The first error is a result of the second, which indicates that ATutor was unable to connect to the database.

    This usually occurs when the login details for the database have been entered incorrectly. Double check those details in the include/config.inc.php file. Try accessing the database with those login details with some other method, like a mysql client such as phpMyAdmin, or from the command line if you have shell access to your server.

    Did you create the database manually, or did it get created by ATutor during the installation? It should be ATutor that creates the database, and it should automatically setup the collation for you.

    Also be sure your system has all the prerequisites:
    http://www.atutor.ca/atutor/docs/requirements.php
    http://help.atutor.ca/admin/requirements_recommendations.php

    Also review the FAQs, particularly question #3
    http://atutor.ca/atutor/docs/faq.php#2

  • 2015-08-26 15:26:52

    Re: Database Error

    Disregard... I fixed this by manually changing the collation on the tables and database to utf8_general_ci. Then, I reinstalled the software to the server. Works now. Thanks.