Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    185
    Plugin Contributions
    2

    database error PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED

    PHP Fatal error: 0B_ERROR_NOT_CONNECTED :: select * from zen_project_version WHERE project_version_key = 'Zen-Cart Database' in /home/sammirah/public_html/webstore/includes/classes/db/mysql/query_factory.php on line 120

    After deleting the zen cart and database then restoring from the last working copy from May 2015 this is what is showing in the logs. Can someone help me with this please?

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED

    First why did you restore such an old copy??

    Check your 2 configure.php files for valid information paying close attention to the DB details
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    185
    Plugin Contributions
    2

    Default Re: PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED

    I restored that copy after attempting to restore the most recent copies to no avail. It was the best copy before this year. Now I am back to the most recent copy from last week.

    Here is the includes/configure.php file:
    /**
    * The following settings define your database connection.
    * These must be the SAME as you're using in your non-admin copy of configure.php
    */
    define('DB_TYPE', 'mysql'); // always 'mysql'
    define('DB_PREFIX', 'zen_'); // prefix for database table names -- preferred to be left empty
    define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common
    define('DB_SERVER', 'localhost'); // address of your db server
    define('DB_SERVER_USERNAME', 'sammirah_zenc152');
    define('DB_SERVER_PASSWORD', 'XXXXX');
    define('DB_DATABASE', 'sammirah_zenc152');

    Here is the admin/includes/configure.php file:

    * The following settings define your database connection.
    * These must be the SAME as you're using in your non-admin copy of configure.php
    */
    define('DB_TYPE', 'mysql'); // always 'mysql'
    define('DB_PREFIX', 'zen_'); // prefix for database table names -- preferred to be left empty
    define('DB_CHARSET', 'utf8'); // 'utf8' or 'latin1' are most common
    define('DB_SERVER', 'localhost'); // address of your db server
    define('DB_SERVER_USERNAME', 'sammirah_zenc152');
    define('DB_SERVER_PASSWORD', 'XXXX');
    define('DB_DATABASE', 'sammirah_zenc152');

    What am I missing?
    Last edited by Ajeh; 24 May 2016 at 05:50 PM. Reason: remove password

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED

    You should change your database password as it was posted briefly but is now removed ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    185
    Plugin Contributions
    2

    Default Re: PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED

    Thanks for removing the password for me.

    Now is there anything that is missing? What are reasons the database may not be connecting?

  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,692
    Plugin Contributions
    9

    Default Re: PHP Fatal error: 0:DB_ERROR_NOT_CONNECTED

    you should check the cpanel for your host and ensure that the DB USER:

    sammirah_zenc152

    has access rights to the DB:

    sammirah_zenc152

    and ensure that the password is correct. or change the password from your cpanel and then change the password in your configure.php files.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. v154 PHP Fatal error Call-time pass-by-reference - tpl_yahootreemenu.php
    By RubenZ in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 6 Feb 2015, 05:24 PM
  2. Replies: 2
    Last Post: 4 Jul 2014, 11:03 AM
  3. Replies: 14
    Last Post: 4 May 2012, 10:30 AM
  4. v150 PHP Fatal error: Out of memory in includes/modules/attributes.php
    By donnyb in forum General Questions
    Replies: 0
    Last Post: 6 Apr 2012, 12:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR