Bottom
XTE RC3 - error loading weather v1.30
  • Posted: 12.04.2004, 11:05
    Invité
    rank:
    1
    registered:
     December 2003
    Status:
    offline
    last visit:
    06.03.05
    Posts:
    0
    I've been happily using weather v1.30 with a pn site thatrt uses XTE RC2.

    Upgrading to RC3 and I get the error:

    Fatal error: Call to a member function on a non-object in /home/eden01732/public_html/mysharedaccounts/penshurstnews/modules/weather/pnblocks/weather.php on line 84
  • Posted: 12.04.2004, 18:38
    Invité
    rank:
    1
    registered:
     December 2003
    Status:
    offline
    last visit:
    06.03.05
    Posts:
    0
    Problem solved.

    Info here, if anyone else is interested:

    http://forums.p...PNphpBB2&;file=viewtopic&p=93802#93802
  • Posted: 12.04.2004, 21:53
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.07.08
    Posts:
    261
    Yes, for all the users upgrading to XTERC3 and having the same problem it a lowercase/uppercase issue. I will fix it in the upcoming version 1.31 but in the meantime to fix the error, use phpmyadmin and look in the nuke_modules table for the record

    pn_name=weather,pn_type=2, pn_displayname=weather, pn_description=Weather forecast module - block support, 5 day for..., pn_regid=0, pn_directory=weather, pn_version = 1.30 pn_admin_capable=1, pn_usercapable=1, pn_state=3

    and change pn_name field from weather (with a lowercase w) to Weather (with an uppercase W). Everything should then be fine.
  • Posted: 14.04.2004, 12:11
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.07.08
    Posts:
    261
    Unfortunately the temporary solution that I proposed (edit the nuke_modules table) has some drawbacks that you must be aware of :

    if you change weather to Weather in the nuke_modules table, the next time you regenerate the module list in Administration > Modules, you will have 2 weather modules

    - one named "Weather" marked "files missing" because postnuke searched for a directory named Weather in modules/ and of course find none because it is named Weather icon_rolleyes
    - one named "weather" marked "uninitialized" because Postnuke searched for a record with pn_name=weather in nuke_modules and find none because we edited it icon_rolleyes
    And of course none of these modules will works
    Don't panic, don't uninstall anything, re-edit nuke_modules table again suppressing the Weather record and revert the weather record to
    pn_name=weather,pn_type=2, pn_displayname=weather, pn_description=Weather forecast module - block support, 5 day for..., pn_regid=0, pn_directory=weather, pn_version = 1.30 pn_admin_capable=1, pn_usercapable=1, pn_state=3
    Of course you will have to do that each time you regenerate the module list wich is painfull
    My best advice is to wait for the 1.31 release of the weather module wich (I hope) will definitely solve this problem and (I hope) without the need to uninstall the module or loose any pref or istalled city icon_lol
Quick reply
 
  • Options
Code:
Font color:  
Font size: