ATutor

Learning Management Tools







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


problem with ATutor installation


  • 2016-11-17 14:15:41

    problem with ATutor installation

    I'm hitting an error while setting up ATutor. After I enter all of my database information, I receive the error: Fatal error: Call to a member function fetch_array() on a non-object in /home1/*redacted*/public_html/ATutor/include/lib/mysql_connect.inc.php on line 153

    I have verified that my database settings are correct so I'm not sure what is causing this issue. The database user has full privledges to the database.

    Things to describe:
    Operating system ATutor is installed on - 3.12.65-188.ELK6.x86_64 GNU/Linux
    ATutor version - 2.2.2
    Patch #s applied -
    ATutor theme name -
    PHP version - PHP 5.4.45
    MySQL version - 5.5.51-38.2
    Webserver & version -
    Copies of error messages -
    Changes to default settings -
    Web browser being used -
    ...and anything else relevant - This is on a hostgator.com shared hosting account. I'm guessing either hostgator has a unique setting or I'm hitting some kind of security restriction. Is there a command line option to set this up?

  • 2016-11-17 16:15:06

    Re: problem with ATutor installation

    I'm not able to reproduce the problem myself.

    1. I assume you are using Apache as your webserver?

    2. Have you modified anything?

    3. When you upload ATutor, did you upload the 1 tar.gz file, or did you unpack the file first then upload the files one-by-one?

    4. You could try debugging with the debug() function, enabled by setting AT_DEVEL to 1 at the top of the include/vitals.inc.php file

    Once enabled, before line 153 where the error occurs add:

    debug($array_type)

    This should give you "MYSQL_ASSOC"

    If that outputs, then work your way backwards by placing the debug function, up from line to line, adding the various variables that get set to it, to figure where the variable is not being set.

    It sounds a lot like a database connection issue.

    Double check your system requirements at:
    http://help.atutor.ca/admin/requirements_recommendations.php?

  • 2016-12-11 19:06:47

    Re: problem with ATutor installation

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

    Things to describe:
    Operating system ATutor is installed on - inmotion hosting
    ATutor version - 2.2.2.
    Patch #s applied - none
    ATutor theme name - none
    PHP version - 5.6
    MySQL version - inmotion hosting
    Webserver & version - inmotion hosting
    Copies of error messages - ?
    Changes to default settings - ?
    Web browser being used - Chrome
    ...and anything else relevant - new database and new username for that database.

    *********************************************************************************************

    Hi Greg, I have been trying to install ATutor in a hosting plan that I have at inmotion hosting. I have an extended plan and have been installing several software before, like osclass, oxyclassifieds, etc etc without problems. I created a new database and a new user with full privileges, I get the next error:

    Fatal error: Call to a member function fetch_array() on a non-object in /home/USERNAME/public_html/TESTDOMAIN/ATutor/include/lib/mysql_connect.inc.php on line 153


    I did try the solution of modifying vitals.inc.php and mysql_connect.inc.php, but I can't get it to work. Please help me see what I'm doing wrong.

    I was following the instructions at your video https://www.youtube.com/watch?v=SmWEz68ytuI#t=82 but get stuck at this point.

    Thanks a lot for reading this.

    Best regards.

    Daniel.:)

  • 2016-12-12 09:00:01

    Re: problem with ATutor installation

    See if the fix in this thread helps:
    http://www.atutor.ca/view/7/26097/1.html

  • 2017-03-28 20:06:33

    Re: problem with ATutor installation

    Just pointing out the I encountered the same problem in a fresh installation and the error was corrected with the Github fix so maybe it needs to be made in the distribution.

    Best.

  • 2017-10-02 19:16:45

    Re: problem with ATutor installation

    There's a version available now that works with PHP7.
    http://www.atutor.ca/atutor/download.php