Author Topic: PHP notices  (Read 2495 times)

0 Members and 1 Guest are viewing this topic.

Offline thoko

  • Member
  • *
  • Posts: 48
PHP notices
« on: May 25, 2011, 02:34:03 PM »
What can I do to avoid the below 3 php-notices (and their possible negative consequences)?


( ! ) Notice: Undefined variable: ADBversion in C:\wamp\www\wx3660\SWT\highlowavg3.php on line 98
Call Stack
#   Time   Memory   Function   Location
1   0.0004   677912   {main}( )   ..\wyhilowavg3.php:0
2   0.0211   2308112   include_once( 'C:\wamp\www\wx3660\SWT\highlowavg3.php' )   ..\wyhilowavg3.php:52



( ! ) Notice: Undefined variable: avgmonthrain1 in C:\wamp\www\wx3660\SWT\highlowavg3.php on line 139
Call Stack
#   Time   Memory   Function   Location
1   0.0004   677912   {main}( )   ..\wyhilowavg3.php:0
2   0.0211   2308112   include_once( 'C:\wamp\www\wx3660\SWT\highlowavg3.php' )   ..\wyhilowavg3.php:52



( ! ) Notice: Undefined variable: avsnowmay in C:\wamp\www\wx3660\SWT\highlowavg3.php on line 159
Call Stack
#   Time   Memory   Function   Location
1   0.0004   677912   {main}( )   ..\wyhilowavg3.php:0
2   0.0211   2308112   include_once( 'C:\wamp\www\wx3660\SWT\highlowavg3.php' )   ..\wyhilowavg3.php:52

In my php.ini I have "error_reporting = E_ALL & E~DEPRECATED"



Thoko
http://www.wx3660.dk/swt/wyhilowavg3.php



Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: PHP notices
« Reply #1 on: May 25, 2011, 09:08:12 PM »
Like I mention in the instruction (page 1 in red type):  The HiLowAverage script is based off Ken's newest version of his ajax script. The script is also based on Testtags.txt V1.05 or later (you can download a copy of the latest testtags version from this link: http://www.weather-watch.com/smf/index.php/topic,40861.0.html the file is attached to a message from Ken towards the end of the thread.) You have version 1.02.  Once you have all the needed tags those error messages will disappear.

Scott

What can I do to avoid the below 3 php-notices (and their possible negative consequences)?


( ! ) Notice: Undefined variable: ADBversion in C:\wamp\www\wx3660\SWT\highlowavg3.php on line 98
Call Stack
#   Time   Memory   Function   Location
1   0.0004   677912   {main}( )   ..\wyhilowavg3.php:0
2   0.0211   2308112   include_once( 'C:\wamp\www\wx3660\SWT\highlowavg3.php' )   ..\wyhilowavg3.php:52



( ! ) Notice: Undefined variable: avgmonthrain1 in C:\wamp\www\wx3660\SWT\highlowavg3.php on line 139
Call Stack
#   Time   Memory   Function   Location
1   0.0004   677912   {main}( )   ..\wyhilowavg3.php:0
2   0.0211   2308112   include_once( 'C:\wamp\www\wx3660\SWT\highlowavg3.php' )   ..\wyhilowavg3.php:52



( ! ) Notice: Undefined variable: avsnowmay in C:\wamp\www\wx3660\SWT\highlowavg3.php on line 159
Call Stack
#   Time   Memory   Function   Location
1   0.0004   677912   {main}( )   ..\wyhilowavg3.php:0
2   0.0211   2308112   include_once( 'C:\wamp\www\wx3660\SWT\highlowavg3.php' )   ..\wyhilowavg3.php:52

In my php.ini I have "error_reporting = E_ALL & E~DEPRECATED"



Thoko
http://www.wx3660.dk/swt/wyhilowavg3.php



www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline thoko

  • Member
  • *
  • Posts: 48
Re: PHP notices
« Reply #2 on: May 28, 2011, 04:04:55 PM »
At long last I have come at terms with the testtags versions and am pleased to see that Ken will include the newest version in his distributions. Let me then just hope that he will also include coming versions in his update-service.

I have now had testtags 1.06 running for a couple of days and can see that the original 27 errors still are fit for fight. http://www.wx3660.dk/swt/wyhilowavg3.php?lang=en

I have set useSNOW and use2ndH to false in my hilowavg3-settings - and want to keep them that way.




Thoko




Offline thoko

  • Member
  • *
  • Posts: 48
Re: PHP notices
« Reply #3 on: May 30, 2011, 11:35:02 AM »
Have now found that the following variables are not defined:

avgmonthrain1
avsnowjan
avsnowfeb
avsnowmar
avsnowmay
avsnowapr
avsnowmay
avsnowjun
avsnowjul
avsnowaug
avsnowsep
avsnowoct
avsnownov
avsnowdec

and there is an syntax error in this codeline:

print " <!--  $ADBversion -->\n";





Thoko

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: PHP notices
« Reply #4 on: May 30, 2011, 01:46:47 PM »
Since you also are not running my alternative dashboard that has all snow tags in them I have attached that to this message also.  The reason the last error is there is because you aren't running Ken's new script.  You may need to comment it out or delete it since it does not fit with the version you are using. 

Have now found that the following variables are not defined:

avgmonthrain1
avsnowjan
avsnowfeb
avsnowmar
avsnowmay
avsnowapr
avsnowmay
avsnowjun
avsnowjul
avsnowaug
avsnowsep
avsnowoct
avsnownov
avsnowdec

and there is an syntax error in this codeline:

print " <!--  $ADBversion -->\n";





Thoko
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline thoko

  • Member
  • *
  • Posts: 48
Re: PHP notices
« Reply #5 on: May 31, 2011, 02:31:30 PM »
Im not sure that I am aware of "Ken's new script"!!

Can I have both the original and the alternative (6) dashboards installed at the same time, and if - is there then anything that I need to "have in mind"?


Thoko
wx3360.dk

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9288
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PHP notices
« Reply #6 on: May 31, 2011, 05:49:45 PM »
Thoko,
You can just add those tags to the end of your testtags.txt file in the WD\webfiles directory (above the closing '?>' line, of course).  That should let you support the alternative dashboard until I can do a new match-merge into the template WD set :)

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: PHP notices
« Reply #7 on: May 31, 2011, 06:42:42 PM »
Yes both can run together fine, you just need more tags to run the alternative one because it shows more.

Scott

Im not sure that I am aware of "Ken's new script"!!

Can I have both the original and the alternative (6) dashboards installed at the same time, and if - is there then anything that I need to "have in mind"?


Thoko
wx3360.dk
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

 

anything