1
GOwin
ms weather notices
  • 2004/4/12 23:11

  • GOwin

  • Just popping in

  • Posts: 78

  • Since: 2003/5/2 9


what are they? i turned on PHP debugging and got the following:

Quote:
Notice: Constant _MSW_TODAY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 21 Notice: Constant _MSW_FORECAST already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 22 Notice: Constant _MSW_EXTENDED already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 23 Notice: Constant _MSW_HIGH already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 24 Notice: Constant _MSW_LOW already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 25 Notice: Constant _MSW_CURRENTLY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 26 Notice: Constant _MSW_TOMORROW already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 27 Notice: Constant _MSW_SUN already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 28 Notice: Constant _MSW_MON already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 29 Notice: Constant _MSW_TUE already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 30 Notice: Constant _MSW_WED already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 31 Notice: Constant _MSW_THU already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 32 Notice: Constant _MSW_FRI already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 33 Notice: Constant _MSW_SAT already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 34 Notice: Constant _MSW_DAY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 35 Notice: Constant _MSW_MORECURRENT already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 36 Notice: Constant _MSW_FEELSLIKE already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 37 Notice: Constant _MSW_BAROMETER already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 38 Notice: Constant _MSW_HUMIDITY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 39 Notice: Constant _MSW_VISIBILITY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 40 Notice: Constant _MSW_DEWPOINT already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 41 Notice: Constant _MSW_SUNRISE already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 42 Notice: Constant _MSW_SUNSET already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 43 Notice: Constant _MSW_UNAVAILABLE already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 44 Notice: Constant _MSW_UNLIMITED already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 45 Notice: Constant _MSW_WIND already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 46 Notice: Constant _MSW_AM already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 47 Notice: Constant _MSW_PM already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 48 Notice: Constant _MSW_FEW already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 49 Notice: Constant _MSW_INTHE already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 50 Notice: Constant _MSW_RAIN already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 51 Notice: Constant _MSW_CLEAR already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 52 Notice: Constant _MSW_SUNNY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 53 Notice: Constant _MSW_FAIR already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 54 Notice: Constant _MSW_MOSTLY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 55 Notice: Constant _MSW_LIGHT already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 56 Notice: Constant _MSW_HEAVY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 57 Notice: Constant _MSW_SHOWERS already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 58 Notice: Constant _MSW_SHOWER already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 59 Notice: Constant _MSW_PARTLY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 60 Notice: Constant _MSW_CLOUDY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 61 Notice: Constant _MSW_HAZE already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 62 Notice: Constant _MSW_DRIZZLE already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 63 Notice: Constant _MSW_WITH already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 64 Notice: Constant _MSW_THUNDER already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 65 Notice: Constant _MSW_THUNDERSTORMS already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 66 Notice: Constant _MSW_SCATTERED already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 67 Notice: Constant _MSW_ISOLATED already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 68 Notice: Constant _MSW_SNOW already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 69 Notice: Constant _MSW_VICINITY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 70 Notice: Constant _MSW_CLOUDS already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 71 Notice: Constant _MSW_EARLY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 72 Notice: Constant _MSW_FOG already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 73 Notice: Constant _MSW_CLEARING already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 74 Notice: Constant _MSW_LATE already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 75 Notice: Constant _MSW_DRIFTING already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 76 Notice: Constant _MSW_SELECTCITY already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 77 Notice: Constant _MSW_OPENERROR already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 79 Notice: Constant _MSW_WRITEERROR already defined in /home/z/public_html/ismash/modules/ms_weather/language/english/main.php on line 80 Notice: Undefined index: content in /home/z/public_html/ismash/modules/ms_weather/blocks/block-MS-Weather.php on line 36

2
sylvainb
Re: ms weather notices
  • 2004/4/13 5:06

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hi GOwin and don't worry, it's nothing really important.
However, I think you aren't running the last version of MS-Weather (maybe the 1.2 version) because I've corrected all those NOTICES and they don't appears anymore (for me) in both the 1.3 and 1.4 version.
But, if I'm wrong, don't hesitate to report it again.

3
GOwin
Re: ms weather notices
  • 2004/4/13 6:08

  • GOwin

  • Just popping in

  • Posts: 78

  • Since: 2003/5/2 9


ahh i see ... i'm using 1.1.

what does an upgrade entail? do i just unpack v1.4 to my site or do i have to remove v1.1 first then reconfigure v1.4 from scratch?

TIA

4
sylvainb
Re: ms weather notices
  • 2004/4/13 8:05

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


No removal needed, just unpack the 1.4 version and then upload it to your server.
As usual, you'll need to update the module trought the Modules Administration to make changes effectives.

5
GOwin
now using v1.4
  • 2004/4/16 6:19

  • GOwin

  • Just popping in

  • Posts: 78

  • Since: 2003/5/2 9


but i still get one notice:
Quote:
Notice: Constant _MSW_B_INTHE already defined in /home/zeus/public_html/ismash/modules/ms_weather/language/english/blocks.php on line 36

6
sylvainb
Re: now using v1.4
  • 2004/4/16 13:50

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Yes GOwin, you're wright!
I've noticed it but too late, the zip file will be corrected.
For now, you can simply edit the blocks.php file in the language directory and erase one of the defines
define"_MSW_B_INTHE""in the");
as it is defined twice.

7
libkh
Re: now using v1.4
  • 2004/4/28 1:36

  • libkh

  • Just popping in

  • Posts: 3

  • Since: 2004/4/27


HI!sylvainb
I'm developing a new module by myself.And I define the constants in /language/english/admin.php. I'm sure all the constans is defined once. But I also got that notice: XXX already defined in XXX.php on line XXX

Why I got that error??Who can tell me ??
Thanks


8
sylvainb
Re: now using v1.4
  • 2004/4/28 5:11

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hi Libkh,
Perhaps you included that in your header.php (or somewhere else):

if(file_exists(XOOPS_ROOT_PATH."/modules/module_name/language/".$xoopsConfig['language']."/xxx.php")){
    include(
XOOPS_ROOT_PATH."/modules/module_name/language/".$xoopsConfig['language']."/xxx.php");
}else{
    include(
XOOPS_ROOT_PATH."/modules/module_name/language/english/xxx.php");

If it's the case, you can just erase it as this is already done in include/common.php for xoops2.
Hope it help.

9
libkh
Re: now using v1.4
  • 2004/4/28 6:18

  • libkh

  • Just popping in

  • Posts: 3

  • Since: 2004/4/27


Hi sylvainb,
very thanks for your help!!!!!!!!!!!!!!!
yes, I includeed that in my header.php, and i erase it,
It works fine!!
Thanks again!!!!

Login

Who's Online

211 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 211


more...

Donat-O-Meter

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

Latest GitHub Commits