Page 1 of 2 12 LastLast
Results 1 to 10 of 809

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    I had the same problem with my dynamic filter addon, and fixed it with the code at this page; many thanks;
    but I have already another error at top of the page :
    Warning: trim() expects parameter 1 to be string, array given in /home/o112445/public_html/includes/functions/functions_general.php on line 63

    please can somebody help me to fix it also;

    site: http://www.rugs-tapestries.com

    example:
    http://www.rugs-tapestries.com/produ...B%5D=&x=19&y=4

    thanks a lot ;

  2. #2
    Join Date
    Jul 2009
    Location
    Roswell, NM, USA
    Posts
    97
    Plugin Contributions
    0

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    Sorry! I changed mine to just use the complete fix posted by Dr. Byte for now and suggest you do the same until we can get a real fix. Try adding something to your shopping cart...

  3. #3
    Join Date
    Sep 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    Thank you
    I changed the cote to the fix dr byte posted to the thread, the error messages reduiced, but there are already one error message at the top of the page, for each search option choose, :

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

    when I choose a category, and search,, the error message is one time, and when I choose a category and an other option like size, the error message is repeated two times at the top of the page;

    thank you

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    Quote Originally Posted by boby View Post
    Thank you
    I changed the cote to the fix dr byte posted to the thread, the error messages reduiced, but there are already one error message at the top of the page, for each search option choose, :

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

    when I choose a category, and search,, the error message is one time, and when I choose a category and an other option like size, the error message is repeated two times at the top of the page;

    thank you
    Sounds like serious problems with your customized code and all the addons you've installed.
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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.

  5. #5
    Join Date
    Sep 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    Quote Originally Posted by DrByte View Post
    Sounds like serious problems with your customized code and all the addons you've installed.
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    Thank you for your reply;
    But That is so hard for me to merge all files of the site with the original !

  6. #6
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    Perhaps.

    But since the problem doesn't happen with original code, the most efficient way to find out where your specific problem exists is to do the comparison.
    Thankfully automated tools like WinMerge make it simpler.
    .

    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.

  7. #7
    Join Date
    Sep 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    I have made a lot of changes and added a lot of addons to my sites (multisite addon also), from 2 or 3 years,
    The update is made by someone who I found at freelancers site in india (I haven't a good experience with that),

    So should I check all changes and for that I must remove and reinstalle each addon !

    thanks

  8. #8
    Join Date
    Sep 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    I have made a lot of changes and added a lot of addons to my sites (multisite addon also), from 2 or 3 years,
    The update is made by someone who I found at freelancers site in india (I haven't a good experience with that),

    So should I check all changes and for that I must remove and reinstalle each addon !

    thanks

  9. #9
    Join Date
    Jul 2009
    Location
    Roswell, NM, USA
    Posts
    97
    Plugin Contributions
    0

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    I ended up uninstalling the Dynamic Filter completely and reverting the functions_general.php file back to the zen-cart original because my CPU usage went through the roof. It was up to 88% yesterday. I'm lucky my hosting company is being really understanding and letting me sort through the trouble. If it isn't the DF mod that drove it up then it will most likely be something in IH4 because those were the last two mods installed when the CPU usage spiked.

    Any other ideas about what it could be are greatly appreciated.

    Blessings,
    Krisann

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Dynamic Filter: PHP Warning: strlen() expects parameter 1

    CPU spikes are often caused by a "while" loop that's iterating through database results without specifying a MoveNext call ... resulting in an endless loop that spins out of control until the server kills it for running too long or killing CPU.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. Empty Dynamic Filter
    By LadyoftheCave in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 6 Jun 2016, 12:47 PM
  3. v150 Dynamic filter
    By Dinoleix in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 13 Aug 2013, 10:23 AM
  4. v150 Dynamic filter - All pages
    By Okkwebmedia in forum Addon Sideboxes
    Replies: 0
    Last Post: 8 Jul 2013, 08:52 AM
  5. v138a Dynamic Filter
    By SoftCorpse in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 18 Jun 2012, 01:32 PM

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