View Full Version : Attached pictures are not showing
I've got VB 4.20 and suddenly, attached pictures, including avatars and signatures, are not showing. We did not do any upgrades or modifications to the forum, including changing plugins, before this occurred.
It's for hummer4x4offroad.com. Linked pictures are showing fine but the ones that are uploaded are not showing. I've tried rebuilding thumbnails and just about every update tool in the Maintenance area to no avail.
This thread has examples of uploaded pics not showing as well as avatars and signature pics. http://www.hummer4x4offroad.com/forum/showthread.php?10139-Thanks-for-the-memories
What do I need to do here, and what more info do you need?
ArcadeSyndicate
10-26-2015, 10:37 PM
are the images stored in the database or filesystem?
[edit] your garage images work, maybe if because they are stored as files.
did your hoster change anything?
Database. Not sure if the host changed anything, I will ask
Lynne
10-27-2015, 12:50 AM
You are running vB4.2.0, so what version of PHP is on the server? If you are running PHP5.4, then you need to upgrade to vB4.2.2.
PHP version 5.3.29. I haven't taken the step to upgrade to 4.2.2 since the problem occurred as I didn't want to chance somehow compounding the issue.
Forgot to add a link in the first post. Added it there and showing it here to so show examples of pics not showing http://www.hummer4x4offroad.com/forum/showthread.php?10139-Thanks-for-the-memories
TheLastSuperman
10-27-2015, 02:17 AM
Can view thumbnails and download attachments, both set to yes in unregistered/not-logged in usergroup? I right-click to view the image and it requires login box, seems like permission issue. Although one image did come up but browser stated it could not be displayed due to errors... hmm check those settings in Usergroup Manager.
Unregistered users can't download attachments but for the purpose of this thread I just changed that to allow you to do so. Even as Admin I can't see these pictures and permissions haven't been changed on any usergroup in over a year.
Can view thumbnails was already set to yes, so you should have been able to see the thumbnails.
--------------- Added 1445919627 at 1445919627 ---------------
Here's the response I got from the host. I put in this change but I did not see any immediate result.
----------------------------------------------------
A month ago, we upgraded the server you are hosted on to use Apache/Varnish instead of Litespeed. To offer the best possible performance, Apache/Varnish caches your dynamic content for 3 seconds and any static content such as images, CSS and so on for up to 5 minutes.
As a result, some .htaccess rules may now work differently because Litespeed chooses to ignore most of the errors of a .htaccess file and Apache has a more strict way to deal with them.
We understand however that some websites will not work with caching, so we give the customer the ability to disable it. You can read more about it at https://billing.stablehost.com/knowledgebase/201/How-do-I-disable-server-side-caching.html
Lynne
10-27-2015, 05:52 PM
And so did you try to disable the caching and see if that fixes the problem?
Yes, I did try to disable the caching but it did not fix the issue.
When I was editing the .htaccess (via notepad++) I noticed that the carriage returns were "CRLF" vs. "LF". This may have been from a prior editing, and maybe the server is having issues with the formatting. Thoughts?
Lynne
10-28-2015, 08:24 PM
If you edit any file, you need to make sure you use a plain text editor such as notepad++ and make sure you don't save it With BOM.
Thanks Lynne. I cleaned up .htaccess and replaced the CR LF with just LF for all carriage returns. I have the cache disabling in there as well, as suggested by the host.
I noticed that the images issue is extending to areas like Community > Friends where avatars are not showing there either. Argh. Anyone for hire out there?
Lynne
10-29-2015, 05:06 PM
I would suggest starting with a fresh .htaccess file using notepad++ and see if that fixes the issue. And, did you edit the config.php files at all? If so, start with a new one and edit it using notepad++ also.
I haven't had a chance to do new .htaccess and config.php files yet, will tackle this weekend. Was reading this thread https://vborg.vbsupport.ru/showthread.php?t=314051 and have been trying to moves images back to the file system from the database, but am getting "Upload of File Failed" on every image it attempts to move.
Should permissions on the Attachments folder, customavatars, customersignaturepics all be 0777? They were set at 0755
DemOnstar
10-30-2015, 08:02 PM
Related?
https://vborg.vbsupport.ru/showpost.php?p=2557693&postcount=16
Lynne
10-30-2015, 08:08 PM
Should permissions on the Attachments folder, customavatars, customersignaturepics all be 0777? They were set at 0755
Yes, they should be set to 0777 recursively. Once you do that, it may fix the problem.
Okay, I seem to have fixed avatars and maybe some signatures. Inline attachments are still fighting me. I set those permissions at 0777 recursively. I did not do recursively the first time.
I moved Avatars into the file system (they were in the database)
I move Attachments back into the database (they were in the file system)
Now, when I go back and check on permissions, they seem to be reset at the top folder level to 0755 but the contents are 0777. It could have been that way before, I did not verify.
I may move the Attachments back to the file system to see if the moving and re-writing helps out.
--------------- Added 1446242824 at 1446242824 ---------------
Testing and even now when I try and upload a new image, it does not show as an image in the upload tool. It just give me this:
https://vborg.vbsupport.ru/external/2015/10/2.jpg
--------------- Added 1446254666 at 1446254666 ---------------
Lynne, as usual, is a genius. Recreated the config.php file and that did the trick (also redid .htaccess to be sure). Pics are showing.
Seems my first "cleaning" of config.php didn't do the trick and the new server was sensitive to the issues in the file, whereas the old server was more forgiving.
Thank you Lynne!
Lynne
10-31-2015, 12:44 AM
Glad you got it figured out. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.