Hello Everyone,
Doing a little website maintenance today, and I checked my php error_log file for the first time in a long time. I have a script throwing a series of errors out every time it's executed, and I was hoping the brains in this forum could help me correct it. Here's the error:
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 356
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 436
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 437
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 438
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 439
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 440
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 441
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 450
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 451
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 452
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 453
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 454
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 455
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 464
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 465
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 466
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 467
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 468
[04-Jan-2022 12:15:01 America/Los_Angeles] PHP Warning: Use of undefined constant imagesDir - assumed 'imagesDir' (this will throw an Error in a future version of PHP) in ***REDACTED***/wxaqirss.php on line 469
I've loaded fresh copies of the wxaqirss.php package obtained from the legacy scripts page on Mr. Ken True's website, but I just can't seem to make this pesky error go away. Line 45 sets $imagesDir to a directory of your choice, but the comments say it may or may not be required. I've tried uncommenting that line, but I still get the error. The script in question (located at
CamWX.com/wxaqirss.php) is attached here (in txt format). Could anyone offer any insight?
Many Thanks!