(2021-07-01, 01:32 PM)Devilshakerz Wrote: Were all the attached errors generated when running 1.8.27? Some of them suggest outdated (or modified) files.
deleted error.log , copied the changed files for 18.07 to the mybb directory and re ran upgrade.php. attached is the 'new' error log
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er
2021-07-03, 09:38 AM (This post was last modified: 2021-07-03, 09:39 AM by JimR. Edited 1 time in total.)
(2021-07-01, 02:49 PM)JimR Wrote:
(2021-07-01, 01:32 PM)Devilshakerz Wrote: Were all the attached errors generated when running 1.8.27? Some of them suggest outdated (or modified) files.
deleted error.log , copied the changed files for 18.07 to the mybb directory and re ran upgrade.php. attached is the 'new' error log
my bad added new version of the error log ..
and cli outputs from php 7.4 & php 8.07
php 7.4
php 8.0
as you can see php 7.4 processes the script correctly & php 8.0 does not, there are no errors written to the error log from the admin cp this is due (I guess) to the mybb object not being created line 176 being
$mybb->settings['errortypemedium'] = "none";
As a side note I disabled the xthreads plugin, which fails with a few errors, but for some reason mybb is still trying to load xthreads
hope this helps
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er
2021-07-05, 07:53 AM (This post was last modified: 2021-07-05, 11:11 AM by JimR. Edited 3 times in total.)
Just setting up a new copy of mybb using php 8.08
file install/index.php just gives a HTTP error 500
however from the command line it give the following errors, which are the same as in the admin cp from previous posts
PHP Warning: Attempt to read property "settings" on null in /var/www/html/mybb27/inc/class_error.php on line 174
PHP Warning: Trying to access array offset on value of type null in /var/www/html/mybb27/inc/class_error.php on line 174
PHP Fatal error: Uncaught Error: Attempt to modify property "settings" on null in /var/www/html/mybb27/inc/class_error.php:176
Stack trace:
#0 /var/www/html/mybb27/inc/class_core.php(264): errorHandler->error()
#1 /var/www/html/mybb27/install/index.php(28): MyBB->__construct()
#2 {main}
thrown in /var/www/html/mybb27/inc/class_error.php on line 176
running with php7.4 causes no issues at all, so I am guessing there is an issue there as this is a totally clean install.
UPDATE :-
found one bug in inc/class_core.php line 265 or thereabouts
the error 500 error is gone.
all the other errors appear to stem from plugins not defining variables so plugin coders may have to use a load of isset's or do a re write of their plugins
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er
These files are not designed to be run from the command line, MyBB expects to be run via a web server so REQUEST_METHOD would normally be set. What's the rationale for running on the command line?
2021-07-05, 12:21 PM (This post was last modified: 2021-07-05, 01:06 PM by JimR. Edited 1 time in total.)
(2021-07-05, 11:35 AM)Matt Wrote: These files are not designed to be run from the command line, MyBB expects to be run via a web server so REQUEST_METHOD would normally be set. What's the rationale for running on the command line?
well it allowed me to correct the isset issue in class_core.php without running from the command line I would have had no clue where to start looking as the browser is just returning the apache default error page
where I found the issue. adding the adjustments in the previous post I was able to install mybb using php 8.08 as the web browser no longer gave a 500 error and processed as expected
admin cp does not find correct lang string to fix change
this block at around line 1930 in admin/modules/config/settings.php
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er
2021-07-14, 08:44 AM (This post was last modified: 2021-07-14, 08:45 AM by JimR. Edited 1 time in total.)
found another usercp.php around line 4382 is_array should change to isset
if(isset($subscriptions))
another warning gone
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er
Even with the above changes, I still get, with PHP 8.0.8:
our copy of MyBB running on Attack of the Rockoids Community Forums (https://rockoids.com/forums) has experienced an error. Details of the error include:
---
Type: 2
File: index.php (Line no. 239)
Message
Undefined array key "hiddencount"
Back Trace: #0 errorHandler->email_error(2, Undefined array key "hiddencount", index.php, 239) called at [/home/rockoids/public_html/forums/inc/class_error.php:203]
#1 errorHandler->error(2, Undefined array key "hiddencount", index.php, 239) called at [/home/rockoids/public_html/forums/index.php:239]
(2021-07-19, 05:26 AM)Gene Steinberg Wrote: Even with the above changes, I still get, with PHP 8.0.8:
our copy of MyBB running on Attack of the Rockoids Community Forums (https://rockoids.com/forums) has experienced an error. Details of the error include:
---
Type: 2
File: index.php (Line no. 239)
Message
Undefined array key "hiddencount"
Back Trace: #0 errorHandler->email_error(2, Undefined array key "hiddencount", index.php, 239) called at [/home/rockoids/public_html/forums/inc/class_error.php:203]
#1 errorHandler->error(2, Undefined array key "hiddencount", index.php, 239) called at [/home/rockoids/public_html/forums/index.php:239]
Not in this land alone,
But be God's mercies known,
From shore to shore!
Lord make the nations see,
That men should brothers be,
And form one family,
The wide world ov'er