[Pushed] Mybb 1.8.22 Board Closing itself
#7
Thanks,

I had since deactivated the "Tables Check" task that is linked to checktables.php script. The board has not closed since.
So something certainly going wrong in there.

I managed to get hold of the apache error logs and found lines:
PHP Fatal error: Uncaught Error: [] operator not supported for strings in /home/saminaox/public_html/inc/tasks/checktables.php:61

With line 61 refering to: $repaired[] = $table['Table'];

Im running PHP 7.3.20 and apparently since PHP 7.1.0
The empty index operator (e.g. $str[] = $x) is not supported for strings anymore, and throws a fatal error instead of silently converting to array.
So that means that you need to say that it is an array $myString = array();
Prior to PHP 7.1.0 , PHP converted a [] to array() silently, and now not anymore.

I suggest MyBB needs to update line 31 to initialise the array as follows:
i.e. change
$repaired = "";
to
$repaired = array();
Reply


Messages In This Thread
Mybb 1.8.22 Board Closing itself - by DoC_001 - 2020-07-15, 10:31 AM
RE: Mybb 1.8.22 Board Closing itself - by .m. - 2020-07-15, 10:53 AM
RE: Mybb 1.8.22 Board Closing itself - by DoC_001 - 2020-07-15, 12:55 PM
RE: Mybb 1.8.22 Board Closing itself - by DoC_001 - 2020-07-17, 06:44 PM
RE: Mybb 1.8.22 Board Closing itself - by noyle - 2020-07-19, 05:58 AM
RE: Mybb 1.8.22 Board Closing itself - by Omar G. - 2020-07-19, 08:29 AM
RE: Mybb 1.8.22 Board Closing itself - by DoC_001 - 2020-07-22, 10:39 AM
RE: Mybb 1.8.22 Board Closing itself - by .m. - 2020-07-22, 10:54 AM
RE: Mybb 1.8.22 Board Closing itself - by Omar G. - 2020-07-22, 12:27 PM
RE: Mybb 1.8.22 Board Closing itself - by Ben - 2021-06-02, 08:43 AM
RE: Mybb 1.8.22 Board Closing itself - by Omar G. - 2021-06-02, 03:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)