Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default PHP Warning: strlen() expects parameter 1 to be string, array given in

    Hosting company sent a arning today to say have reached 90% of storage limit for hosting plan so went in to clear out some redundant files but found these debug files.

    For www.irishshopper.co.uk ZenCart 1.3.9.e

    [13-Jan-2013 11:40:46 UTC] PHP Warning: strlen() expects parameter 1 to be string, array given in /home/irishsho/public_html/ZenCart/includes/functions/functions_general.php on line 152

    For www.mldfurniture.co.uk ZenCart V 1.5.0

    [24-Feb-2013 07:41:56 UTC] PHP Warning: require() [<a href='function.require'>function.require</a>]: Unable to access includes/templates/template_default/templates/tpl_about_us_default.php in /home/irishsho/public_html/mldfurniture.co.uk/includes/templates/mobishop_pink/common/tpl_main_page.php on line 110
    [24-Feb-2013 07:41:56 UTC] PHP Warning: require(includes/templates/template_default/templates/tpl_about_us_default.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/irishsho/public_html/mldfurniture.co.uk/includes/templates/mobishop_pink/common/tpl_main_page.php on line 110
    [24-Feb-2013 07:41:56 UTC] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/template_default/templates/tpl_about_us_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/irishsho/public_html/mldfurniture.co.uk/includes/templates/mobishop_pink/common/tpl_main_page.php on line 110


    Any ideas on what causes above.

    Also any advice on what files can be safely deleted to obtain space on server.

    THANK YOU.

    Trevor

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: PHP Warning: strlen() expects parameter 1 to be string, array given in

    Quote Originally Posted by irishshopper View Post
    [13-Jan-2013 11:40:46 UTC] PHP Warning: strlen() expects parameter 1 to be string, array given in /home/irishsho/public_html/ZenCart/includes/functions/functions_general.php on line 152
    If this is the only error of this type you can probably ignore it. It is too old to have any real meaning.

    Quote Originally Posted by irishshopper View Post
    Unable to access includes/templates/template_default/templates/tpl_about_us_default.php
    Probably a permissions issue.

    Quote Originally Posted by irishshopper View Post
    No such file or directory in /home/irishsho/public_html/mldfurniture.co.uk/includes/templates/mobishop_pink/common/tpl_main_page.php
    Self explanatory. The file or folder doesn't exist. Probably a result of a faulty upload of the mobishop_pink template files.

    Quote Originally Posted by irishshopper View Post
    Failed opening required 'includes/templates/template_default/templates/tpl_about_us_default.php'
    Probably same cause as "Unable to access includes/templates/template_default/templates/tpl_about_us_default.php"

    Quote Originally Posted by irishshopper View Post
    Any ideas on what causes above.
    Simply put, you have some missing files and/or if the files do exist they are unable to be read, which is usually a permissions problem).

    Quote Originally Posted by irishshopper View Post
    Also any advice on what files can be safely deleted to obtain space on server.
    As a general rule there is very little that you can safely delete. The log files being the exception.

    Also, as a general rule, A ZenCart site doesn't increase its storage requirements over time (the log files being the exception).

    Probably the biggest storage hog will be the image files, so one of the 1st things to do (after cleaning up the log files) is to check the size of your image files, and if necessary reduce thier size and/or delete any that you aren't using.

    If that doesn't solve the storage space problem then you'll be better getting more storage space rather than trying to pare zencart down to its bare minimum.

    I have a sneaking suspicion that deleting your old log files is probably all that is needed.

    Out of curiosity, how much storage space are you allowed?

    Cheers
    Rod

  3. #3
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default Re: PHP Warning: strlen() expects parameter 1 to be string, array given in

    Thanks for that.

    On irishshopper.co.uk account we have 1000.00 MB

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: PHP Warning: strlen() expects parameter 1 to be string, array given in

    Quote Originally Posted by irishshopper View Post
    Thanks for that.

    On irishshopper.co.uk account we have 1000.00 MB
    Well, that would explain things. 1000mb (1GB) isn't a real lot of webspace (it used to be a decade or two ago). See if you can sweet talk your host into upping this to 10GB. (or even 5GB).

    I've just done a bit of quick research (Google) and have found several hosts that provide 1000mb (or more) totally free. Many others provide at least 10gb for less than $5.00pm, so unless you are on one of these free hosting plans your host would be foolish to deny your request. Storage is cheap!

    Cheers
    Rod

  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: PHP Warning: strlen() expects parameter 1 to be string, array given in

    It's worth noting that Zen Cart itself doesn't require anything near 1GB. Zen Cart itself is very small.
    The things that could blow out your storage space are:
    - your images
    - logging of emails sent -- setting in your admin, and an Email Archive Viewer/Pruner plugin available in the Plugins library to clean those up
    - logging of PHP errors in your /logs/ (or formerly /cache/) folder (or in older ZC versions, also the /includes/modules/payment/paypal/logs/ folder)
    - files added by plugins
    - cached items added by plugins (such as various tools like CEON mapping, Image Handler, XML sitemap, and more)
    .

    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.

 

 

Similar Threads

  1. Warning: trim() expects parameter 1 to be string, array given
    By jpietrowiak in forum General Questions
    Replies: 2
    Last Post: 8 Jun 2013, 07:06 PM
  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. 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