Start ::
Extensions and Distributions Support ::
Modules ::
RSSDisplay and PN_zClassifieds issue..
Moderated by: Support Team
-
- rank:
-
Softmore
- registered:
- April 2004
- Status:
- offline
- last visit:
- 23.05.05
- Posts:
- 57
When setting up RSS Display today and putting it into a center block on my main page users have started to notice that any time they go to the PN_zClassifieds module that it doesnt work anymore.. spitting out this.
Fatal error: Cannot redeclare error() (previously declared in /usr/home/http/mysite.com/modules/PN_zClassifieds/common.php:80) in /usr/home/http/mysite.com/modules/rssdisplay/pnincludes/rss_fetch.inc on line 221
the code on rss_fetch.inc on line 221 reads:
the code on Classfieds in common is:
im not a big PHP expert but it seems they are both using a function called error.. how could this be resolved, is there a way to clear the functions when going to another part of the site?
sorry PHP newbie
-
- rank:
-
Professional
- registered:
- Status:
- offline
- last visit:
- 31.12.05
- Posts:
- 1310
The problem is that both modules use the same name for defining a function and PHP complains because it doesn't know how to handle that situation.
This will also affect the weather module and the RSS module in PN CVS.
I am working on a solution in the RSSdisplay module but it is messy because it's called in a bunch of places.
I will also ping jmvedrine, the owner of the weather module to let him know of the exposure.
Gateway - send me your email again. I misplaced the last one and I need it to send you a patch. -
- rank:
-
Professional
- registered:
- January 2004
- Status:
- offline
- last visit:
- 05.08.08
- Posts:
- 632
Hello,
weather module is unaffected because the error function is in Magpie and wether use Snoopy but not Magpie.
PostNuke .760 RSS module is affected.
I really think it should be better to modify PN_ZClassified because if we modify Magpie, it would be necessary to redo the patch each time we upgrade to a new release of Magpie.
-----
Visit my live reef aquarium.
My Amazon wish list. -
- rank:
-
Professional
- registered:
- January 2004
- Status:
- offline
- last visit:
- 05.08.08
- Posts:
- 632
I was curious because on my site http://www.vedrine.net RSS and PN_ZClassifieds 2.0 are working together with no problem but I realised that I had changed all error in PN_ZClassifieds to zc_error (and fixed a lot of other things !!) I will redo the same changes for ZClassifieds latest release and make the result available. This should fix the problem. Should be available this week-end or at the beginning of next week.
-----
Visit my live reef aquarium.
My Amazon wish list. -
- rank:
-
Softmore
- registered:
- April 2004
- Status:
- offline
- last visit:
- 23.05.05
- Posts:
- 57
Cool. yea, any help on this would be apperciated.
IM curious, could a RSS be added into The Classifieds.. I know Craigslist.com has huge amount of data for personals, classifies etc, it would be nice to have some way to pull that data into a section of the PN Classifieds.. ? example rss for san diego for sale
http://sandiego.craigslist.org/sss/index.rss
thoughts? -
- rank:
-
Professional
- registered:
- Status:
- offline
- last visit:
- 31.12.05
- Posts:
- 1310
If you want to create an RSS feed from your PN_zClassifieds module, then the module you want is the RSSfeed module (from www.mtrad.com), not RSSdisplay.
The latest version of RSSfeed provides the ability to add new sources for your RSS feeds. As bri suggested, you write a feedsources PHP file that pulls the data from the tables that PN_zClassifieds uses. (Or like the rest of us, copy one of the existing feedsources files and modify the heck out of it.)
I can provide advice on how to write a feedsources script and would be happy to include whatever you come up with in the next version of the RSSfeed module. -
- rank:
-
Softmore
- registered:
- April 2004
- Status:
- offline
- last visit:
- 23.05.05
- Posts:
- 57
I think the idea of having the ability for PN Classifieds to pull in the craigs list rss feed would rock. cragis list is a very huge site for alot of the big cities around the US. http://www.craigslist.com anyhow since im building a local community site it would be nice to be able to pull his rss feed into my classfieds area.. so i could have a category called Craigs List Feed, which then could parse in the various information into the classifieds section.. but anyhow thats just a wish thing.. my main thing would be to be able to get RSSDisplay and Classfieds to play nice together..
any updates on fixes for the classifieds section?
also another wish list thing would be..
I want to offer up certain RSS feeds in the center block for users.. but I want them to be able to choose in My account what feeds they want based upon a list I set up.. ??
I know we are totally getting off topic here.. but
Start ::
Extensions and Distributions Support ::
Modules ::
RSSDisplay and PN_zClassifieds issue..
