Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2012
    Posts
    100
    Plugin Contributions
    0

    customer issue Unchanged, Stable Site Suddenly Broken

    I have not made changes to the files for at least six months. Lastnight, a guest let me know my cart wasn't working. I tried uploading my archive copy from six months ago, which did not resolve the problem.

    This is the error entry. It looks like there is a bad query:

    [06-Feb-2014 20:14:14] PHP Fatal error: 1054:Unknown column 'c.categories_status' in 'where clause' :: select c.categories_id, cd.categories_name from categories c, categories_description cd where c.categories_id=cd.categories_id and c.parent_id= '0' and cd.language_id='1' and c.categories_status='1' order by c.sort_order, cd.categories_name in /big/dom/xwhatwouldwaltdo/www/Secure_Server/pages/pins/includes/classes/db/mysql/query_factory.php on line 219

    Any ideas?

    Line 219-233:
    $zp_db_resource = @$this->query($zf_sql, $this->link);
    if (!$zp_db_resource) {
    if (@mysql_errno($this->link) == 2006) {
    $this->link = FALSE;
    $this->connect($this->host, $this->user, $this->password, $this->database, $this->pConnect, $this->real);
    $zp_db_resource = @mysql_query($zf_sql, $this->link);
    }
    if (!$zp_db_resource) {
    $this->set_error(@mysql_errno($this->link),@mysql_error($this->link));
    }
    }
    if(!is_resource($zp_db_resource)){
    $obj = null;
    return true;
    }
    Last edited by WWWD; 7 Feb 2014 at 04:53 AM. Reason: Add detail.

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,732
    Plugin Contributions
    27

    Default Re: Unchanged, Stable Site Suddenly Broken

    First does categories_status exist in the database?
    - look in table categories

    Next search your local site for this:

    select c.categories_id, cd.categories_name from categories c, categories_description cd where c.categories_id=cd.categories_id and c.parent_id= '0' and cd.language_id='1' and c.categories_status='1' order by c.sort_order, cd.categories_name

    to find the files that may be part of the problem...
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: Unchanged, Stable Site Suddenly Broken

    The problem is not your files, it's your database. The categories_status field is a standard column within the categories table.

 

 

Similar Threads

  1. How come my site is not stable? HELP PLEASE!
    By Xandrouz in forum General Questions
    Replies: 10
    Last Post: 24 Jul 2009, 07:18 AM
  2. Need help! "Add to cart" broken suddenly!
    By rcrosier in forum General Questions
    Replies: 22
    Last Post: 2 Feb 2009, 04:44 PM
  3. fix_cache_key.php suddenly broken?
    By zcnb in forum General Questions
    Replies: 15
    Last Post: 31 Oct 2008, 05:05 PM
  4. USPS Auto Fill Contrib Suddenly Broken
    By ts232 in forum Addon Shipping Modules
    Replies: 5
    Last Post: 4 Oct 2008, 08:43 PM

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