Not Solved 1.8.39 -> 1.8.40 upgrade spews Undefined variable errors
#1
Not Solved
I just upgraded from 1.8.39 to 1.8.40.  During the upgrade process, there were a  bunch of errors:

Type: 2
File: install/upgrade.php (Line no. 1055)
Message
Undefined array key "allowposticons"
Back Trace: #0 /var/www/html/dv-test0/inc/class_error.php(243): errorHandler->email_error(2, 'Undefined array...', 'install/upgrade...', 1055)
#1 /var/www/html/dv-test0/inc/class_error.php(157): errorHandler->error(2, 'Undefined array...', 'install/upgrade...', 1055)
#2 /var/www/html/dv-test0/install/upgrade.php(1055): errorHandler->error_callback(2, 'Undefined array...', '/var/www/html/d...', 1055)
#3 /var/www/html/dv-test0/install/upgrade.php(615): sync_settings(0)
#4 /var/www/html/dv-test0/install/upgrade.php(444): buildsettings()

Type: 2
File: install/upgrade.php (Line no. 1055)
Message
Undefined array key "cfturnstilesize"
Back Trace: #0 /var/www/html/dv-test0/inc/class_error.php(243): errorHandler->email_error(2, 'Undefined array...', 'install/upgrade...', 1055)
#1 /var/www/html/dv-test0/inc/class_error.php(157): errorHandler->error(2, 'Undefined array...', 'install/upgrade...', 1055)
#2 /var/www/html/dv-test0/install/upgrade.php(1055): errorHandler->error_callback(2, 'Undefined array...', '/var/www/html/d...', 1055)
#3 /var/www/html/dv-test0/install/upgrade.php(615): sync_settings(0)
#4 /var/www/html/dv-test0/install/upgrade.php(444): buildsettings()

Type: 2
File: install/upgrade.php (Line no. 1055)
Message
Undefined array key "cfturnstileprivatekey"
Back Trace: #0 /var/www/html/dv-test0/inc/class_error.php(243): errorHandler->email_error(2, 'Undefined array...', 'install/upgrade...', 1055)
#1 /var/www/html/dv-test0/inc/class_error.php(157): errorHandler->error(2, 'Undefined array...', 'install/upgrade...', 1055)
#2 /var/www/html/dv-test0/install/upgrade.php(1055): errorHandler->error_callback(2, 'Undefined array...', '/var/www/html/d...', 1055)
#3 /var/www/html/dv-test0/install/upgrade.php(615): sync_settings(0)
#4 /var/www/html/dv-test0/install/upgrade.php(444): buildsettings()

Type: 2
File: install/upgrade.php (Line no. 1055)
Message
Undefined array key "cfturnstilepublickey"
Back Trace: #0 /var/www/html/dv-test0/inc/class_error.php(243): errorHandler->email_error(2, 'Undefined array...', 'install/upgrade...', 1055)
#1 /var/www/html/dv-test0/inc/class_error.php(157): errorHandler->error(2, 'Undefined array...', 'install/upgrade...', 1055)
#2 /var/www/html/dv-test0/install/upgrade.php(1055): errorHandler->error_callback(2, 'Undefined array...', '/var/www/html/d...', 1055)
#3 /var/www/html/dv-test0/install/upgrade.php(615): sync_settings(0)
#4 /var/www/html/dv-test0/install/upgrade.php(444): buildsettings()

Type: 2
File: install/upgrade.php (Line no. 592)
Message
Undefined variable $newcount
Back Trace: #0 /var/www/html/dv-test0/inc/class_error.php(243): errorHandler->email_error(2, 'Undefined varia...', 'install/upgrade...', 592)
#1 /var/www/html/dv-test0/inc/class_error.php(157): errorHandler->error(2, 'Undefined varia...', 'install/upgrade...', 592)
#2 /var/www/html/dv-test0/install/upgrade.php(592): errorHandler->error_callback(2, 'Undefined varia...', '/var/www/html/d...', 592)
#3 /var/www/html/dv-test0/install/upgrade.php(757): upgradethemes()
#4 /var/www/html/dv-test0/install/upgrade.php(444): whatsnext()

The upgrade seems to have completed successfully.  

Do I need to be concerned about these undefined variabels?
Reply
#2
Not Solved
Hi there got a few also, i don't think so, we need to wait for someone with more experience Sad
Reply
#3
Not Solved
It appears that data exchange occurred during the upgrade process.

What is your website address?
MyBB Türkçe Destek Sitesi: https://mybb.tr

[Image: mysksxl.gif]

Please! Do not request support via private message unless I give permission. If you want paid consulting, you can contact us.
Reply
#4
Not Solved
The three first messages are caused by a missing isset check in the settings upgrade procedure:
if(!$settings[$setting['attributes']['name']] || $redo == 2)

Those warnings are triggered by the new settings added in 1.8.40. They should not prevent the settings from being inserted, but please make sure those settings exist in your installation after the upgrade (setting to enable post icons, and settings for CF Turnstile).
Reply
#5
Not Solved
(2026-05-30, 12:14 PM)arcalys Wrote: The three first messages are caused by a missing isset check in the settings upgrade procedure:
if(!$settings[$setting['attributes']['name']] || $redo == 2)

Those warnings are triggered by the new settings added in 1.8.40. They should not prevent the settings from being inserted, but please make sure those settings exist in your installation after the upgrade (setting to enable post icons, and settings for CF Turnstile).

Where do I find these settings ?
Reply
#6
Not Solved
(2026-05-30, 01:55 PM)netllama Wrote:
(2026-05-30, 12:14 PM)arcalys Wrote: The three first messages are caused by a missing isset check in the settings upgrade procedure:
if(!$settings[$setting['attributes']['name']] || $redo == 2)

Those warnings are triggered by the new settings added in 1.8.40. They should not prevent the settings from being inserted, but please make sure those settings exist in your installation after the upgrade (setting to enable post icons, and settings for CF Turnstile).

Where do I find these settings ?

"Allow Post Icons" in Settings > Posting and CF Turnstile in Settings > General configuration after selecting Turnstile as a captcha option.
Reply
#7
Not Solved
(2026-05-31, 04:22 PM)arcalys Wrote:
(2026-05-30, 01:55 PM)netllama Wrote:
(2026-05-30, 12:14 PM)arcalys Wrote: The three first messages are caused by a missing isset check in the settings upgrade procedure:
if(!$settings[$setting['attributes']['name']] || $redo == 2)

Those warnings are triggered by the new settings added in 1.8.40. They should not prevent the settings from being inserted, but please make sure those settings exist in your installation after the upgrade (setting to enable post icons, and settings for CF Turnstile).

Where do I find these settings ?

"Allow Post Icons" in Settings > Posting and CF Turnstile in Settings > General configuration after selecting Turnstile as a captcha option.

Both do exist on my installation.
Reply
#8
Not Solved
That's good, we'll fix the warnings upstream but nothing to worry about in your case Smile
Reply
#9
Not Solved
Great, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)