Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default [No bug]extra opening in includes\modules\pages\advanced_search_result\header_php.php

    In includes\modules\pages\advanced_search_result\header_php.php on line245 there is an opening bracket in the code, but it isn't closed.

    PHP Code:
    $where_str " WHERE (p.products_status = 1
                   AND p.products_id = pd.products_id
                   AND pd.language_id = :languagesID
                   AND p.products_id = p2c.products_id
                   AND p2c.categories_id = c.categories_id "

    It doesn't give any errors, at least not experienced by me, but I found it during troubleshooting some custom code.
    This bracket has been there at least since ZC 1.38, but could be on earlier versions to.
    My guess is it is not necessary to use the bracket and it could be removed from the code.

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

    Default Re: extra opening in includes\modules\pages\advanced_search_result\header_php.php

    I believe if you look further in the code you will see how the $where_str is still being built and the lines of:
    Code:
        $where_str .= ")";
    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!

  3. #3
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: extra opening in includes\modules\pages\advanced_search_result\header_php.php



    You're right. Soooo many bracket's. Imust have counted the opening and closing brackets a dozen times and still miss one.

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

    Default Re: extra opening in includes\modules\pages\advanced_search_result\header_php.php

    Not a problem ... that can be a confusing file in there ...
    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!

 

 

Similar Threads

  1. v139h Can I override the /includes/modules/pages/shopping_cart/header_php.php ?
    By devyani in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Mar 2013, 10:59 PM
  2. Replies: 3
    Last Post: 15 Oct 2012, 02:03 PM
  3. how to override includes > modules > pages > page_folder > header_php.php
    By monkeytown in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Feb 2008, 05:45 PM
  4. Replies: 2
    Last Post: 5 Dec 2007, 04:28 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