Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

WU-History-inc.php error in Apache Log.

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
ConligWX
Posts: 1572
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

WU-History-inc.php error in Apache Log.

Post by ConligWX »

Hi there

still going through some apache errors sinc eth ephp 7.2.2 upgrade and have com across this:

echo '<form method="post" action="' . $SITE['PHPSELF'] . '" />';

Code: Select all

[Sun Mar 04 18:59:06.535442 2018] [php7:notice] [pid 13629:tid 140681175590656] [client 81.104.71.6:56888] PHP Notice:  Undefined index: PHPSELF in /xxxxx/htdocs/weather/WU-History-inc.php on line 388, referer: https://www.conligwx.org/davconvp2CW.php
the line 388refer to this line:

Code: Select all

line 388 -    echo '<form method="post" action="' . $SITE['PHPSELF'] . '" />';
what is value meant to be?

ie

$SITE['PHPSELF'] = '?????';
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: WU-History-inc.php error in Apache Log.

Post by saratogaWX »

Yes, a leftover old error.

Replace $SITE['PHPSELF'] with $_SERVER['PHP_SELF'] and that should fix it.
User avatar
ConligWX
Posts: 1572
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: WU-History-inc.php error in Apache Log.

Post by ConligWX »

saratogaWX wrote:Yes, a leftover old error.

Replace $SITE['PHPSELF'] with $_SERVER['PHP_SELF'] and that should fix it.
Thanks for the update!
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
Post Reply