Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with RSS feed


ranoo

Recommended Posts

Hello

 

I have instaled several times the Rss feed and i receive the folowing error:

 

Fatal error: Call to undefined function: iconv() in /home/hotcomp/public_html/rss.php on line 153

 

please can you tell me how can i fix this?

 

I will paste here some part of the code from line 153:

 

// Encodage en UTF-8

$store_name = iconv('ISO-8859-15', 'UTF-8', $store_name);

$rss_title = iconv('ISO-8859-15', 'UTF-8', $rss_title);

$weblink = iconv('ISO-8859-15', 'UTF-8', $weblink);

$description = iconv('ISO-8859-15', 'UTF-8', $description);

$email_address = iconv('ISO-8859-15', 'UTF-8', $email_address);

 

Thanks a lot

Link to comment
Share on other sites

same problem i got here...

 

i actually got two errors one in the index page and the rss.php

 

in the index page:

 

Warning: reset(): Passed variable is not an array or object in /home/sapphire/public_html/carb/index.php on line 32

 

Warning: Variable passed to each() is not an array or object in /home/sapphire/public_html/carb/index.php on line 33

 

 

in the rss feed

 

Fatal error: Call to undefined function: iconv() in /home/sapphire/public_html/carb/rss.php on line 153

 

im used linux and PHP version 4.3.10

Birds with same feathers, are same birds.

Link to comment
Share on other sites

Go to your osc admin panel->Tools->Server Info

 

Search if the iconv library is installed. You should see something like:

 

iconv

iconv support enabled

 

If not ask your host about it if there is an equivalent library supporting this.

Link to comment
Share on other sites

  • 2 weeks later...

hi guys... I already fixed my problem regarding iconv....

 

my problem now is i'm having errors in the index page once the store categories has been clicked...

 

this is the error....

 

 

Warning: reset(): Passed variable is not an array or object in /home/sapphire/public_html/carb/index.php on line 30

 

Warning: Variable passed to each() is not an array or object in /home/sapphire/public_html/carb/index.php on line 31

 

 

Where exactly I should put this:

 

6. Add to the HTML header, at least on the index.php file:

 

<?php

reset($lng->catalog_languages);

while (list($key, $value) = each($lng->catalog_languages)) {

echo '<link rel="alternate" type="application/rss+xml" title="' . STORE_NAME . ' ' . BOX_INFORMATION_RSS . ' ' . $value['name'] . '" href="' . FILENAME_RSS . '?language=' . $key . '" />';

}

?>

 

I inserted it after the <head>....

 

Please help.

 

thanks guys....

Birds with same feathers, are same birds.

Link to comment
Share on other sites

  • 3 weeks later...
i got it guys....thanks anyway :D

 

 

getting the same errors on the index.php page - where did you end up putting this code?

 

<?php

reset($lng->catalog_languages);

while (list($key, $value) = each($lng->catalog_languages)) {

echo '<link rel="alternate" type="application/rss+xml" title="' . STORE_NAME . ' ' . BOX_INFORMATION_RSS . ' ' . $value['name'] . '" href="' . FILENAME_RSS . '?language=' . $key . '" />';

}

?>

 

 

thanks!

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 months later...

I have a strange T_String error,

 

althouht there is NO ' in these lines.

 

Here is the Error I get

Parse error: parse error, unexpected T_STRING in /homepages/41/d6914/htdocs/shop/rss.php on line 30

 

and here is the line 27 to 34

 

// If the default of your catalog is not what you want in your RSS feed, then

// please change this three constants:

// Enter an appropriate title for your website

define(MyDomain Shopping News, MyDomain Online Shopping Mall);

// Enter your main shopping cart link

define(www.MyDomain.com/shop/account.php, www.MyDomain.com);

// Enter a description of your shopping cart

define(Add to your Shopping Cart, MyDomain Shopping Mall);

 

Thank you a million time in advance for your help.

 

Regards,

Arames T.

Link to comment
Share on other sites

  • 3 months later...

I used this contrib rigt out of the box & it worked fine, even with my SEO URLs, but there is a BIG problem. It only covers the 20 or so items I have on my index page, not the 3,000+ other products in my site's database.

 

Am I missing something? Am I doing somethign wrong? Or is there a way to set this up to cover them all. Isn't that what RSS is supposed to do?

 

Confused! Help! Need water, whiskey & ice, GASP!

 

Mikey boy.

 

 

 

I have a strange T_String error,

 

althouht there is NO ' in these lines.

 

Here is the Error I get

Parse error: parse error, unexpected T_STRING in /homepages/41/d6914/htdocs/shop/rss.php on line 30

 

and here is the line 27 to 34

Thank you a million time in advance for your help.

 

Regards,

Arames T.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...