2024-01-24, 11:43 PM
Hello,
I also have errors on my forum when I upgrade to PhP 8.
Here are the errors displayed at the top of the forum:
MyBB version: 1.8.37
Php version was 7, I've tried to update to 8.0, 8.2, 8.3... same errors.
Forum URL: https://mwrenaissance.info/
I've seen on the forum that this may be caused by old templates, but I'm not very familiar with PhP, templates, etc... How can I fix this? (for now, I reverted to PhP 7)
If I am not logged into the website and using Edge, I see fewer errors:
Thank you for any help.
OK, I found a few related posts, and while I don't understand anything to PhP and forum templates I deleted $unreadreports in the Header of the template, then delete $ps_header_index and $dvz_shoutbox within index.php... and it seems to work. At least there is no more errors diplayed.
But I got a lot of errors with the "BAM Announcements Manager 2.0" plugin, which does not work any more.
Is there a way to fix this? Or do I have to wait for a plugin update? Switch to another plugin?
Thank you!
It is possible to fix this?
New error discovered:
When opening a forum thread, I get the following error:
Where is $codebutquick? How can I delete it?
I also have a lot of errors like this one:
I also have errors on my forum when I upgrade to PhP 8.
Here are the errors displayed at the top of the forum:
Quote: The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 50 - File: global.php(961) : eval()'d code PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 50 errorHandler->error_callback
/global.php 961 eval
/index.php 18 require_once
Warning [2] Undefined variable $ps_header_index - Line: 16 - File: index.php(468) : eval()'d code PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/index.php(468) : eval()'d code 16 errorHandler->error_callback
/index.php 468 eval
Warning [2] Undefined variable $dvz_shoutbox - Line: 17 - File: index.php(468) : eval()'d code PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/index.php(468) : eval()'d code 17 errorHandler->error_callback
/index.php 468
MyBB version: 1.8.37
Php version was 7, I've tried to update to 8.0, 8.2, 8.3... same errors.
Forum URL: https://mwrenaissance.info/
I've seen on the forum that this may be caused by old templates, but I'm not very familiar with PhP, templates, etc... How can I fix this? (for now, I reverted to PhP 7)
If I am not logged into the website and using Edge, I see fewer errors:
Quote:Warning [2] Undefined variable $unreadreports - Line: 50 - File: global.php(961) : eval()'d code PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 50 errorHandler->error_callback
/global.php 961 eval
/index.php 18 require_once
Thank you for any help.
OK, I found a few related posts, and while I don't understand anything to PhP and forum templates I deleted $unreadreports in the Header of the template, then delete $ps_header_index and $dvz_shoutbox within index.php... and it seems to work. At least there is no more errors diplayed.
But I got a lot of errors with the "BAM Announcements Manager 2.0" plugin, which does not work any more.
Is there a way to fix this? Or do I have to wait for a plugin update? Switch to another plugin?
Thank you!
Quote:Warning [2] Undefined variable $activatedImage - Line: 1010 - File: admin/modules/config/bam.php PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/modules/config/bam.php 1010 errorHandler->error_callback
/admin/modules/config/bam.php 848 generate_manage_page
/admin/index.php 830 require
Warning [2] Undefined array key "action" - Line: 1096 - File: admin/modules/config/bam.php PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/modules/config/bam.php 1096 errorHandler->error_callback
/admin/modules/config/bam.php 1040 generate_announcement_controls
/admin/modules/config/bam.php 848 generate_manage_page
/admin/index.php 830 require
Warning [2] Undefined array key "action" - Line: 1107 - File: admin/modules/config/bam.php PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/modules/config/bam.php 1107 errorHandler->error_callback
/admin/modules/config/bam.php 1040 generate_announcement_controls
/admin/modules/config/bam.php 848 generate_manage_page
/admin/index.php 830 require
Warning [2] Undefined array key "action" - Line: 1119 - File: admin/modules/config/bam.php PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/modules/config/bam.php 1119 errorHandler->error_callback
/admin/modules/config/bam.php 1040 generate_announcement_controls
/admin/modules/config/bam.php 848 generate_manage_page
/admin/index.php 830 require
Warning [2] Undefined variable $count_deactivated - Line: 1050 - File: admin/modules/config/bam.php PHP 8.3.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/admin/modules/config/bam.php 1050 errorHandler->error_callback
/admin/modules/config/bam.php 848 generate_manage_page
/admin/index.php 830 require
It is possible to fix this?
New error discovered:
When opening a forum thread, I get the following error:
Quote:The following warnings occurred:
Warning [2] Undefined variable $codebutquick - Line: 31 - File: showthread.php(1308) : eval()'d code PHP 8.3.1 (Linux)
Where is $codebutquick? How can I delete it?
I also have a lot of errors like this one:
Quote:Warning [2] Undefined variable $lastposttime - Line: 33 - File: forumdisplay.php(1393) : eval()'d code PHP 8.3.1 (Linux)