Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default if I search "null" i get an error.

    My search for zencart seems to work. For some reason if I type in the search box "null" i get an error. WARNING: An Error occurred, please refresh the page and try again.

    When I check my error log i see the following.

    Code:
    [21-Nov-2017 13:52:48 America/New_York] 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 'GROUP BY p.products_id' at line 1 :: select distinct p.products_id FROM products p LEFT JOIN manufacturers m USING(manufacturers_id) LEFT JOIN products_description pd on p.products_id = pd.products_id JOIN products_to_categories p2c on p.products_id = p2c.products_id JOIN categories c on p2c.categories_id = c.categories_id LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1                AND pd.language_id = 1  GROUP BY p.products_id  ==> (as called by) /home/xxx/public_html/includes/classes/split_page_results.php on line 84 <== in /home/xxx/public_html/includes/classes/db/mysql/query_factory.php on line 155
    I have done some research and found this but i was still unable to solve my issue. If someone could assist me or lead me in the right direction i would appreciate it.

    https://www.zen-cart.com/showthread....database-error

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: if I search "null" i get an error.

    As the modified title of that posting indicates, the issue has been corrected in Zen Cart 1.5.5a and later. This Zen Cart GitHub commit contains at least some record of the changes.

  3. #3
    Join Date
    Jan 2015
    Posts
    423
    Plugin Contributions
    0

    Default Re: if I search "null" i get an error.

    Thank you for the quick response. I managed to figure out my issue. I edited the following files based on the github documentation.

    - includes/functions/functions_general.php
    - includes/modules/checkout_new_address.php

    The other files for whatever reason did not match so i just left them as is

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,688
    Plugin Contributions
    9

    Default Re: if I search "null" i get an error.

    oh dear.... i am reminded of this:

    https://imgs.xkcd.com/comics/exploits_of_a_mom.png

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 1 Apr 2016, 05:44 PM
  2. v153 got error "Call to a member function value() on null"
    By su35 in forum General Questions
    Replies: 4
    Last Post: 25 Nov 2014, 03:02 AM
  3. form method="get" [search function]
    By Soniccc in forum General Questions
    Replies: 0
    Last Post: 21 Mar 2011, 11:56 AM
  4. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM

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