1
roarjo
MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/3/1 17:45

  • roarjo

  • Just popping in

  • Posts: 8

  • Since: 2004/3/1 1


Hi all

I have a problem with the MS-Weather module v1.3
It says : "_MSW_OPENERROR" and "Could not open Yahoo Weather Page"

I've tried everything to get this module to work. I've also did chmod 777 the cache directory. But nothing helps..

And I have no idea what to do now..

--
Best Regards
Roar

2
sylvainb
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/3/1 18:46

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


First of all, I must say that I have to correct this in the zip file.
To not see anymore _MSW_OPENERROR or _MSW_WRITEERROR you should go to your language dir and then in blocks.php uncomment lines 50 and 51.
Now about your returned error, I can just think about a connection problem with Yahoo when you want to open a link or a server host problem with the bold code (not sure, just a assumption).
Here's the portion of code which is using to get Yahoo weather:
function msw_openpage$citycode$unit )
   {
      
// Page to open
      
if( $unit == ) { $openfile "http://weather.yahoo.com/forecast/".$citycode."_c.html"; }
      else { 
$openfile "http://weather.yahoo.com/forecast/".$citycode."_f.html"; }

      
$openerror 0;
      [
b]$mswdata = @implode ''file$openfile ) );[/b]
      if( 
$mswdata == FALSE )  {
         
$mswdata ""._MSW_OPENERROR."";
         
$openerror 1;
      }
      return( 
$mswdata );
   }

3
roarjo
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/3/1 19:52

  • roarjo

  • Just popping in

  • Posts: 8

  • Since: 2004/3/1 1


Hi...

Thanks for replying
After uncommenting those two lines I got rid of the _MSW_OPENERROR error.

But I still have problems with "Could not open Yahoo Weather Page"
Using a browser to http://weather.yahoo.com and selecting Paris or any other city for that matter is no problem.


--
Best Regards
Roar

4
sylvainb
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/3/1 21:21

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


I'm sorry, but I don't know what to tell as I can't reproduce the thing that give you this error.
I'm running it on my local site and on my live site, on both everything is fine.
Still searching...

5
roarjo
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/3/2 7:06

  • roarjo

  • Just popping in

  • Posts: 8

  • Since: 2004/3/1 1


Hi..

Thanks anyway.. I'll will try to find out more..
One thing I did was tcpdump on my webserver.

When I access the weather module from XOOPS there is no traffic towards eth0. But accessing http://weather.yahoo.com/forecast/NOXX0029_c.html from a browser genereates alot of traffic to p1.weather.vip.dcn.yahoo.com ( 216.109.126.70 )

So for some reason the weather module does not try to connect, or at least does not reach eth0.

--
Best Regards
Roar

6
Putschli
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/4/3 14:36

  • Putschli

  • Just popping in

  • Posts: 4

  • Since: 2003/4/24


hallo

i have the same problem. is there a solution?

thx
dani

7
sylvainb
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/4/3 15:00

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Dani,
First let me say that I'm very embarrassed because I just see that the zip file isn't corrected?!
Now, I'm not going to explain why I've decided to migrate my PC to Linux but, when I done this I had the same problem on my local machine.
Did you permitted the incoming access to your 80 port on your firewall?
Did you permitted the same thing on your modem router's firewall (in case you have one)?
If the answers to those simples questions are No, correcting this should solve your problem like it was the case for me.
Hope it help

8
phppp
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/4/3 15:27

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


ah, sylvainb

I am using your ms-weather.
There were some bugs and language errors.
And, I am in Montreal. The "Mon"treal was replaced by "Monday" when the script searches and replaces "Mon"

Now it's ok for me.

9
sylvainb
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/4/3 15:49

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hi phppp,
I was about to upload the corrected zip file when I read your post.
Could you tell me which other bugs and language errors you found and how you solve your "Mondaytreal" city ?

10
phppp
Re: MS-Weather 1.3 and _MSW_OPENERROR
  • 2004/4/3 16:36

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Give me some time. Might tonight?
I don't have the change log at home

Login

Who's Online

355 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 355


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits