Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2010
    Location
    Albuquerque, NM
    Posts
    198
    Plugin Contributions
    0

    Default PHP Warning: addslashes() expects parameter 1 to be string

    PHP Warning: addslashes() expects parameter 1 to be string, array given in .../public_html/store/includes/functions/functions_general.php on line 903

    Hello, I'm getting the above warning in my logs folder, today I got 27 of the exact same error log during a 10 minute period that a customer must have been adding things to their cart, and in the last few minutes of this they created an account, with the errors before and after this event. They didn't end up checking out and I'm concerned that whatever this is will prevent them from checking out. Is this warning a huge deal, and is there any way to fix it?

    I didn't change functions_general.php at all, it's the same as it came when I installed 1.5.3.

    Thanks!

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

    Default Re: PHP Warning: addslashes() expects parameter 1 to be string

    The function zen_db_input is the "victim" here; it's the caller of that function that's the "culprit". You can load the myDEBUG Backtrace (http://www.zen-cart.com/downloads.php?do=file&id=1879) plugin that will identify the culprit!

  3. #3
    Join Date
    Apr 2010
    Location
    Albuquerque, NM
    Posts
    198
    Plugin Contributions
    0

    Default Re: PHP Warning: addslashes() expects parameter 1 to be string

    Ok, thanks so much! I installed it, I'll see what errors come up now!

 

 

Similar Threads

  1. PHP Warning: addslashes() expects parameter 1 to be string, array given
    By schoolboy in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 10 May 2013, 02:19 PM
  2. v139e PHP Warning: strlen() expects parameter 1 to be string, array given in
    By irishshopper in forum Basic Configuration
    Replies: 4
    Last Post: 7 Mar 2013, 08:06 PM
  3. Replies: 41
    Last Post: 19 Sep 2012, 04:04 AM
  4. 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
  5. v150 PHP Warning: strlen() expects parameter 1 to be string, array given
    By caffeitalia in forum General Questions
    Replies: 1
    Last Post: 1 Feb 2012, 03:17 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