2021-11-27, 07:13 PM
As far as I may see, mybb even 1.8.29 is incompatible with PhP 8
I tried to upgrade to it and the top of my forums showed all sorts of error codes, and then the sites won't even load and it seems to crash my entire server too. The errors refer to google_seo and the template I am using.
The following warnings occurred:
Warning [2] Undefined array key "extra" - Line: 100 - File: inc/plugins/google_seo/url.php PHP 8.0.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/google_seo/url.php 100 errorHandler->error_callback
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 235 pluginSystem->load
/global.php 20 require_once
/index.php 18 require_once
Warning [2] Undefined variable $location - Line: 1250 - File: inc/plugins/google_seo/url.php PHP 8.0.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/google_seo/url.php 1250 errorHandler->error_callback
/inc/plugins/google_seo/url.php 174 google_seo_url_hook
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 235 pluginSystem->load
/global.php 20 require_once
/index.php 18 require_once
I disabled the Google_seo plugin, and still got these errors:
Warning [2] Undefined array key 2 - Line: 37 - File: admin/styles/Leaf/style.php PHP 8.0.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/styles/Leaf/style.php 37 errorHandler->error_callback
/admin/inc/class_page.php 156 Page->_generate_breadcrumb
/admin/modules/home/index.php 155 DefaultPage->output_header
/admin/index.php 825 require
Warning [2] Undefined array key 2 - Line: 34 - File: admin/styles/Leaf/style.php PHP 8.0.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/styles/Leaf/style.php 34 errorHandler->error_callback
/admin/inc/class_page.php 156 Page->_generate_breadcrumb
/admin/modules/home/index.php 155 DefaultPage->output_header
/admin/index.php 825 require
and even with Google_SEO deactivated still the site will not load at all under PhP 8.0
I tried to upgrade to it and the top of my forums showed all sorts of error codes, and then the sites won't even load and it seems to crash my entire server too. The errors refer to google_seo and the template I am using.
The following warnings occurred:
Warning [2] Undefined array key "extra" - Line: 100 - File: inc/plugins/google_seo/url.php PHP 8.0.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/google_seo/url.php 100 errorHandler->error_callback
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 235 pluginSystem->load
/global.php 20 require_once
/index.php 18 require_once
Warning [2] Undefined variable $location - Line: 1250 - File: inc/plugins/google_seo/url.php PHP 8.0.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/google_seo/url.php 1250 errorHandler->error_callback
/inc/plugins/google_seo/url.php 174 google_seo_url_hook
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 235 pluginSystem->load
/global.php 20 require_once
/index.php 18 require_once
I disabled the Google_seo plugin, and still got these errors:
Warning [2] Undefined array key 2 - Line: 37 - File: admin/styles/Leaf/style.php PHP 8.0.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/styles/Leaf/style.php 37 errorHandler->error_callback
/admin/inc/class_page.php 156 Page->_generate_breadcrumb
/admin/modules/home/index.php 155 DefaultPage->output_header
/admin/index.php 825 require
Warning [2] Undefined array key 2 - Line: 34 - File: admin/styles/Leaf/style.php PHP 8.0.13 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/styles/Leaf/style.php 34 errorHandler->error_callback
/admin/inc/class_page.php 156 Page->_generate_breadcrumb
/admin/modules/home/index.php 155 DefaultPage->output_header
/admin/index.php 825 require
and even with Google_SEO deactivated still the site will not load at all under PhP 8.0