2014-11-29, 08:02 PM
I upgraded MyBB from 1.6.13 to 1.8.3 and ran into this issue:
The following warnings occurred: Warning [2] Invalid argument supplied for foreach() - Line: 331 - File: global.php PHP 5.3.29 (Linux)
File Function/global.php
Line 331
errorHandler->error
File /index.php
Line 18
require_once
The root problems seems to be in the global.php, with this line:
Line 331: foreach($theme['disporder'] as $style_name => $order)
Suggestions on how to solve this problem would be greatly appreciated.
Two things I forgot to do before I installed the upgrade, one, I forgot to backup the files (although I did back up the database), and two, I forgot to disable the plugins. It would have been handy to have a reminder about disabling plugins on the upgrade instructions page (but then again, there was a reminder to backup my files and I still failed to do that... oops).
I do have copies of all my custom CSS and graphics saved, so I can restore/rebuild my custom themes, once I get the board working again. I am just hoping not to lose all my forum posts, and such.
MACJR of MACJR'S Mini-Verse² Forums
Additional information:
After deleting the contents of the plugin folder, I re-tried installing the upgrade.
This is the message I get (the same one I originally got from the first attempt to upgrade my board).
"Updating Database
Performing necessary upgrade queries...
MyBB SQL Error
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:1054 - Unknown column 'canusecustomtools' in 'mybb_moderators'Query:ALTER TABLE mybb_moderators ADD canmanageannouncements tinyint(1) NOT NULL default '0' AFTER canusecustomtools
Please contact the MyBB Group for technical support."
My PHP skills are limited, so a suggestion on how to fix this would be of great help.
Thank you.
MACJR
The following warnings occurred: Warning [2] Invalid argument supplied for foreach() - Line: 331 - File: global.php PHP 5.3.29 (Linux)
File Function/global.php
Line 331
errorHandler->error
File /index.php
Line 18
require_once
The root problems seems to be in the global.php, with this line:
Line 331: foreach($theme['disporder'] as $style_name => $order)
Suggestions on how to solve this problem would be greatly appreciated.
Two things I forgot to do before I installed the upgrade, one, I forgot to backup the files (although I did back up the database), and two, I forgot to disable the plugins. It would have been handy to have a reminder about disabling plugins on the upgrade instructions page (but then again, there was a reminder to backup my files and I still failed to do that... oops).
I do have copies of all my custom CSS and graphics saved, so I can restore/rebuild my custom themes, once I get the board working again. I am just hoping not to lose all my forum posts, and such.
MACJR of MACJR'S Mini-Verse² Forums
Additional information:
After deleting the contents of the plugin folder, I re-tried installing the upgrade.
This is the message I get (the same one I originally got from the first attempt to upgrade my board).
"Updating Database
Performing necessary upgrade queries...
MyBB SQL Error
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:1054 - Unknown column 'canusecustomtools' in 'mybb_moderators'Query:ALTER TABLE mybb_moderators ADD canmanageannouncements tinyint(1) NOT NULL default '0' AFTER canusecustomtools
Please contact the MyBB Group for technical support."
My PHP skills are limited, so a suggestion on how to fix this would be of great help.
Thank you.
MACJR