puzzling attachment display issue

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
manarak
Registered User
Posts: 132
Joined: Sun Nov 21, 2010 1:01 pm

puzzling attachment display issue

Post by manarak »

so... I'm in the process of moving my forum from my host's webroot to a subdirectory and made the first step of copying all files and folders to /forum

everything works the same on / and /forum, topics, posts, ACP, attachments, the database is the same, everything is there. yay.

except ...

someone uploaded 4 new pics while I was moving the files over.

then I copied the /files directory again " cp ./files ./forum/files -r"

the number of files in both directories are the same.

everything displays well on / , but on /forum, the thumbnails aren't displayed and also, the attachment is not displayed.
the page says "The selected attachment does not exist anymore."
same database.
both /files and /forum/files are the same, same ownerships, same permissions, same contents

/download/file.php?id=123456&t=1 => shows thumb and attachment
/forum/download/file.php?id=123456&t=1 => doesn't show thumb nor attachment

what baffles me is that previous attachments are shown on both and I could not see a difference in the database for the new attachments.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6697
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: puzzling attachment display issue

Post by thecoalman »

Just to confirm. The post exists on new location and if you click edit button there is attachments but none of the links work if you click them?
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
manarak
Registered User
Posts: 132
Joined: Sun Nov 21, 2010 1:01 pm

Re: puzzling attachment display issue

Post by manarak »

thecoalman wrote: Sat Feb 15, 2025 9:23 pm Just to confirm. The post exists on new location and if you click edit button there is attachments but none of the links work if you click them?
I just tested what you said:

In the new location, when I click the edit button, I see the attachments *listed* in the post (as attachment=2 IMG_5004.jpeg attachment in BBCode with brackets), as well as the attached files list under the attachments tab.

On the post display, the thumbs do not show, instead there is a link, such as IMG_1234.jpg, and when clicked, the link leads to "The selected attachment does not exist anymore."
Last edited by manarak on Sat Feb 15, 2025 10:08 pm, edited 1 time in total.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6697
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: puzzling attachment display issue

Post by thecoalman »

You have checked the group/owner/permissions of the files themselves?

It is just four files, correct?
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
manarak
Registered User
Posts: 132
Joined: Sun Nov 21, 2010 1:01 pm

Re: puzzling attachment display issue

Post by manarak »

thecoalman wrote: Sat Feb 15, 2025 10:07 pm You have checked the group/owner/permissions of the files themselves?

It is just four files, correct?
it's the four files added after I copied the forum files to the subdirectory. I should check if it will also apply to any new file. I will do that now.

but yes, I checked owner and permissions, they are 5005:5005 and 666 for all files and 5005:5005 and 777 for both directories
manarak
Registered User
Posts: 132
Joined: Sun Nov 21, 2010 1:01 pm

Re: puzzling attachment display issue

Post by manarak »

thecoalman wrote: Sat Feb 15, 2025 10:07 pm You have checked the group/owner/permissions of the files themselves?

It is just four files, correct?
So I just confirmed it happens with any new file as well.

I upload a picture attachment in / (it displays OK in phpbb in the webroot / )
and then I run "cp ./files ./forum/files -rf"

I would expect the image to be displayed in phpbb under /forum/, but it's not displayed.
manarak
Registered User
Posts: 132
Joined: Sun Nov 21, 2010 1:01 pm

Re: puzzling attachment display issue

Post by manarak »

could it be a .htaccess or a symphony issue ?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6697
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: puzzling attachment display issue

Post by thecoalman »

manarak wrote: Sat Feb 15, 2025 10:15 pm So I just confirmed it happens with any new file as well.

I upload a picture attachment in / (it displays OK in phpbb in the webroot / )
and then I run "cp ./files ./forum/files -rf"

I would expect the image to be displayed in phpbb under /forum/, but it's not displayed.
Based on your previous posts you are using two different DB's so that is to be expected if the post wasn't made in second installation and/or DB wasn't updated.

Sounds to me like you have group/owner/permissions issue. Double check and compare the the old installation to new installation including phpBB files.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
manarak
Registered User
Posts: 132
Joined: Sun Nov 21, 2010 1:01 pm

Re: puzzling attachment display issue

Post by manarak »

thecoalman wrote: Sun Feb 16, 2025 6:46 am
manarak wrote: Sat Feb 15, 2025 10:15 pm So I just confirmed it happens with any new file as well.

I upload a picture attachment in / (it displays OK in phpbb in the webroot / )
and then I run "cp ./files ./forum/files -rf"

I would expect the image to be displayed in phpbb under /forum/, but it's not displayed.
Based on your previous posts you are using two different DB's so that is to be expected if the post wasn't made in second installation and/or DB wasn't updated.

Sounds to me like you have group/owner/permissions issue. Double check and compare the the old installation to new installation including phpBB files.
thank you for your help!

it was the same database, but there was indeed an issue with permissions. all is well now!

Return to “[3.3.x] Support Forum”