Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Goto page: 1 - 2 [+1]

Bottom
RSSDisplay and PN_zClassifieds issue..
  • Posted: 09.03.2005, 10:31
     
    gateway
    rank:
    Softmore 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:

    Code

    function error ($errormsg, $lvl=e_user_warning) {
            global $MAGPIE_ERROR;



    the code on Classfieds in common is:

    Code

    function error( $error )
        {
            echo "<br><br><p class=\"classifieds-messages\">"._ERROR.": $error\n";
            echo "&nbsp;<a href=\"javascript:history.back()\">"._BACK."</a></p><br><br>\n"
            //exit();   
        }


    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 :)
  • Posted: 09.03.2005, 11:23
     
    ColdRolledSteel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.12.05
    Posts:
    1310
    Send me email and I'll get a fix for you. That's crsATmtradDOTcom.
  • Posted: 09.03.2005, 17:26
     
    jonblaze3
    rank:
    Freshman Freshman
    registered:
     March 2005
    Status:
    offline
    last visit:
    28.09.05
    Posts:
    13
    Hey, that a really nice thing to do.

    ColdRolledSteel

    Send me email and I'll get a fix for you. That's crsATmtradDOTcom.
  • Posted: 10.03.2005, 04:12
     
    gateway
    rank:
    Softmore Softmore
    registered:
     April 2004
    Status:
    offline
    last visit:
    23.05.05
    Posts:
    57
    you got mail :)
  • Posted: 11.03.2005, 03:36
     
    gateway
    rank:
    Softmore Softmore
    registered:
     April 2004
    Status:
    offline
    last visit:
    23.05.05
    Posts:
    57
    any chance to look at this? or give me an idea on how this could be fixed
  • Posted: 11.03.2005, 03:37
     
    ColdRolledSteel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.12.05
    Posts:
    1310
    sorry, still trying to unbury myself. I will look at it sometime in the next 12 hours.
  • Posted: 11.03.2005, 08:52
     
    ColdRolledSteel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.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.
  • Posted: 11.03.2005, 09:01
     
    ColdRolledSteel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.12.05
    Posts:
    1310
    And you could also suggest to the pn_zclassifieds owner that they fix the problem as well. :wink:
  • Posted: 11.03.2005, 13:29
     
    jmvedrine
    rank:
    Professional Professional
    registered:
     January 2004
    Status:
    offline
    last visit:
    05.09.08
    Posts:
    633
    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.
  • Posted: 11.03.2005, 15:26
     
    jmvedrine
    rank:
    Professional Professional
    registered:
     January 2004
    Status:
    offline
    last visit:
    05.09.08
    Posts:
    633
    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.
  • Posted: 12.03.2005, 00:29
     
    gateway
    rank:
    Softmore 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?
  • Posted: 12.03.2005, 00:53
     
    bri
    rank:
    Professional Professional
    registered:
     April 2003
    Status:
    offline
    last visit:
    28.01.07
    Posts:
    771
    pull the data from your PN database.
    In myheadlines it's myh_cache dunno what it is in RSSDisplay.
  • Posted: 14.03.2005, 00:52
     
    gateway
    rank:
    Softmore Softmore
    registered:
     April 2004
    Status:
    offline
    last visit:
    23.05.05
    Posts:
    57
    Not sure what you mean.. can you give me a bit more details for a non PHP person :)
  • Posted: 14.03.2005, 04:23
     
    ColdRolledSteel
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    30.12.05
    Posts:
    1310

    gateway

    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

    If you want to create an RSS feed from your PN_zClassifieds module, then the module you want is the RSSfeed module (from http://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.
  • Posted: 15.03.2005, 00:17
     
    gateway
    rank:
    Softmore 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 :)

Goto page: 1 - 2 [+1]

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula