Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (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 by bamNOOB
Posted
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;

}

  • 4 weeks later...
Posted (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 by leehayes

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...