Results 1 to 10 of 809

Hybrid View

  1. #1
    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.

  2. #2
    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 !

  3. #3
    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.

  4. #4
    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

  5. #5
    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

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

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

    If you upgraded to 1.5.0 from any other version, you need to check EVERY add-on because some are not yet compatible. You probably should double check them all anyway but absolutely if you moved to 1.5.

    Blessings,
    Krisann

  7. #7
    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

  8. #8
    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.

  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

    Quote Originally Posted by DrByte View Post
    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.
    Thank you, I just wish I understood what that means, .

    After removing the DF mod the cpu usage dropped back down to 3% so something in that mod was mis-configured. I think I misunderstood part of the directions and installed an extra jscrip.jquery file (it said to download it and rename it...). I'm just guessing though.

    I re-installed IH4 and it seems to not be affecting the CPU negatively at all.

    I'll live with the default filter for the time being.

    Thank you!

    Blessings,
    Krisann

 

 

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