MyBB Community Forums

Full Version: errors after upgrading to 1.8.34
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just upgraded a Linux installation of 1.8.34 (using php-8.0.28 with PostgreSQL-12.x) from 1.8.33, and I'm seeing these errors every time someone tries to run a search:

Type: 2
File: inc/functions_search.php (Line no. 1166)
Message
Undefined array key "author"
Back Trace: #0  errorHandler->email_error(2, Undefined array key "author", inc/functions_search.php, 1166) called at [/var/www/html/dv-test0/inc/class_error.php:232]
#1  errorHandler->error(2, Undefined array key "author", inc/functions_search.php, 1166) called at [/var/www/html/dv-test0/inc/class_error.php:153]
#2  errorHandler->error_callback(2, Undefined array key "author", /var/www/html/dv-test0/inc/functions_search.php, 1166) called at [/var/www/html/dv-test0/inc/functions_search.php:1166]
#3  perform_search_mysql(Array ([keywords] => calico,[postthread] => 1,[tid] => 25892)) called at [/var/www/html/dv-test0/search.php:1719]

Type: 2
File: inc/functions_search.php (Line no. 1209)
Message
Undefined array key "postdate"
Back Trace: #0  errorHandler->email_error(2, Undefined array key "postdate", inc/functions_search.php, 1209) called at [/var/www/html/dv-test0/inc/class_error.php:232]
#1  errorHandler->error(2, Undefined array key "postdate", inc/functions_search.php, 1209) called at [/var/www/html/dv-test0/inc/class_error.php:153]
#2  errorHandler->error_callback(2, Undefined array key "postdate", /var/www/html/dv-test0/inc/functions_search.php, 1209) called at [/var/www/html/dv-test0/inc/functions_search.php:1209]
#3  perform_search_mysql(Array ([keywords] => calico,[postthread] => 1,[tid] => 25892)) called at [/var/www/html/dv-test0/search.php:1719]

Type: 2
File: inc/functions_search.php (Line no. 1227)
Message
Undefined array key "numreplies"
Back Trace: #0  errorHandler->email_error(2, Undefined array key "numreplies", inc/functions_search.php, 1227) called at [/var/www/html/dv-test0/inc/class_error.php:232]
#1  errorHandler->error(2, Undefined array key "numreplies", inc/functions_search.php, 1227) called at [/var/www/html/dv-test0/inc/class_error.php:153]
#2  errorHandler->error_callback(2, Undefined array key "numreplies", /var/www/html/dv-test0/inc/functions_search.php, 1227) called at [/var/www/html/dv-test0/inc/functions_search.php:1227]
#3  perform_search_mysql(Array ([keywords] => calico,[postthread] => 1,[tid] => 25892)) called at [/var/www/html/dv-test0/search.php:1719]

Type: 2
File: inc/functions_search.php (Line no. 1241)
Message
Undefined array key "threadprefix"
Back Trace: #0  errorHandler->email_error(2, Undefined array key "threadprefix", inc/functions_search.php, 1241) called at [/var/www/html/dv-test0/inc/class_error.php:232]
#1  errorHandler->error(2, Undefined array key "threadprefix", inc/functions_search.php, 1241) called at [/var/www/html/dv-test0/inc/class_error.php:153]
#2  errorHandler->error_callback(2, Undefined array key "threadprefix", /var/www/html/dv-test0/inc/functions_search.php, 1241) called at [/var/www/html/dv-test0/inc/functions_search.php:1241]
#3  perform_search_mysql(Array ([keywords] => calico,[postthread] => 1,[tid] => 25892)) called at [/var/www/html/dv-test0/search.php:1719]


Even with these errors, the search results do seem to work.

Seems strange that its referencing a mysql based function when I'm not using mysql (nor have I ever)?

Also something triggered this error later on:

Type: 2
File: showthread.php (Line no. 273)
Message
Trying to access array offset on value of type bool
Back Trace: #0  errorHandler->email_error(2, Trying to access array offset on value of type bool, showthread.php, 273) called at [/var/www/html/dv-test0/inc/class_error.php:232]
#1  errorHandler->error(2, Trying to access array offset on value of type bool, showthread.php, 273) called at [/var/www/html/dv-test0/inc/class_error.php:153]
#2  errorHandler->error_callback(2, Trying to access array offset on value of type bool, /var/www/html/dv-test0/showthread.php, 273) called at [/var/www/html/dv-test0/showthread.php:273]