MyBB Community Forums

Full Version: errors while upgrading from 1.8.33 to 1.8.34
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm running mybb-1.8.34 on a Linux system with php-8.0.28.  While performing the upgrade from 1.8.33 to 1.8.34, I saw the following errors:

Type: 2
File: install/upgrade.php (Line no. 642)
Message
Undefined array key "encoding"
Back Trace: #0  errorHandler->email_error(2, Undefined array key "encoding", install/upgrade.php, 642) called at [/var/www/html/dv-test0/inc/class_error.php:232]
#1  errorHandler->error(2, Undefined array key "encoding", install/upgrade.php, 642) called at [/var/www/html/dv-test0/inc/class_error.php:153]
#2  errorHandler->error_callback(2, Undefined array key "encoding", /var/www/html/dv-test0/install/upgrade.php, 642) called at [/var/www/html/dv-test0/install/upgrade.php:642]
#3  upgradedone() called at [/var/www/html/dv-test0/install/upgrade.php:405]


Type: 2
File: install/upgrade.php (Line no. 674)
Message
Undefined variable $written
Back Trace: #0  errorHandler->email_error(2, Undefined variable $written, install/upgrade.php, 674) called at [/var/www/html/dv-test0/inc/class_error.php:232]
#1  errorHandler->error(2, Undefined variable $written, install/upgrade.php, 674) called at [/var/www/html/dv-test0/inc/class_error.php:153]
#2  errorHandler->error_callback(2, Undefined variable $written, /var/www/html/dv-test0/install/upgrade.php, 674) called at [/var/www/html/dv-test0/install/upgrade.php:674]
#3  upgradedone() called at [/var/www/html/dv-test0/install/upgrade.php:405]

The upgrade appears to have completed successfully, but I'm not sure what impact, if any this error caused?
Yes, it should be fine - looks like a minor PHP 8 issue.
There are several more while running upgrade.php;

1# This is probably due to https://mybb.com/version_check.php being under CF JS protection.
  • Trying to access array offset on value of type null - Line: 35 - File: \inc\tasks\versioncheck.php
  • Trying to access array offset on value of type bool - Line: 36 - File: \inc\tasks\versioncheck.php

2# This comes from problem #1
  • Trying to access array offset on value of type null - Line: 795 - File: \install\upgrade.php