Results 1 to 3 of 3
  1. #1

    Default Warning: trim() expects parameter 1 to be string, array given

    Error message WARNING: An Error occurred, please refresh the page and try again.
    Zen 1.5.1 with plugins for super/edit orders,usps,easy pop,ty package, ceon uri mapping,recover cart sales
    Get the following error both on the website where the products should be displayed and when trying to view various customer info in back end as well as trying to view products. If I go to orders.php or customers.php I can see the info and it is ok. If I try to go into an order or into a customer the error occurs. Nothing was done that I know of on the website unless I accidentally loaded a file to that site I on accident, since I was working on another one last night, but I have looked through the files and nothing jumps out.

    From log file
    PHP Warning: trim() expects parameter 1 to be string, array given in /home/... /public_html/includes/functions/functions_general.php on line 63

    functions_general.php
    61 // Parse the data used in the html tags to ensure the tags will not break
    62 function zen_parse_input_field_data($data, $parse) {
    63 return strtr(trim($data), $parse);

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    with plugins for super/edit orders,usps,easy pop,ty package, ceon uri mapping,recover cart sales
    I believe that among these plugins, that some alter the "same" files -
    Did you merge their alterations into a single file?
    Zen-Venom Get Bitten

  3. #3

    Default Re: WARNING: An Error occurred, please refresh the page and try again.

    Hi Kobra,
    Its been running fine for some time maybe 2 months without any changes to any plugins. I had my host (one of the zencart contributors) take a look at it and said "Small glitch in your database. All fixed." I asked for more information but have not heard back yet to what it was exactly, but everything is working correctly now.
    Thanks

 

 

Similar Threads

  1. Replies: 3
    Last Post: 6 Jun 2016, 02:37 AM
  2. 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
  3. 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
  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