Results 1 to 10 of 159

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Products Pagination - Support Thread

    I just did some googling and strrpos isn't a typo (oops - my mistake), but using it instead of strpos is a change from both version 2.0 of this plugin and the standard Zen Cart code, so I guess it's not completely stupid for me to check that it's not a mistake..?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Products Pagination - Support Thread

    Quote Originally Posted by planetjune View Post
    I just did some googling and strrpos isn't a typo (oops - my mistake), but using it instead of strpos is a change from both version 2.0 of this plugin and the standard Zen Cart code, so I guess it's not completely stupid for me to check that it's not a mistake..?
    While that class needs a teeny bit of update to align with the now-current zc157b implementation, the use of strrpos is consistent between the base Zen Cart 1.5.7+ distribution and the modification provided by Products Pagination.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Products Pagination - Support Thread

    And the strrpos should be fine when used on older ZC versions as well. It fixes an issue with complex nested subqueries with multiple order-by clauses.
    .

    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
    Jul 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Products Pagination - Support Thread

    Thank you, DrByte and lat9

  5. #5
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Re: Products Pagination - Support Thread

    ZC1.5.7c with the latest version of Products Pagination, I'm getting the following error log when trying to view Oder History page.

    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 '' at line 1 :: SELECT count(*) AS total FROM
    orders o, orders_total ot, orders_status s WHERE
    o.customers_id = 2493 AND
    o.orders_id = ot.orders_id AND ot.class =
    'ot_total' AND s.orders_status_id =
    (SELECT orders_status_id FROM orders_status_history
    osh WHERE osh.orders_id = o.orders_id AND
    osh.customer_notified >= 0 ==> (as called by)
    /includes/classes/pp_split_page_results.php on line 122 <== in
    /includes/classes/db/mysql/query_factory.php on line 170.

    Looking at that query, it appears to be missing a closing parentheses from the second 'SELECT' query.

    Can you replicate this?

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Products Pagination - Support Thread

    Quote Originally Posted by strelitzia View Post
    ZC1.5.7c with the latest version of Products Pagination, I'm getting the following error log when trying to view Oder History page.

    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 '' at line 1 :: SELECT count(*) AS total FROM
    orders o, orders_total ot, orders_status s WHERE
    o.customers_id = 2493 AND
    o.orders_id = ot.orders_id AND ot.class =
    'ot_total' AND s.orders_status_id =
    (SELECT orders_status_id FROM orders_status_history
    osh WHERE osh.orders_id = o.orders_id AND
    osh.customer_notified >= 0 ==> (as called by)
    /includes/classes/pp_split_page_results.php on line 122 <== in
    /includes/classes/db/mysql/query_factory.php on line 170.

    Looking at that query, it appears to be missing a closing parentheses from the second 'SELECT' query.

    Can you replicate this?
    I can, unfortunately. The zc157 series has changed the query on the account_history page and Products' Pagination isn't playing well.

    See this GitHub issue for tracking: https://github.com/lat9/product_pagination/issues/26

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: Products Pagination - Support Thread

    Quote Originally Posted by lat9 View Post
    I can, unfortunately. The zc157 series has changed the query on the account_history page and Products' Pagination isn't playing well.

    See this GitHub issue for tracking: https://github.com/lat9/product_pagination/issues/26
    I've got this change available on the plugin's GitHub repository if you'd like to check that correction out prior to the v2.1.1 release.

 

 

Similar Threads

  1. Compare multiple products - support thread
    By willie bee in forum Addon Templates
    Replies: 37
    Last Post: 9 Jan 2020, 08:25 PM
  2. v154 All Products Virtual -- No Shipping [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 22 Jul 2019, 12:04 PM
  3. v153 Linked Products Report [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 11 Jun 2015, 09:52 PM
  4. Products Disclaimer Support Thread
    By clydejones in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 2 Jun 2010, 11:29 PM
  5. Products/Categories URLs Exporter Support Thread
    By joshuayang in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 28 Mar 2010, 05:33 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