PHP warning about array keys
-
I’ve noticed a warning in the error_log – this one tripped about 15000 times in the past 9 hours and goes back possibly to the update I did on May 28, or further.
[10-Jul-2024 02:56:17 UTC] PHP Warning: Undefined array key 4039 in /home/abcdef/public_html/wp-content/plugins/404-solution/includes/SpellChecker.php on line 811
The key changes but everything else is the same.
WP 6.4.x
PHP 8.1 EA
404 Solutions 2.35.9line 811 is: if (is_array($minDistances[$minDist])) {
I went to the plugin’s debug log and it threw a critical error.
“GET /wp-admin/options-general.php?page=abj404_solution&subpage=abj404_debugfile HTTP/2” 500I switched to PHP 8.0. & 7.4 and the 404 Solutions debug page is blank.
I found the log here https://www.<<>>/wp-content/uploads/temp_abj404_solution/abj404_debug.txt
But despite edit timestamp being today, the last row is from November 2023:
2023-11-03 11:41:47 AEDT (INFO): deleteOldRedirectsCron. Old captured URLs removed: 22, Old automatic redirects removed: 0, Old manual redirects removed: 0, Old log lines removed: 0, New log size: 100.03MB, Duplicate rows deleted: 0, Debug file size limited: false, Admin email notification option turned off., Permlink cache rows updated: 0, User initiated: falseThanks for you plugin, it’s been very useful. Any idea about this one?
- You must be logged in to reply to this topic.