Hi there,
after upgrading to php8, I found that 404 pages are not displayed anymore: I'd get a 500 error page instead.
I found that the issue is in /templates/ja_morgan/error.php, line 33:
<?php if($theme && is_file(T3_TEMPLATE_PATH . '/css/themes/' . $theme . '/error.css')):?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/themes/<?php echo $theme ?>/error.css" type="text/css" />
<?php endif; ?>
The thing is, the 404 pages work as they should if in template style I set Theme = default. For any other style I get error 500 instead of a 400 page.
Moreover: as you can see the line 34 tries to fetch an error.css file that is not there, for sure not in my template (ja_morgan).
The point is, php8 is less forgiving and throws errors for bugs that before were tolerated.
I solved the issue for now commenting out the php code in those 3 lines, but I think you guys will know how better update t3.
Have a good day.