Multiple attachments having issue loading thumbnails in topic view

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
roller24
Registered User
Posts: 97
Joined: Mon Jul 29, 2002 7:26 am

Multiple attachments having issue loading thumbnails in topic view

Post by roller24 »

Support Request Template
What version of phpBB are you using? phpBB 3.3.4
What is your board's URL? http://myplanetganja.com
Who do you host your board with? HostMDS_NOLIMIT
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What version of phpBB3 did you update from? phpBB 3.0.13
What styles do you currently have installed? prosilver
What language(s) is your board currently using? proflat
Which database type/version are you using? MariaDB
What is your level of experience? New to PHP but not phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? The site was functioning great. Hosting company did upgrades and issue began.
Apache 2.4.48
PHP Version 7.4.21 Board using 8 issue occurs on both when board set to 7.4
MySQL Version 10.3.30-MariaDB
Architecture x86_64
Operating System linux

I have reinstalled unzipped files via ftp, including htaccess from FILES STORE ETC
I have replicated this issue with permissive htaccess, no htaccess file, default htaccess file.
All php.ini values are excessive to allow large files and posts
display_errors = Off
max_execution_time = 600
max_input_time = 600
max_input_vars = 1000
memory_limit = -1
post_max_size = 200M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php8"
upload_max_filesize = 100M
zlib.output_compression = Off

Contacted host who claims issue is permission based due to error on file.php stating
[Sun Jul 25 10:44:10.623279 2021] [:error] [pid 10461:tid 47621488043776] [client 73.56.167.6:42008] client denied by server configuration: /home/myplanet/public_html/download/file.php, referer: https://myplanetganja.com/viewtopic.php?f=24&t=13876

Please describe your problem. When a topic with multiple attachments of more than 5 or so, it's a bit random to me atm. Some attachments load image and some show as a broken image, with filename link which if clicked will load the image (sometimes slowly).
If you refresh the page, some more of the images will load.
If you hit refresh too many times, 404s the whole page, or page loads without style fulling rendering.
Once the images are in browser cache all is well, and they will display fine.

I suspect that the hosting company needs to make an adjustment.
I was running 3.014 with many mods, so upgrade was delayed to maintain some mods that were not available on upgrade.
The hosting company deprecated 5.4 php and went to 7.3 . This of course broke the 3.014 site. So an upgrade was imminent.
I cleaned the DB myself as stk won't run on 7.3 either. It took a while, but I was thorough and no data is causing issues prior to upgrade.

The site was working well, until the host upgraded the apache or ssl or something, and the issue began to appear and replicate.
Generated by SRT Generator
Capture.PNG
shows one displayed, one not displayed.
here is refreshed page from incognito window.
here is refreshed page from incognito window.
Last edited by roller24 on Sun Jul 25, 2021 3:34 pm, edited 1 time in total.
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10551
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Multiple attachments having issue loading thumbnails in topic view

Post by Noxwizard »

This often happens when the host imposes CPU limits and users have a page with lots of image attachments. Since the attachments are rendered through PHP which needs to load them from disk and re-display them, you are probably exceeding a CPU limit due to having to process all of the images. They enforce that limit by preventing you from running more processes until your usage goes down, which causes the images to fail to load.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
roller24
Registered User
Posts: 97
Joined: Mon Jul 29, 2002 7:26 am

Re: Multiple attachments having issue loading thumbnails in topic view

Post by roller24 »

Thank you, I was under the same impression, although they claim it is not the case, and they don't limit the cpu.
This doesn't mean that they don't over load it.
The load fluctuates between 1.20 and 1.60
The sever disk is at 85% with a warning icon. Maybe this is the issue?

regardless, I didn't think it was a phpbb issue, but needed to verify with the experts.
roller24
Registered User
Posts: 97
Joined: Mon Jul 29, 2002 7:26 am

Re: Multiple attachments having issue loading thumbnails in topic view

Post by roller24 »

So I moved the server and providing 12 cores of processing, and 20g ram. Running php 7.3 fpm and cgi both same results.
There are certain threads that have attachments which throw a 404 on browser "inspect". and the filename only is displayed, and clicking opens file.

I'm now thinking that the thumbnail files are missing on theses posts.
I ran the command ls files |grep filename
Only the filename listed. If the thumbnail file existed than the grep would have had two files

filename
thumb_filename


solved
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Multiple attachments having issue loading thumbnails in topic view

Post by thecoalman »

There is command for phpBB CLI to regenerate thumbs.
roller24 wrote: Wed Aug 04, 2021 10:49 pm Only the filename listed. If the thumbnail file existed than the grep would have had two files
Were they ever created? It appears you are allowing huge images to be uploaded and that requires a lot of RAM allocated to PHP to resize for the thumb. I don't know if error is thrown if the thumb fails to be created.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
roller24
Registered User
Posts: 97
Joined: Mon Jul 29, 2002 7:26 am

Re: Multiple attachments having issue loading thumbnails in topic view

Post by roller24 »

The images are big, but I don't think that any resource limits caused the files not to be created. I think they may have been lost during the migration, as the folder is huge. I'll give the cli a look, sounds like exactly what I need.
EDIT
Well regenerate seemed to only delete the thumbnails.
I am using thumbnail:generate now, and it seems to be rebuilding files.
Attachments
Capture.PNG
Post Reply

Return to “[3.3.x] Support Forum”