Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: aks_rss : RSS parser and aggregator
Hello (Jan?)
I’m back again with a news feed problem. I’m working on a new site that needs a news feed section and though I thought I’d copied all of the plug-ins, tags, and whatnot to make this news feed work, I’m getting the following error message on top of my webpage instead:
Tag error: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” /> -> Textpattern Notice: Unknown tag attribute: breakclass on line 699
Tag error: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” /> -> : Assigning the return value of new by reference is deprecated on line 737
The tag I’m using (which works fine on my working website) is: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” />
I have installed the aks_rss plug-in, and the SimplePie Plugin. (I have placed the simplepie.inc file in the textpattern>lib directory)
(I seem to remember that the SimplePie plug-in does not need to be turned on since only the simplepie.inc file is required. So, per my working site that has SimplePie plug-in turned off, i’ve done the same on this one.)
Ideas anyone? Thanks so much.
Living the Location-Independent Life: www.NuNomad.com
Offline
Re: aks_rss : RSS parser and aggregator
Hi Ricardo (or Richard?)
Tag error: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” /> -> Textpattern Notice: Unknown tag attribute: breakclass on line 699
The breakclass attribute is new to the latest version of aks_rss (0.1.6), it seems like you may have an older version installed.
You’re correct, you don’t need the simplepie plugin at all (no need to install it), you just need the simplepie script. aks_rss and the simplepie plugin, both rely on the simplepie script, but they have nothing to do with eachother.
I’m not sure about the second error you’re getting, but maybe it’ll go to if you upgrade aks_rss?
Last edited by JanDW (2010-04-05 15:20:17)
TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX
Offline
Re: aks_rss : RSS parser and aggregator
Jan,
Thanks for your assistance.
I replaced the version I had (which appeared to be 0.1.6) with another version of 0.1.6, but this time I used the simplepie.inc script from the aks_rss folder and not Simple Pie’s. With that done, I am now getting the news feed in the spot where I want it to view, but I’m still getting the error line above the page.
Living the Location-Independent Life: www.NuNomad.com
Offline
#79 2010-04-06 06:26:11
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
Re: aks_rss : RSS parser and aggregator
laptophobo wrote:
Tag error: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.npr.org/rss/rss.php?id=1027” class=“directory” breakclass=“feed” /> -> : Assigning the return value of new by reference is deprecated on line 737
It’s a warning PHP 5.3 on Simplepie library. Defect #150
Hide warning, set in php.ini or .htaccess:
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#80 2010-04-06 06:41:34
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
Re: aks_rss : RSS parser and aggregator
laptophobo wrote:
That cleaned up things a bit. And I can see that using the break tags may eliminate some form attributes. But when I implemented your changes, as written, my list structure did not appear like I wanted. I was also getting a funny “a” character before and after the date stamp. I did find that I had a couple of unnecessary tags though. So, here’s what I’m now working with:
On the Template: <txp:aks_rss limit=“10” form=“feed_listing” feed=“http://www.feedzilla.com/rss/health” class=“directory” breakclass=“feed” />
Please, read this great post (Thank to JanDW)
Attribute class uses only with wraptag and attribute breakclass uses only with break
On the Form: <span class=“feed”><li><txp:permlink><txp:title /></txp:permlink> · <span class=“published”><txp:posted format=”%Y-%m-%d” /></li></span>
It’s a wrong… Check your html code or read this post. :)
To view the example site where this feed is at, go to: http://www.dotorgwebworks.org/example.dev/
Many open tags and other… 107 Errors
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
Re: aks_rss : RSS parser and aggregator
Hi makss,
You say to: Hide warning, set in php.ini or .htaccess. But, I’m unable to locate the php.ini file and the .htaccess file I did locate will not let me edit it.
help.
Living the Location-Independent Life: www.NuNomad.com
Offline
#82 2010-04-06 09:54:48
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
Re: aks_rss : RSS parser and aggregator
laptophobo wrote:
You say to: Hide warning, set in php.ini or .htaccess. But, I’m unable to locate the php.ini file and the .htaccess file I did locate will not let me edit it.
May be simple set in Textpattern Production Status to Live (menu Admin \ Preferences \ Production Status)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
Re: aks_rss : RSS parser and aggregator
YES! Switching to Live stopped the error messages. I’ll make a big note of that. Thanks so much for your help on this Makss (and you too Jan.)
Living the Location-Independent Life: www.NuNomad.com
Offline
Re: aks_rss : RSS parser and aggregator
Just found on Twitter:
“@BlasterBo: SimplePie Plugin generates “offset error” w. #textpattern 4.2.0 and #php 5.3.2 .. just by loading the plugin .. how to aggregate rss feeds?”
I recommended to try aks_rss but maybe some kind sole should give feedback on this isssue (reproducible, confirmation, how to fix, etc.).
Edit:
“@BlasterBo: @Markus_Merz Thanks for the tip .. but it seems the simplepie.inc file (also used by aks_rss) is my issue – are you running it on php5.3.2 ?”
The error output can actually been seen here:
“@BlasterBo: @Markus_Merz I’m not that good in PHP .. but as far as I can read it comes down to function EVAL on PHP .. http://bit.ly/d6sNcM”
The error outputs starts with and repeats this error on multiple lines. I am wondering about the directory structure ‘httpd.www/’:
Notice: Undefined offset: 8192 in /customers/papskubber.dk/papskubber.dk/httpd.www/textpattern/lib/simplepie.inc on line 737
Tag error: <txp:aks_rss feed="http://rss.cnn.com/rss/cnn_tech.rss" form="rss" order="desc" wraptag="ul" /> -> : Assigning the return value of new by reference is deprecated on line 737
textpattern/lib/txplib_misc.php(594) : eval()'d code:99 aks_rss()
textpattern/publish.php:1106 aks_rss()
textpattern/publish.php:1028 processTags()
textpattern/publish/taghandlers.php:3084 parse()
textpattern/publish.php:1106 if_section()
textpattern/publish.php:1041 processTags()
textpattern/publish/taghandlers.php:3007 parse()
textpattern/publish.php:1106 if_category()
textpattern/publish.php:1041 processTags()
textpattern/publish.php:506 parse()
Let’s hope this is only an easy local problem (directory structure?).
Last edited by merz1 (2010-04-13 12:26:24)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#85 2010-04-13 12:39:43
- bojay
- Member

