MyBB Community Forums

Full Version: Attachments Not Working! (SOLVED)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I can't see the attachments when I upload to in post. 

look at this: https://kizlarerkekler.com/attachment-test
attachment url: https://kizlarerkekler.com/attachment.php?aid=28

(in uploads/202104 I can see post_9_1617403381_81851fea5e85bcf8daf351006e7f2c63_thumb.png and .attach)

SOLVED:
I used PHP files cleaner and clicked "Trailing Whitespace and ?>" and "Leading Whitespace and BOM"
It gives a http 403 error. Will you please check the http logs for any logging entries relating to it?
(2021-04-03, 10:15 AM)noyle Wrote: [ -> ]It gives a http 403 error. Will you please check the http logs for any logging entries relating to it?


After you said it, I think the problem might be related to the 403 Forbidden Error. I was encountering the 403 Forbidden Error when I changed several templates before. Of course I can't see the big text "403 Forbidden Error" but what you said is correct.

I will contact the company that provides host. To tell them in more detail I need the following information: How did you know that the error was 403?
The error is clear with developer tools using guest permissions.   Even if the guest group has no (mybb) permission to download attachments - should still see a thumbnail I think.  And 403 is a web server error - so something amiss there.

The source of your index page also reveals several plugins in use - mydropzone for one - which will impact the attachment system.  You're also using a custom theme, provenance unknown to me (theme12).  

If it was me, I'd test with all plugins disabled - and using the default theme.  As well as following @Noyles advice of course. Smile  Then start troubleshooting from there.

cheers...
(2021-04-03, 12:59 PM)nixer55 Wrote: [ -> ]The error is clear with developer tools using guest permissions.   Even if the guest group has no (mybb) permission to download attachments - should still see a thumbnail I think.  And 403 is a web server error - so something amiss there.

The source of your index page also reveals several plugins in use - mydropzone for one - which will impact the attachment system.  You're also using a custom theme, provenance unknown to me (theme12).  

If it was me, I'd test with all plugins disabled - and using the default theme.  As well as following @Noyles advice of course. Smile  Then start troubleshooting from there.

cheers...


II tried changing the default theme I am currently using and disabled all plugins. It didn't work.:/

I want to try the noyle way but I didn't understand. "
Will you please check the http logs for any logging entries relating to it?
Where is http logs?
(2021-04-03, 03:12 PM)serhatakgl Wrote: [ -> ]II tried changing the default theme I am currently using and disabled all plugins. It didn't work.:/

I want to try the noyle way but I didn't understand. "
Will you please check the http logs for any logging entries relating to it?
Where is http logs?

Was referring to the MyBB default theme, but no idea what themes you have installed.  No guarantee that's the root problem anyway.

If you don't know where your web and web error logs are located, might ask your host.  It will vary from one hosting solution to another.
Sorry about my answer which I think is wrong, and thanks, @nixer55, for reminding us about the permissions.

@serhatakgl, would you like to test another image? The PNG file you've uploaded might have some glitches preventing it being displayed. Try a JPG image file.
(2021-04-03, 05:50 PM)noyle Wrote: [ -> ]Sorry about my answer which I think is wrong, and thanks, @nixer55, for reminding us about the permissions.

@serhatakgl, would you like to test another image? The PNG file you've uploaded might have some glitches preventing it being displayed. Try a JPG image file.


I tried, it didn't work.
Also the permissions are right. 

I had this problem I had this problem months ago. I still couldn't fix it. Very interesting.
https://community.mybb.com/thread-229334.html
Could you send me a private message with a test account and password?
(2021-04-03, 06:25 PM)noyle Wrote: [ -> ]Could you send me a private message with a test account and password?


I send it.
By the way, I contacted the server company. They could not do this problem. I tried to run into the problem (I uploaded attachment and looked it).  Of course I can't see the 403 Forbidden text directly, but I think it's a 403 error. They checked if the error code came to Mod_Security. If there was an error they would get it to Whitelist. But they said they didn't see an error.
Pages: 1 2