Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2010
    Posts
    243
    Plugin Contributions
    5

    Default [Fixed v1.5.1] Warning: strip_tags() expects at most 2 parameters, coupon_admin.php

    I have noticed these today. Don't know if it is my actions or if it is a bug, if so then are the dev team is aware of it etc etc etc.

    [18-Sep-2012 12:58:26] PHP Warning: strip_tags() expects at most 2 parameters, 4 given in /home/WEBSPACE/public_html/DIR/ADMIN/coupon_admin.php on line 641

    thnaks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP Warning: strip_tags() expects at most 2 parameters, 4 given in coupon_admin.p

    Confirmed.

    The fix is to change the parentheses in that line.
    The corrected code, from v1.5.1 (and suitable for v1.5.0), is:
    Code:
                    <td><?php echo zen_draw_textarea_field('message', 'soft', '60', '15', htmlspecialchars(strip_tags(($_POST['message_html']=='') ? TEXT_COUPON_ANNOUNCE : stripslashes($_POST['message_html'])), ENT_COMPAT, CHARSET, TRUE)); ?></td>
    .

    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.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,493
    Plugin Contributions
    88

    Default Re: PHP Warning: strip_tags() expects at most 2 parameters, 4 given in coupon_admin.p

    Hmm, the file contained in the v1.5.1 download still has the uncorrected version.

 

 

Similar Threads

  1. Replies: 9
    Last Post: 20 Jan 2014, 09:21 PM
  2. 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
  3. v139h PHP Warning: strip_tags() expects parameter 1 to be string, array given
    By BlessIsaacola in forum General Questions
    Replies: 1
    Last Post: 6 Mar 2012, 01:32 PM
  4. 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
  5. htmlspecialchars() expects at most 3 parameters, 4 given
    By jewelsexports in forum General Questions
    Replies: 2
    Last Post: 10 Mar 2011, 04:00 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