Bottom
Installation Problem
  • Posted: 20.08.2004, 17:17
     
    kkinderen
    registered:
     August 2004
    Status:
    offline
    last visit:
    21.08.04
    Posts:
    5
    In trying to correct problem #1, I created problem #2. Could you please help me through this?

    Problem #1. I downloaded and went through the instructions. Originally I left the source as MSN but after getting authorization failures I signed on with weather.com for the XML feed. These were the results...

    Code
    Weather information unavailable: HTTP/1.1 401 Unauthorized () url: http://xoap.weather.com/weather/local/USVA0702?cc=*&dayf=6&prod=xoap&par=1005693808&key=(edited by J.M. Védrine key removed for security reason)
    When I enter this directly into a browser I get weather information back. So I tried loading the weather page directly (instead of as a block) and got this reply...
    Code
    Failed to load module weather ( At function: "forecast" )
    After reading through some posts, it seemed that the first thing to try was to uninstall the weather module and reload it. This is where I ran in to my current problem. Problem #2. I deleted the weather module, went back to the original compressed file and started a new load from scratch. Now under 'Modules' the weather module is listed as New Version Installed with the options to Upgrade | Edit. I select upgrade and get the response:
    Code
    _UPGRADEVERSNOTSUPPORT


    Back in Admin, there is no Weather module listed.

    Why could I not get weather data in the module when I could get it from the link directly and how can I cleanly uninstall and reinstall the module?

    Thank you,
    Kevin
  • Posted: 20.08.2004, 19:18
     
    kkinderen
    registered:
     August 2004
    Status:
    offline
    last visit:
    21.08.04
    Posts:
    5
    Update:

    I've removed the weather folder in modules and dropped the weather related tables from the database. This is what caused the reinstall problem last time.

    After reloading, I installed only a single city and tried running as a block again. Same results...

    Code
    Weather information unavailable: HTTP/1.1 401 Unauthorized () url: http://xoap.weather.com/weather/local/USVA0702?cc=*&dayf=6&prod=xoap&par=1005693808&key=(edited by J.M. Védrine key removed for security reason)


    But, when I enter this URL directly into my browser I get weather data from weather.com. Is weather.com sending the 401 to the weather module's request or is there a permission error on my site http://kj4qf.us/ that is causing the problem?

    K
  • Posted: 20.08.2004, 22:40
       
    vedrine
    rank:
    Site Admin Site Admin
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.07.08
    Posts:
    261
    Hello,
    I edited your posts removing your personnal key because if someone use it not respecting weather.com rules you would be blacklisted on their website !!
    The 401 error is returned by weather.com. But what I don't understand is that the same url is working in your browser because usualy the meaning of this error is that user id or authorisation key are invalid but if this was the case it would not have worked when you enter the adress directly in your browser.
    The only other case of someone having a problem with weather.com and the weather module was on a novell server, is it your case ? The weather module is using a library named snoopy to establish the connection with weather.com and snoopy exactly mimic a browster but the php code of snoopy seem to have some problems on some novell servers and unfortunately I have no solution. For all other cases (linux and windows servers) until now I didn't encounter such a problem. Was the module working with MSNBC ?
  • Posted: 20.08.2004, 23:05
     
    kkinderen
    registered:
     August 2004
    Status:
    offline
    last visit:
    21.08.04
    Posts:
    5
    This is a linux server hosted at GoDaddy.com. I tried MSNBC as the first collection method and came up with:

    Code
    Weather information unavailable: HTTP/1.1 401 Unauthorized () url: http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid=USVA0702
    This link seems to work directly in the browser:
    Code
    unction makeWeatherObj() { this.swCity = "Shawsville"; this.swSubDiv = "VA"; this.swCountry = "USA"; this.swRegion = "United States"; this.swTemp = "86"; this.swTempCel = Math.round((5/9)*(this.swTemp-32)); this.swCIcon = "30"; this.swWindS = "12"; this.swWindD = "S"; this.swBaro = "30.01"; this.swHumid = "51"; this.swReal = "88"; this.swUV = "3"; this.swVis = "7.00"; this.swLastUp = "08/20/2004 15:54:00"; this.swConText = "Partly Cloudy"; this.swFore = "6|7|1|2|3|08/20/2004|08/21/2004|08/22/2004|08/23/2004|08/24/2004|30|38|30|30|30|4|28|4|4|4|87|77|79|81|78|10|50|20|20|20|47|45|29|29|11|27|15|4|4|14|66|58|58|61|63|"; this.swAcid = "USVA0702"; }


    So I'm suspecting it is not a permissions problem with accessing the site. I wasn't sure if the 401 was coming from the remote site or my site. This is the second clean reinstall with the same results.

    Thanks for removing the keys for me. Didn't think about it.

    Regards,
    K
  • Posted: 21.08.2004, 07:18
    Invité
    rank:
    1
    registered:
     December 2003
    Status:
    offline
    last visit:
    06.03.05
    Posts:
    0
    I'm still thinking about the problem. When the actual request is made of the MSNBC or weather.com web site, is that request coming from my client or is it coming from the server? Could it be that these weather sites have blocked the server itself? Is there a short php script I could run from the server that could verify this? I don't have shell access.
  • Posted: 22.08.2004, 11:18
     
    kkinderen
    registered:
     August 2004
    Status:
    offline
    last visit:
    21.08.04
    Posts:
    5
    :rof:
    Solved. Here's an excerpt I got from my hosting provider:

    [quote:207cb5e900]The type of server access that these modules require to be set up in your site is not allowed for our hosting plans. Therefore, you will not be able to use either.[/quote]

    Solution: Changed hosting providers. Worked on the first try with HostNuke.

    K
Quick reply
 
  • Options
Code:
Font color:  
Font size: