Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Location
    Hudson Valley, New York USA
    Posts
    93
    Plugin Contributions
    0

    Default PHP Warning: substr() expects at least 2 parameters - Salemaker

    I received a couple of Admin debug logs with the following:

    Request URI: /catalog/ADMIN/salemaker.php?page=1&action=insert, IP address: 67.245.196.78
    #1 substr() called at [/usr/home/XXX/public_html/XXX/catalog/ADMIN/salemaker.php:71]
    --> PHP Warning: substr() expects at least 2 parameters, 1 given in /usr/home/XXXl/public_html/XXX/catalog/ADMIN/salemaker.php on line 71.

    Running ZC 1.5.6a
    PHP 7.1.5

    I looked through the latest pull requests on GitHub but didn't see anything referencing line 71.

    I tested a bit further and it appears that in editing or adding a new sale it's not saving the name of the sale (see first item in screenshot)
    Attachment 18387
    Last edited by gwynwyffar; 18 Mar 2019 at 02:50 PM.

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

    Default Re: PHP Warning: substr() expects at least 2 parameters - Salemaker

    Quote Originally Posted by gwynwyffar View Post
    I received a couple of Admin debug logs with the following:

    Request URI: /catalog/ADMIN/salemaker.php?page=1&action=insert, IP address: 67.245.196.78
    #1 substr() called at [/usr/home/XXX/public_html/XXX/catalog/ADMIN/salemaker.php:71]
    --> PHP Warning: substr() expects at least 2 parameters, 1 given in /usr/home/XXXl/public_html/XXX/catalog/ADMIN/salemaker.php on line 71.

    Running ZC 1.5.6a
    PHP 7.1.5

    I looked through the latest pull requests on GitHub but didn't see anything referencing line 71.
    See this one.

  3. #3
    Join Date
    Dec 2006
    Location
    Hudson Valley, New York USA
    Posts
    93
    Plugin Contributions
    0

    Default Re: PHP Warning: substr() expects at least 2 parameters - Salemaker

    Fixed! Thanks!

 

 

Similar Threads

  1. v151 PHP Warning: str_repeat() expects exactly 2 parameters, 1 given
    By linuxguy2 in forum General Questions
    Replies: 2
    Last Post: 4 Oct 2018, 07:07 PM
  2. Replies: 9
    Last Post: 20 Jan 2014, 09:21 PM
  3. Replies: 2
    Last Post: 20 Jan 2014, 07:21 PM
  4. v150 PHP Warning: explode() expects at most 3 parameters
    By ray-the-otter in forum General Questions
    Replies: 6
    Last Post: 8 Oct 2012, 02:54 PM
  5. PHP Warning: str_repeat() expects exactly 2 parameters,
    By lala rock in forum General Questions
    Replies: 4
    Last Post: 28 Feb 2012, 02: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