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.

eZ debug

Timing: Jan 18 2025 19:08:53
Script start
Timing: Jan 18 2025 19:08:53
Module start 'content'
Timing: Jan 18 2025 19:08:54
Module end 'content'
Timing: Jan 18 2025 19:08:54
Script end

Main resources:

Total runtime0.9919 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 591.1875180.8516
Module start 'content' 0.00860.7954 772.0391671.1406
Module end 'content' 0.80400.1878 1,443.1797341.0859
Script end 0.9918  1,784.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4173210.0002
Check MTime0.00160.1628210.0001
Mysql Total
Database connection0.00120.116710.0012
Mysqli_queries0.900590.78582100.0043
Looping result0.00230.23592080.0000
Template Total0.957496.520.4787
Template load0.00280.278120.0014
Template processing0.954696.238820.4773
Template load and register function0.00020.017010.0002
states
state_id_array0.00110.107910.0011
state_identifier_array0.00080.084720.0004
Override
Cache load0.00170.1666420.0000
Sytem overhead
Fetch class attribute can translate value0.00190.193850.0004
Fetch class attribute name0.00180.184690.0002
XML
Image XML parsing0.00180.182350.0004
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00460.4674340.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs