Jump to the post that solved this thread.
Not Solved mybb and PhP 8.0
#1
Not Solved
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
Reply
#2
Not Solved
Hi Mdawg

My provider is Infomaniak.ch.

I've installed mybb_1829.zip (from https://resources.mybb.com/downloads/mybb_1829.zip) 2 days ago, with french translation and roundo theme. Any plugin.

My server run in PHP 7.4 but my provider offers the possibilitiy to change the PHP version in one click.

I've tried  PHP 8.0 few minutes ago and i don't have any problem. Forum and admin runs well.

My DB is MariaDB : 10.4.
Reply
#3
Not Solved
Correct, MyBB does not currently support PHP 8.0

https://docs.mybb.com/1.8/install/requirements/

https://github.com/mybb/mybb/issues/4138
-Paul H.

Cogisne lingua latina?
Reply
#4
Not Solved
Hi, any update on PHP 8 support? Currently running MyBB v1.8.31 - thanks
Reply
#5
Not Solved
MyBB supports 8.0, I believe there are still some fixes for 8.1, but plugins and themes will be hit and miss.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#6
Not Solved
(2022-11-19, 01:46 PM)sidjames Wrote: Hi, any update on PHP 8 support? Currently  running MyBB v1.8.31 - thanks

Thanks. 

I tried to upgrade to php 8 but got a few errors from what looks like core files. I might be wrong though:

Warning [2] Undefined variable $avatarep_script - Line: 10 - File: global.php(958) : eval()'d code PHP 8.0.25 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(958) : eval()'d code 10 errorHandler->error_callback
/global.php 958 eval
/index.php 18 require_once
Warning [2] Undefined variable $unreadreports - Line: 54 - File: global.php(961) : eval()'d code PHP 8.0.25 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 54 errorHandler->error_callback
Reply
#7
Not Solved
I have a clean installation of 1.8.31 with php 8.1.12

All wors good

But i have not tested any update yet.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
#8
Not Solved
(2022-11-19, 02:37 PM)sidjames Wrote:
(2022-11-19, 01:46 PM)sidjames Wrote: Hi, any update on PHP 8 support? Currently  running MyBB v1.8.31 - thanks

Thanks. 

I tried to upgrade to php 8 but got a few errors from what looks like core files. I might be wrong though:

Warning [2] Undefined variable $avatarep_script - Line: 10 - File: global.php(958) : eval()'d code PHP 8.0.25 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(958) : eval()'d code 10 errorHandler->error_callback
/global.php 958 eval
/index.php 18 require_once
Warning [2] Undefined variable $unreadreports - Line: 54 - File: global.php(961) : eval()'d code PHP 8.0.25 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 54 errorHandler->error_callback

$avatarep_script is from a plugin, $unreadreports is from an outdated theme as the variable was removed but is still in the template.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#9
Not Solved
new registrations using PHP email authentication fails with any PHP version greater than 7.4
Tested today on version 1832 of MyBB
Reply
#10
Not Solved
What is the error you're seeing? I don't believe we've had any other issues with this, and the PHP mail() function is just a core PHP feature, there shouldn't be anything different there.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 2 Guest(s)