Author Topic: Apache: PHP Warnings / Notices  (Read 5039 times)

0 Members and 1 Guest are viewing this topic.

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4234
  • Last Login:February 13, 2024, 07:19:36 pm
  • I like C++
Apache: PHP Warnings / Notices
« on: July 10, 2019, 01:54:40 pm »
from Apache's error_log

Quote
PHP Notice:  Undefined index: create_time in /var/www/html/lib/tmphpfuncs.php on line 368 <- #317
This one's already been fixed. Noting that the other Undefined index notices may be similar case sensitivity issues.

Quote
PHP Warning:  file_get_contents(/var/www/html/shields/template_eure_wide.svg): failed to open stream: No such file or directory in /var/www/html/shields/shieldgen.php on line 331 <- #261
I think this already has a mention on the forum or GitHub. Not looking it up ATM. Edit: Fixed.

Quote
PHP Warning:  Division by zero in /var/www/html/hb/index.php on line 290
PHP Notice:  Undefined variable: inOptGroup in /var/www/html/lib/tmphpfuncs.php on line 157
PHP Notice:  Undefined variable: nobigheader in /var/www/html/lib/tmheader.php on line 4

PHP Notice:  Undefined index: abbrev in /var/www/html/user/system.php on line 323 366 <-- ca0f281
PHP Notice:  Undefined index: clinchedMileage in /var/www/html/stat.php on line 82
PHP Notice:  Undefined index: clinchedMileage in /var/www/html/stat.php on line 97
PHP Notice:  Undefined index: percentage in /var/www/html/stat.php on line 84
PHP Notice:  Undefined index: percentage in /var/www/html/stat.php on line 99
PHP Notice:  Undefined index: traveler in /var/www/html/stat.php on line 81

PHP Notice:  Undefined index: traveler in /var/www/html/lib/tmphpfuncs.php on line 382 <- 8f78502 09a176f
Wondering if some of these may be affecting the differences in table sorting that I'd previously written off as "Oh hey look, CentOS and FreeBSD are doing things differently."

Quote
PHP Notice:  Undefined index: status in /var/www/html/user/region.php on line 360 <- 4dfc9bd
Should this be 'level' instead?
« Last Edit: July 18, 2019, 12:12:45 pm by yakra »
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2727
  • Last Login:Yesterday at 10:00:41 pm
Re: Apache: PHP Warnings / Notices
« Reply #1 on: July 10, 2019, 03:01:27 pm »

Code: [Select]
PHP Notice:  Undefined index: status in /var/www/html/user/region.php on line 360Should this be 'level' instead?

Looks like it.  Want to make that fix with your current changes?

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4234
  • Last Login:February 13, 2024, 07:19:36 pm
  • I like C++
Re: Apache: PHP Warnings / Notices
« Reply #2 on: July 11, 2019, 10:17:19 am »
Tried it out on lab2. Still getting
PHP Notice:  Undefined index: level in /var/www/html/user/region.php on line 360
If I view source on either lab2 or noreaster, I see
<tr onClick="window.open('/user/system.php?u=yakra&sys=cantch&amp;rg=MB')" class="status-">

I'd ask if we need to CREATE INDEX, but OTOH, I've not seen any errors about pointName in waypoints.js.php on line 129.
Looking here; seeing what I can learn.
Edit: Got it!
« Last Edit: July 11, 2019, 11:14:20 am by yakra »
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca