bamNOOB Posted March 8, 2006 Posted March 8, 2006 (edited) Hi all -- I recently installed the Featured Products contrib. 55% of the time on the index page -- I get an error. (I will try to post it when I see it again) 100% of the time on any of the catalog pages I get this error: Fatal error: Call to undefined function: tep_array_values_to_string() in /home/bsbooks/public_html/E-Store/includes/modules/featured.php on line 37 Can anyone point me in the right direction? I am NOT an PHP guru.... Thanks in advance... my url is www.bsbooksandmore.com/E-Store bam Edited March 8, 2006 by bamNOOB Quote
rich89 Posted March 12, 2006 Posted March 12, 2006 Hi all -- I recently installed the Featured Products contrib. 55% of the time on the index page -- I get an error. (I will try to post it when I see it again) 100% of the time on any of the catalog pages I get this error: Fatal error: Call to undefined function: tep_array_values_to_string() in /home/bsbooks/public_html/E-Store/includes/modules/featured.php on line 37 Can anyone point me in the right direction? I am NOT an PHP guru.... Thanks in advance... my url is www.bsbooksandmore.com/E-Store bam Add the code below before the closing ?> php tag in your includes/modules/functions/general.php file, and you should be fine. Other bugs are listed on the Feature Products contrib page. For some reason, earlier bug fixes were not included in the latest release. function tep_array_values_to_string($array, $separator = ',') { $get_string = ''; if (sizeof($array) > 0) { while (list($key, $value) = each($array)) { $get_string .= $value . $separator; } $remove_chars = strlen($separator); $get_string = substr($get_string, 0, -$remove_chars); } return $get_string; } Quote
leehayes Posted April 4, 2006 Posted April 4, 2006 (edited) Add the code below before the closing ?> php tag in your includes/modules/functions/general.php file, and you should be fine. Other bugs are listed on the Feature Products contrib page. For some reason, earlier bug fixes were not included in the latest release.function tep_array_values_to_string($array, $separator = ',') { $get_string = ''; if (sizeof($array) > 0) { while (list($key, $value) = each($array)) { $get_string .= $value . $separator; } $remove_chars = strlen($separator); $get_string = substr($get_string, 0, -$remove_chars); } return $get_string; } Hi, I also get the error above in my subcategories, my main page featured p[roducts display fine. I have added the code you mention, but the fault remains. I have also scoured the featured products contrib page, but to no avail. Any ideas anyone? It's been hassling me for days now. Edited April 4, 2006 by leehayes Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.