Forums / Developer / RSS problem

RSS problem

Author Message

luis muñoz

Wednesday 21 December 2005 2:29:44 am

When i create a new rss import i can only map 3 items: title, url and guid but the source has more. It will be fine to be able to map more fields, don't know if it's possible.

The real problem with rss is that if i the rss has two url fields, guid and link, RSS cron only maps the link, never the guid.

I need to be able to map all the fields or map guid in place of link. Is there any way to do this?

Thanks,
Luis

Kåre Køhler Høvik

Wednesday 21 December 2005 2:52:43 am

Please see trunk rev. 14264 . We added improved RSS import in that revision. If you need help installing this on your system, please contact support ( http://ez.no/services/support )

Kåre Høvik

luis muñoz

Wednesday 21 December 2005 3:03:23 am

Thank you for the quick reply.
Is there any doc about improved RSS import? I cannot find it on your site

Luis

Kåre Køhler Høvik

Wednesday 21 December 2005 3:39:40 am

Check in trunk : doc/features/3.8/generic_rss_import.txt

Kåre Høvik

kracker (the)

Wednesday 21 December 2005 4:25:19 am

Check it,

The Link: http://pubsvn.ez.no/nextgen/trunk/doc/features/3.8/generic_rss_import.txt
The Contents:

*Title: More generic RSS import

*Documentation:

This improvement adds support for custom RSS import definitions, and supports more fields than the earlier version.
Custom import maps can be placed in extensions.

To still use old RSS import definitions, the update script update/common/scripts/updaterssimport.php must be run.

Custom import maps must be placed in :

<extension directory>/<extension name>/rss/ez<extension name>rssimport.php
This file must contain a class of the same name, and a function called 'rssFieldDefinition'.
The function returns an RSS definition in the form of a multidimentional array.

See kernel/classes/ezrssimport.php ::rssFieldDefinition() for default RSS definition.

//kracker
<i>Crystal Method - Busy Child</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

luis muñoz

Wednesday 21 December 2005 5:05:25 am

Thank you for the link.
I'll try downloading the last ez from the svn.

I have another rss question:

I have a error in the log:

Fatal error: Cannot redeclare rssimport1() (previously declared in /usr/ez372dev/cronjobs/rssimport.php:139) in /usr/ez372dev/cronjobs/rssimport.php on line 139

Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.

This error is happening from the last update to 372. This only happends with the last rss feed of a long list. If i add another rss this isn't executed because of the error. If i delete the rss producing the error then i have the error in the last rss of the list.
This is a bit weird because all the rss is working fine but the last, alwais the last, no mater wich one i move to the last position

I don´t know if this is a bug, it happends in 3 different instalations, with different mysql version, different php compile options and diferent apache compile options. Also checked replacing all the system ezpublish files.

Thanks,
Luis

Yngve Bergheim

Thursday 26 January 2006 1:33:47 am

I got the same error when using the latest RSS mod from trunk.

PHP Fatal error:  Cannot redeclare rssimport1() (previously declared in /var/ez/ezpublish-3.7.3_rss_mod/cronjobs/rssimport.php:165) in /var/ez/ezpublish-3.7.3_rss_mod/cronjobs/rssimport.php on line 165

It seems like the rssimport.php is going thought a loop. All my RSS-feeds are imported correctly, but it's quite annoying to have this PHP error all the time.

Strangely this doesn't happen on windows.