Solved: 2 Months, 5 Days ago Error messages after upgrading from PHP 7.4 to 8.3
#1
Solved: 2 Months, 5 Days ago
I upgraded PHP on my Web server from 7.4 to 8.3.3. I solved some of the PHP errors showing in MyBB forum after the update by enabling some missing PHP extensions. I also deactivated the outdated plugin "Thank You/Like System" v3.3.6.

But there are still error messages remaining when using themes (other than the default "Light"), languages (other than the default English), ahowing guest users and announcements pages.

I sent the error messages to Claude. It suggested to make fixes in some files. But I guess these files have already been fixed and that I simply need to update them?

My current setup:
- MyBB Version 1.8.40
- PHP Version 8.3.33
- SQL Engine MySQLi 11.4.13
- Server Software LiteSpeed

I used the MyBB tool "Check Templates" tool. It reported no issue.

Here are the errors as summarized by Claude:

Quote:1. Guest users — Undefined array key "mybbtheme" in inc/plugins/mmybb18.php

2. Dark theme — Undefined property: MyLanguage::$forumteam

3. Non-English languages — confirm_title, expcol_collapse, expcol_expand

Your non-English language pack's global.lang.php is missing these lines (an outdated/incomplete translation that hasn't been synced with newer core additions).

4. Announcement page — Trying to access array offset on null in functions_post.php line 902

I'm not very familiar with the MyBB configuration and updates. Please guide me on this.
Reply
#2
Solved: 2 Months, 5 Days ago
That's interesting about line 902 of functions_post.php - I looked at mine and saw that I had wrapped that in:
    if($forum) { // PHP 8 fix because global announcement has no forum

Anyway, that was my quick hack on that one - that I forgot about.  (That was just a warning - right? Although some PHP 8 warnings have pointed me at actual bugs in plugins.)

On some of the other ones it looks like you have some themes, language packs, and plugins to update.  It sounds like you said they are available - which is good.  Sometimes the third parties working on extensions don't work on the same schedule as the MyBB team.
Reply
#3
Solved: 2 Months, 5 Days ago
Thanks for the reply, Dave.

> It sounds like you said they are available - which is good.

I did not say they were available. Only that I guessed they would be. I'm a little lost on how to find these updates and install them,

I started with the language files. I downloaded current packs and I had issues. I created a separate thread specific on this.
https://community.mybb.com/thread-245850.html

I'll look at the other issues later.
Reply
#4
Solved: 2 Months, 5 Days ago
I can tell you my themes and plugins but I don't know what you have. Two of my extensions are my own, and three others are community extensions which I have changed and/or are nursing along. One of them is originally from myBB 1.6 days and when I switched to PHP 8, new warnings from PHP 8's increased formality pointed me to two bugs that had been there for years.

This tends to be the nature of third-party extensions everywhere. If you're going to depend on them, you may someday be updating them.
Reply
#5
Solved: 2 Months, 5 Days ago
In this other thread, Dave gave me the quick fix: "Error Type Medium" configuration.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)