Zen Cart Logo
Forums / General Questions / moved to new host/server and 2 things happening

moved to new host/server and 2 things happening

Views: 1,971

Results 21 to 22 of 22
2 Jul 2013, 7:39 PM
#21
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

moved to new host/server and 2 things happening

all things are better now, thanks for the help.

strange thing though is once the server was configured to my time zone those two files for date-time disappeared from the server. were they supposed to do that?
nothing else is happening cept for an error that edit orders is coughing up but still trying to find out if that is still happening.

2 Apr 2015, 8:37 AM
#22
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: moved to new host/server and 2 things happening

lat9:

What version of PHP is being run for the new server? Unfortunately, function_general.php is just the victim here. Some other code called that module's zen_trunc_string function with a non-numeric length value.

DrByte:

lat9 is correct. Somewhere you have either settings or non-original ZC code that is making calls to zen_trunc_string() with invalid parameters.

Two things you must do:
a) use Developers Toolkit to look up the following CONSTANTS and make sure ALL of their values are numeric. If you have words or spaces in ANY of them, those are causing some or all of your problems.
PRODUCT_LIST_DESCRIPTION
BEST_SELLERS_TRUNCATE
PRODUCT_ALL_LIST_DESCRIPTION
PRODUCT_FEATURED_LIST_DESCRIPTION
PRODUCT_NEW_LIST_DESCRIPTION

b) use Developers Toolkit to locate all calls to zen_trunc_string ... do this on both YOUR site and a brand NEW site using a fresh clean install of ZC. Compare the results. Any results in yours that are "extra" or not identical to the original, should be evaluated. I don't want to know anything about exact matches: those are fine.

know this is and OLD post, but goodness this post was a lifesaver!!! Thank you BOTH.. This error has bee a persistent one for my client and I figured it would go away once the site was upgraded.. but As SOON as I brought over her database and upgraded it, the "PHP Warning: substr() expects parameter 3 to be long, string given in /home/xxxxxxx/public_html/xxxxxxx/freebies/includes/functions/functions_general.php on line 1043" error logs began FILLING up the logs folder on my dev site too.. Going through and checking each product listing setting to make sure that there were no blanks, and found that PRODUCT_LIST_DESCRIPTION was the culprit..

Updated the value to zero on both the live and dev sites, and so far all's quiet now.. Thanks to you both!!