- Registered: 2010-04-13
- Posts: 11
Re: aks_rss : RSS parser and aggregator
You’re rigth – the path does look funny indeed, but I guess it’s the actual path at the hosting server?
My path is www.papskubber.dk
I have the plugins “act_if_mobile” and “tru_tags” running with no problem, but they don’t draw on external .inc files .. so that might be it ?
I’ve put the simplepie compatibility test here: http://papskubber.dk/textpattern/lib/compatibility_test/sp_compatibility_test.php ..
I’ve no idea where the ‘httpd.www’ comes from .. my ftp access to the subdirectory points to /textpattern/lib/ and the aks_rss plugin is installed with no modifications and simply “turned active” with the YES/NO method in txp-admin
Last edited by bojay (2010-04-13 12:44:37)
Offline
#86 2010-04-13 13:04:11
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
Re: aks_rss : RSS parser and aggregator
merz1 wrote:
“@BlasterBo: @Markus_Merz Thanks for the tip .. but it seems the simplepie.inc file (also used by aks_rss) is my issue – are you running it on php5.3.2 ?”
Notice: Undefined offset: 8192 in /customers/papskubber.dk/papskubber.dk/httpd.www/textpattern/lib/simplepie.inc on line 737
Tag error: <txp:aks_rss feed="http://rss.cnn.com/rss/cnn_tech.rss" form="rss" order="desc" wraptag="ul" /> -> : Assigning the return value of new by reference is deprecated on line 737
Simplepie project not fully compatibility with PHP 5.3 and uses some deprecated references . This is only Notice.
Hide warning, set in php.ini or .htaccess:
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
or set in Textpattern Production Status to Live (menu Admin \ Preferences \ Production Status)
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#87 2010-04-13 13:26:36
- bojay
- Member

- Registered: 2010-04-13
- Posts: 11
Re: aks_rss : RSS parser and aggregator
I’ve set the production state to “Live” in TXP preferences .. and this hid the errors allright, but isn’t a fix as-such and the plugin don’t parse the example rss.
Can anyone tell me if simplepie is able to produce output (any at all) in PHP 5.3.2 hence “Assigning the return value of new by reference is deprecated” ?
or is my issue the wired path: “/httpd.www/textpattern/lib/simplepie.inc” .. even though it’s an odd path, the script does seem to run.
again – I’m not PHP sawy by any standard, so I could be wrong in this assesment?!
Offline
Re: aks_rss : RSS parser and aggregator
Re. path: Please check your Textpattern diagnostics & esp.:
A)
Document Root:
$path_to_site:
Textpattern-Pfad (should be ‘path’ in english):
B)
The weird part is /customers/papskubber.dk/ papskubber.dk/httpd.www/ textpattern/lib/simplepie.inc
You should involve your ISP and file a ticket about this path issue. Maybe they can help
Last edited by merz1 (2010-04-13 14:25:13)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#89 2010-04-13 14:39:44
- bojay
- Member

- Registered: 2010-04-13
- Posts: 11
Re: aks_rss : RSS parser and aggregator
ah thanks – this looks like it could lead to something.
In my diagnostic window in TXP the $path_to_site is this:
$path_to_site: /customers/papskubber.dk/papskubber.dk/httpd.www
Should this point to the clean URL of the domain only ?
Does the plugin require this value to be read otherwise .. or are your guess that the plugin simply isn’t exuceted at all ??
But weather or not this is a funny sub-path, the $path_to_site var does return the folder, and I have no reason to belive that this isn’t the folder structure on the server.
Thanks in advance
/Bo
Last edited by bojay (2010-04-13 14:46:52)
Offline
Re: aks_rss : RSS parser and aggregator
To tell you the truth: I have no idea but I would bet that this is a web server configuration issue and not a problem with aks_rss and/or the PHP version.
The odd thing (from the outside!) is that papskubber.dk/textpattern/lib/simplepie.inc is working and http://papskubber.dk/papskubber.dk/httpd.www/textpattern/lib/simplepie.inc is returning a 404 error.
Btw.: The same for http://papskubber.dk/papskubber.dk/httpd.www which should return the site root if the configuration would be OK. Please contact your ISP about this path issue!
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline