News:

AbanteCart v1.4.2 is released.

Main Menu
support

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - ironmonger

#1
General Support / Re: how to configer database
February 01, 2017, 08:39:55 AM
Thanks for the prompt reply, unfortunately the details all check out

unfortunately the old hosting site is not available so I cant make another backup.  any other suggestions, the data base is all there when I check phpmysql
#2
General Support / how to configer database
February 01, 2017, 06:51:13 AM
I have had to move servers and I have reloaded my site from a back up, but im getting this message

Cannot establish database connection. Check your database setting in configuration file. in /home/olivebranch/public_html/s/core/database/amysqli.php on line 50
When I go to line 50 I see this

    */
    public function __construct($hostname, $username, $password, $database, $new_link=false) {
      $connection = new mysqli($hostname, $username, $password, $database);
      if ($connection->connect_error) {
         $err = new AError('Cannot establish database connection to ' . $database.' using ' . $username . '@' . $hostname);
         $err->toLog();
            throw new AException(AC_ERR_MYSQL, 'Cannot establish database connection. Check your database setting in configuration file.');
       }


I can not see what to edit
I have all the database log in details


Please help
#3
I just used cpanel to repair the database and it reported the status as ok for the whole d/base   no change on the site though
#4
I dont think so as I have admin and the home page
#5
All the links from the home page of olivebranch.company have stopped working I checked the error logs and it says


2016-09-01 13:23:00 - database error: AbanteCart core v.1.2.8 SQL Error: MySQL server has gone away
Error No: 2006
SQL: SELECT * FROM abf4_users WHERE user_id = '1' in <b>/home/olivebranch/public_html/core/database/amysqli.php</b> on line <b>108</b>
2016-09-05 12:45:00 - database error: AbanteCart core v.1.2.8 SQL Error: MySQL server has gone away
Error No: 2006
SQL: DELETE FROM `abf4_online_customers`
WHERE `date_added`< (NOW() - INTERVAL 1 HOUR) in <b>/home/olivebranch/public_html/core/database/amysqli.php</b> on line <b>108</b>
2016-09-05 12:45:00 - database error: AbanteCart core v.1.2.8 SQL Error: MySQL server has gone away
Error No: 2006
SQL: DELETE FROM `abf4_online_customers`
WHERE `date_added`< (NOW() - INTERVAL 1 HOUR) in <b>/home/olivebranch/public_html/core/database/amysqli.php</b> on line <b>108</b>
2016-09-07 10:37:57 - App Error: AbanteCart core v.1.2.8 acceptFileTypes in /home/olivebranch/public_html/core/lib/resource_upload.php on line 280



Any help/ suggestions please,

Forum Rules Code of conduct
AbanteCart.com 2010 -