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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:25:35
Script start
Timing: Jan 18 2025 16:25:35
Module start 'layout'
Timing: Jan 18 2025 16:25:35
Module start 'content'
Timing: Jan 18 2025 16:25:36
Module end 'content'
Timing: Jan 18 2025 16:25:36
Script end

Main resources:

Total runtime1.1103 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.9063152.6094
Module start 'layout' 0.00700.0034 741.515639.3984
Module start 'content' 0.01041.0986 780.9141666.0859
Module end 'content' 1.10900.0013 1,447.000016.2031
Script end 1.1103  1,463.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3282160.0002
Check MTime0.00140.1279160.0001
Mysql Total
Database connection0.00100.093310.0010
Mysqli_queries1.042593.8926730.0143
Looping result0.00080.0707710.0000
Template Total1.070196.420.5351
Template load0.00220.202320.0011
Template processing1.067896.173620.5339
Template load and register function0.00010.012010.0001
states
state_id_array0.00340.306510.0034
state_identifier_array0.00250.229320.0013
Override
Cache load0.00200.1821420.0000
Sytem overhead
Fetch class attribute can translate value0.00070.067040.0002
Fetch class attribute name0.00130.115690.0001
XML
Image XML parsing0.00150.139240.0004
class_abstraction
Instantiating content class attribute0.00000.0018100.0000
General
dbfile0.00120.1051230.0001
String conversion0.00000.002040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs