3.3.8 Images as file attachment not displayed to PHP 8.0/8.1

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
User avatar
migoe
Registered User
Posts: 10
Joined: Tue Sep 25, 2018 2:47 pm
Location: Rothenburg ob der Tauber
Name: Michael

3.3.8 Images as file attachment not displayed to PHP 8.0/8.1

Post by migoe »

Disclaimer: I am native German speaker, this post is translated by Google

For days now I've been looking for a solution to the problem that images that are embedded as file attachments in a post are no longer displayed in the post itself when I switch the server to PHP version(s) 8.0 / 8.1. About 4 weeks ago I did this on my site, but I didn't notice at first (on due to vacation/summer doldrums) that in all posts in which pictures were included as attachments, these pictures are no longer displayed, only the Filename of the image with a link, but it leads to an error message...

This is how it looks correctly with version 7.4: [ external image ]
This is how it looks with version 8.0/8.1: [ external image broken ]

The attachments are correctly filed in the correct folder and entered correctly in the database. I checked that. It was only after days of searching here and on phpbb.com this afternoon that I came up with the idea of ​​changing the PHP version, and voila, in fact, immediately after clearing the cache the images attached to posts were displayed correctly again.

I had disabled all extensions when I noticed this behavior and turned all extensions back on bit by bit. That took a lot of time because the cache had to be emptied every time. I still had phpbb version 3.3.7 installed. After I was sure that it wasn't wrong settings or extensions, I updated to version 3.3.8, which also had no effect. The attachments are saved by default in the /files folder and I checked that for permissions as well (770) [ see here ] and I also randomly checked the files by downloading them and renaming them (e.g. adding the extension .jpg) [ look here ]. All files were readable and therefore valid. As a test, I posted various posts with attachments. Interestingly, the PDF attachments were correctly embedded, which means the link to the PDF file was valid and the file could be downloaded. If I activate the PDF Embedded extension, the PDF is also correctly embedded in the post. Images, on the other hand, were not displayed and the link to the images did not work either.

I actually came across PHP version 8 by accident because I noticed in the support forum on phpbb.com that there were often problems with PHP 8 when updating to version 3.3.7 or 3.3.8. I wasn't even sure if I had also switched to version 8 and when I found out and switched to 7.4 and emptied the cache, the pictures were there again.

I hope that there is a solution for this behavior here, because my hoster has already announced that PHP 7.4 will be switched off in November 2022.

Incidentally, I don't know the reason for the Lightbox extension, because even if this extension is deactivated, the attachments are not displayed in PHP 8. Also other extensions of phpBB 3.3.x do not run correctly with PHP 8, e.g. /paybas/breadcrump or /tas2580/seourls (yeah okay hasn't been maintained for years)
Last edited by Mick on Mon Sep 19, 2022 7:38 am, edited 1 time in total.
Reason: Solved.
I send best wishes and greetings from Rothenburg in Bavaria (Germany). Stay healthy!
migoe | www.liedermacher-forum.de | 2003 - 2022 | phpBB 3.3.8
User avatar
AmigoJack
Registered User
Posts: 6027
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: 3.3.8 Images as file attachment not displayed to PHP 8.0/8.1

Post by AmigoJack »

With screenshots alone we're not able to reconstruct the problem. Reading posts like https://www.liedermacher-forum.de/viewt ... 895#p48895 as guest makes no sense either, since there is no permission to see attachments. When starting a support topic you should fill out the Support Request Template because it already asks for login credentials if needed - otherwise please link to a topic where guests have read/view access to attachments and one said "broken" picture attachment occurs.

Being able to see/test it ourselves makes it possible to see potential HTTP(S) errors which can also reveal the culprit of the problem(s).
  • "The problem is probably not my English but you do not want to understand correctly. ... We will not come anybody anyway, nevertheless, it's best to shit this." Affin, 2018-11-20
  • "But this shit is not here for you. You can follow with your. Maybe the question, instead, was for you, who know, so you shoved us how you are." axe70, 2020-10-10
  • "My reaction is not to everyone, especially to you." Raptiye, 2021-02-28
User avatar
migoe
Registered User
Posts: 10
Joined: Tue Sep 25, 2018 2:47 pm
Location: Rothenburg ob der Tauber
Name: Michael

Re: 3.3.8 Images as file attachment not displayed to PHP 8.0/8.1

Post by migoe »

Hello AmigoJack,
The problem could be solved and the cause was not in phpBB but in the extension /feneck91/introduciator

I was able to get help on the German-speaking support page, the hint to activate the debug mode was ultimately the beginning of the solution.

Apparently I had a faulty installation of this extension and by deactivating, deleting and reinstalling the extension, the display error under PHP 8 was done.

Thank you for your effort and feedback.

Here is the solution thread on the German-language support page
I send best wishes and greetings from Rothenburg in Bavaria (Germany). Stay healthy!
migoe | www.liedermacher-forum.de | 2003 - 2022 | phpBB 3.3.8
Post Reply

Return to “[3.3.x] Support Forum”