Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Zen-Cart v1 5 7d update

    Quote Originally Posted by OldNGrey View Post
    The files
    zc_install\sql\updates\mysql_upgrade_zencart_157.sql and
    \includes\version.php

    have not been updated for 157d
    Same is or was true for zc_install/sql/install/mysql_zencart.sql
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #12
    Join Date
    Mar 2006
    Location
    Auckland, New Zealand
    Posts
    234
    Plugin Contributions
    0

    Default Re: Zen-Cart v1 5 7d update

    Quote Originally Posted by mc12345678 View Post

    I would expect the query at the line of concern to look something like:
    Code:
    AND pa.options_id = ' . $option_id . '
    And instead would be "better" as:
    Code:
    AND pa.options_id = ' . (is_numeric($option_id) ? $option_id : "'" . $option_id . "'") . '
    hmmmmm.... I updated that and crashed my site!
    So I've just reverted that back.
    Elemi

    The Art of Bespoke Aromatherapy
    www.AmorAromatherapy.co.nz

  3. #13
    Join Date
    Oct 2020
    Location
    australia
    Posts
    31
    Plugin Contributions
    0

    Default Re: Zen-Cart v1 5 7d update

    Does 157d work on php 8.1?

    It is said that php 7.4 will lose support in Oct this year. So I am looking for a cart that works on php 8.1

  4. #14
    Join Date
    Oct 2020
    Location
    australia
    Posts
    31
    Plugin Contributions
    0

    Default Re: Zen-Cart v1 5 7d update

    Just tested 157d on php 8.1, worked very well

  5. #15
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Zen-Cart v1 5 7d update

    Quote Originally Posted by Elemi View Post
    hmmmmm.... I updated that and crashed my site!
    So I've just reverted that back.
    What can I say, not enough information given especially when accessing the file to find that it was not as expected and then not identifying that.

    Now that I've gone and done all the work to find the plugin that installs that file, the below change works if using PHP 8.x or higher:

    At line 108, replace
    Code:
                                            AND pa.options_id = $options_id
    With:
    Code:
                                            AND pa.options_id = " . (is_numeric($options_id) ? $options_id : '\'' . $options_id . '\'') . "
    Note that the content surrounding the third instance of $options_id is three single quotes with a back slash before the second one and that double quotes are otherwise used to match the format in the file.

    The plugin to which this applies is: Keep Cart
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #16
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: Zen-Cart v1 5 7d update

    Quote Originally Posted by mc12345678 View Post
    What can I say, not enough information given especially when accessing the file to find that it was not as expected and then not identifying that.

    Now that I've gone and done all the work to find the plugin that installs that file, the below change works if using PHP 8.x or higher:

    At line 108, replace
    Code:
                                            AND pa.options_id = $options_id
    With:
    Code:
                                            AND pa.options_id = " . (is_numeric($options_id) ? $options_id : '\'' . $options_id . '\'') . "
    Note that the content surrounding the third instance of $options_id is three single quotes with a back slash before the second one and that double quotes are otherwise used to match the format in the file.

    The plugin to which this applies is: Keep Cart
    v2.0.2 of the plugin submitted to correct the error. Note that the change uses
    Code:
                                            AND pa.options_id = " . (int)$options_id . "

  7. #17
    Join Date
    Mar 2006
    Location
    Auckland, New Zealand
    Posts
    234
    Plugin Contributions
    0

    Default Re: Zen-Cart v1 5 7d update

    Quote Originally Posted by lat9 View Post
    v2.0.2 of the plugin submitted to correct the error. Note that the change uses
    Code:
                                            AND pa.options_id = " . (int)$options_id . "
    Thank you, that's all working now :-)
    Elemi

    The Art of Bespoke Aromatherapy
    www.AmorAromatherapy.co.nz

  8. #18
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: Zen-Cart v1 5 7d update

    Quote Originally Posted by Elemi View Post
    Thank you, that's all working now :-)


 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Update On Zen Cart v2.0.0
    By DrByte in forum Zen Cart Release Announcements
    Replies: 5
    Last Post: 20 Dec 2008, 03:08 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