2023-04-01, 11:42 AM (This post was last modified: 2023-04-01, 11:43 AM by HLFadmin. Edited 1 time in total.)
(2023-03-31, 11:29 PM)netllama Wrote: still seeing these problems which are blocking an upgrade to a supported php version.
Many of what used to be Notices in PHP 7 are now Warnings in PHP 8.
Some Warnings in 7 are now Errors in 8.
Errors in 7 are still Errors in 8.
Generally speaking.
Errors stop execution, Warnings generally continue with no deleterious effects.
There are no reported Errors which stop MyBB running on my forum, either core or my simple list of plugins.
There are several options for resolution.
1. Log all warnings, locate code and fix with core edits. This is beyond the scope of most MyBB forum admins.
2. Wait for code fixes in 1.8.34, meanwhile log errors only.
3. Stay on unsupported PHP 7.
You may be able to control error reporting with MultiPHP Manager to disable warnings and notices but continue reporting errors. Your php.ini can include
error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE
See this thread for more details. https://community.mybb.com/thread-237799.html
The OP's problem was settings overridden by a plugin, but information in the thread may be helpful for you.
Regardless, I do not recommend sending emails when warnings occur. You will be flooded with them with PHP 8.
2023-04-01, 01:20 PM (This post was last modified: 2023-04-01, 01:59 PM by Matt. Edited 3 times in total.)
The reason to email them is because some occur during form submission so would not be easily visible because the page redirects away, or they may be generated by others users, so emailing them allows you to see errors you may otherwise have missed. Once you’ve gathered all the errors that are happening, you’d be able to disable emailing them.
Edit: just realised logging them to the error log will cover that
Not all, but at least 2 domains block emails from my server domain, and still not resolved. Email flood prompting block started when I switched to PHP8.
(2023-03-31, 11:29 PM)netllama Wrote: still seeing these problems which are blocking an upgrade to a supported php version.
Many of what used to be Notices in PHP 7 are now Warnings in PHP 8.
Some Warnings in 7 are now Errors in 8.
Errors in 7 are still Errors in 8.
Generally speaking.
Errors stop execution, Warnings generally continue with no deleterious effects.
There are no reported Errors which stop MyBB running on my forum, either core or my simple list of plugins.
There are several options for resolution.
1. Log all warnings, locate code and fix with core edits. This is beyond the scope of most MyBB forum admins.
2. Wait for code fixes in 1.8.34, meanwhile log errors only.
3. Stay on unsupported PHP 7.
You may be able to control error reporting with MultiPHP Manager to disable warnings and notices but continue reporting errors. Your php.ini can include
error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE
See this thread for more details. https://community.mybb.com/thread-237799.html
The OP's problem was settings overridden by a plugin, but information in the thread may be helpful for you.
Regardless, I do not recommend sending emails when warnings occur. You will be flooded with them with PHP 8.
Are you saying that all the youtube related spew that I reported earlier are not errors? An undefined array key seems like an error to me.