Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Strange Warning message

    A zen site running 1.5.1 is using a link checker to verify his site's link and on the following urls,

    http: //Domain.com/index.php?main_page=products_all&disp_order=1&fltCategory[]=19
    http: //Domain.com/index.php?main_page=products_all&disp_order=1&fltCategory[]=20
    http: //Domain.com/index.php?main_page=products_new&disp_order=6&fltCategory[]=19
    http: //Domain.com/index.php?main_page=products_new&disp_order=6&fltCategory[]=20
    http: //Domain.com/index.php?main_page=products_new&disp_order=6&fltPrice[]=128.01--178&fltCategory[]=19
    http: //Domain.com/index.php?main_page=products_new&disp_order=6&fltPrice[]=128.01--178&fltCategory[]=20
    http: //Domain.com/index.php?main_page=products_new&disp_order=6&fltPrice[]=128.01--178&fltCategory[]=21
    http: //Domain.com/index.php?main_page=products_new&disp_order=6&fltPrice[]=128.01--178&fltCategory[]=22
    http: //Domain.com/index.php?main_page=products_new&disp_order=6&fltPrice[]=128.01--178&fltCategory[]=23

    mostly happening on Category[]=19, 20, 21, 22, & 24

    he is getting the following warning on lower left hand corner of the page. And the page shows the header info, left category box and the rest is white.

    WARNING: An Error occurred, please refresh the page and try again.
    Page displays the same when page is refreshed.


    It seems to me the links checker is going through the Dynamic filter (as the [] are seen).

    Any one with any ideas?
    Using Zen Cart 1.5.1

  2. #2
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Strange Warning message

    OK I duplicated the case while using the dynamic filter and selecting New Products or All Products and clicking on any of categories 19, 20, 21, 22, 23 & 24.


    I don't know how to move or close this from General Question, as it has to be discussed on Dynamic Filter thread.
    Using Zen Cart 1.5.1

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Strange Warning message

    Quote Originally Posted by Kevin205 View Post
    WARNING: An Error occurred, please refresh the page and try again.
    http://www.zen-cart.com/content.php?...-and-try-again
    .

    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.

  4. #4
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Strange Warning message

    As I checked the error log, I guess the question stays here, as it is NOT a Dynamic filter issue!

    The error message is as follow:

    [17-Apr-2013 20:20:50] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120

    DrByte, I am lost with this error. Can the tables be fixed?
    Using Zen Cart 1.5.1

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Strange Warning message

    Quote Originally Posted by Kevin205 View Post
    As I checked the error log, I guess the question stays here, as it is NOT a Dynamic filter issue!

    The error message is as follow:




    DrByte, I am lost with this error. Can the tables be fixed?
    And you have provided virtually no information that would give anyone a clue as to what's going on.. (starting with basic information like what were you doing before this error occurred)

    So let me suggest that you take a look at the posting tips (that show above the reply box when you add a post to this site).. Provide the information suggested.. This will help the community to help you..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Strange Warning message

    DrByte understood.

    The error log explain something that I don't understand!
    Using Zen Cart 1.5.1

  7. #7
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Strange Warning message

    Quote Originally Posted by DivaVocals View Post
    And you have provided virtually no information that would give anyone a clue as to what's going on.. (starting with basic information like what were you doing before this error occurred)

    So let me suggest that you take a look at the posting tips (that show above the reply box when you add a post to this site).. Provide the information suggested.. This will help the community to help you..
    Did you read the entire post? If you didn't, then you should.
    Last edited by Kevin205; 18 Apr 2013 at 05:25 AM.
    Using Zen Cart 1.5.1

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Strange Warning message

    Quote Originally Posted by Kevin205 View Post
    As I checked the error log, I guess the question stays here, as it is NOT a Dynamic filter issue!
    I don't know how you came to this conclusion based on the error message provided.
    Yes, it may appear the the problem has something more to do with "query_factory.php", but this is only the messenger. The real problem is within the code that calls the query_factory.

    Quote Originally Posted by Kevin205 View Post
    DrByte, I am lost with this error. Can the tables be fixed?
    THere is nothing in the error message that suggests the the tables are broken. However, if in doubt, phpMyAdmin (and pretty much any other MySQL administration tool) has options to check and/or repair the DB tables. There is no harm in using these tools, and depending on the cause of the problem, it can indeed solve some issues. Alas, I don't think you'll be as lucky.

    I think you were closer to the mark with your dynamic filter diagnosis.

    Cheers
    Rod

  9. #9
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Strange Warning message

    Quote Originally Posted by RodG View Post
    I don't know how you came to this conclusion based on the error message provided.
    Yes, it may appear the the problem has something more to do with "query_factory.php", but this is only the messenger. The real problem is within the code that calls the query_factory.



    THere is nothing in the error message that suggests the the tables are broken. However, if in doubt, phpMyAdmin (and pretty much any other MySQL administration tool) has options to check and/or repair the DB tables. There is no harm in using these tools, and depending on the cause of the problem, it can indeed solve some issues. Alas, I don't think you'll be as lucky.

    I think you were closer to the mark with your dynamic filter diagnosis.

    Cheers
    Rod

    Thanks for the info. I will look at my PHPMyadmin to see what tools are available to me. And will let you know if it works.
    But as you said I don't think I would be that lucky!

    Following is what I have done after a site without any errors:

    1. Installed sitemapXML
    2. Updated/revised the manufacturer's name for some products, and uploaded them using EP4 (through Full-EP_04_10_2013.csv)

    After looking at it in detail:
    The error only occurs when New Products, /index.php?main_page=products_new and All Products, /index.php?main_page=products_all are selected; and not all categories results in the error, only selecting certain categories causes the error. I am now trying narrow down the category ID numbers. I am guessing the might be numbered (24,4,7,8,13,10,23,18,15,16,21,17,20,19,22,12,14).

    Following are a serires of error I am getting as testing:

    [18-Apr-2013 07:40:48] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,7,8,' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,7,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
    [18-Apr-2013 07:40:25] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
    [18-Apr-2013 07:40:19] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
    [18-Apr-2013 07:37:23] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
    Last edited by Kevin205; 18 Apr 2013 at 03:59 PM.
    Using Zen Cart 1.5.1

  10. #10
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Strange Warning message

    Quote Originally Posted by Kevin205 View Post
    [17-Apr-2013 20:20:50] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13' at line 1 :: SELECT manufacturers_id, manufacturers_name, IF(manufacturers_id IN(), 'Y', 'N') as flag FROM zen_manufacturers WHERE manufacturers_id IN (24,4,8,13,10,23,18,15,16,21,17,20,19,22,12,14) ORDER BY manufacturers_name in /MyPath/includes/classes/db/mysql/query_factory.php on line 120
    I am not 100% sure what the part in red is trying to do, but is is the cause of the error. I also did not (with a quick search) find this query in the stock Zen Cart code. You will have to find the code creating that SQL Query, determine what the extra "flag" is for, and adjust the SQL (or code generating the SQL) as appropriate.

    Note: If it is supposed to add a flag to the SQL result and uses the same condition as the WHERE clause condition... The "flag" can probably be removed from the query and code...
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Strange behavior with Warning: Low Stock email
    By woodlandsprite in forum General Questions
    Replies: 3
    Last Post: 28 Nov 2012, 03:51 AM
  2. strange cookie error message
    By maclean in forum Basic Configuration
    Replies: 1
    Last Post: 10 Jul 2007, 06:09 AM
  3. Strange ini settings warning
    By mattys in forum General Questions
    Replies: 0
    Last Post: 19 Dec 2006, 12:11 PM
  4. Strange error message
    By strelitzia in forum General Questions
    Replies: 5
    Last Post: 2 Nov 2006, 06:44 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