Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Posts
    17
    Plugin Contributions
    0

    bug in meta-tags area causing MySQL errors?

    I started putting in meta-tags per the system in admin.

    When you do this, it causes problems in the database, leaving open ended areas that supply requests to the entire database. Approximately 5,000 requests for a single product.

    After putting in three products with the meta-tags, the system stops working on some servers as it says it has gone over 50,000 requests to the database for the user in under an hour.

    The error shows up on screen as follows:

    1226 User '******' has exceeded the 'max_questions' resource (current value: 50000)
    in:
    [update products set products_price_sorter='16.1900' where products_id='689']
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    This requires that you delete and re-enter the user and the password in the database.

    When the database is checked for errors, the following shows up as warnings in the tables. The warnings are open areas where the databases are expecting responses.

    Table Name Status
    admin_activity_log Warning
    meta_tags_products_description Warning
    products Warning
    sessions Warning
    specials Warning
    whos_online Warning

    Note that this is only happening with using the admin meta-tag system.

    The information on the system is as follows:

    Zen Cart 1.3.0.2
    Database Patch Level: 1.3.0.2
    v1.3.0.2 [2006-08-18 14:19:07] (Fresh Installation)

    Database Host: localhost (127.0.0.1)
    Server OS: FreeBSD 4.11-STABLE
    Database: MySQL 4.0.16
    Server Date: 08/28/2006 16:52:55
    Database Date: 08/28/2006 16:52:55
    Server Up Time: 4:52PM up 31 days, 2:39, 1 user, load averages: 1.19, 0.97, 0.93
    PHP Version: 4.4.1 (Zend: 1.3.0)
    HTTP Server: Apache

    I consulted with a couple of people and they agree that something in the code is causing the problem. I am not really familiar with using MySQL commands, so I have no suggestions as to solutions.

    I beleive this is a bug as it is leaving open database tables and causing cascading requests to the database.

    Chris Hill

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: bug in meta-tags area causing MySQL errors

    Here's at least a workaround for cases where hosts are throttling their database activity:
    http://www.zen-cart.com/forum/showthread.php?t=24089
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: bug in meta-tags area causing MySQL errors

    Thanks, this will help.

    Any ideas as to the area of the code that is leaving the tables open?

    Chris

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: bug in meta-tags area causing MySQL errors

    I suspect those table-open issues are related to your host's configuration of the database.

    And likely the main cause for the tables being left "open" would be the errors you're encountering due to query-throttling.


    Zen Cart does not use persistent connections by default, and thus the explicit database-connection-close has been disabled in favor of an implicit close.

    If your hosting configuration doesn't like that, you could go to:
    /admin/includes/application_bottom.php
    approx line 22:
    Code:
      //  $db->close();
    and uncomment the line by removing the //
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: bug in meta-tags area causing MySQL errors

    Thanks.

    I'll do that.

    Chris

  6. #6
    Join Date
    Aug 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: bug in meta-tags area causing MySQL errors

    I haven't changed anything on the server yet, but now the following comes up.

    The database shows as fully functional, so I don't know what is happening.

    1016 Can't open file: 'sessions.MYI'. (errno: 145)
    in:
    [select value from sessions where sesskey = '85fe9da0221de8454e938da56300da4b' and expiry > '1156816379']

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

    Default Re: bug in meta-tags area causing MySQL errors

    That sounds like the result of a MySQL crash ...

    Go into phpMyAdmin and run a Repair on the sessions table and see if this fixes that issue ...

    NOTE: Backups are strongly recommended on a regular basis ...
    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!]
    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!

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: bug in meta-tags area causing MySQL errors

    Quote Originally Posted by chris hill
    Any ideas as to the area of the code that is leaving the tables open?
    Maybe it's not the code at all ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 11
    Last Post: 23 Nov 2009, 02:57 AM
  2. Replies: 1
    Last Post: 27 Nov 2008, 02:27 PM
  3. When setting product keyword meta tags, sitewide tags are added?
    By amdowney in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Nov 2008, 12:58 AM
  4. UPS Delivery Area Surcharge causing errors in out of country shipping
    By danmcguire in forum Addon Shipping Modules
    Replies: 0
    Last Post: 12 Jun 2006, 04:02 AM

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