MyBB attachment not showing up - php

I am experiencing a quite weird issue on my client's MyBB instance. Attachments upload works, but I can't see them when readin the thread after saving the modifications.
At first I thought it was a permission issue (chmod or htaccess), but the upload works. I can see uploaded attachments in the "/uploads/201503/" folder. I see one thumbnail file and another one with the ".attach" file extension, which is in fact my jpg image when renaming the ".attach" extension to ".jpg". So upload works.
Now looking at the database "attachments" table, I can see the uploaded attachment row. The "attachname" field shows "201503/post_2_1425271978_8162c40a2a603edc2b441bd78460f9a7.attach", which is exactly the my uploaded attachment. So, persistence to database works.
I tried removing all my htaccess files and putting chmod to 777... negative. It's not going anywhere.
Does anybody here already faced that issue?
I have searched the forum before posting.. some very old threads have showed up, but unfortunately the op did not post the solution.
I got no error/warning message whatsoever.
Many thanks for help.
Charles

Check that attachments size in db and real size are the same. If they are not, Content-length will be wrong and some browsers just fail.

Also, simply check that the permissions are such that guests can't view the attached image.

Related

Cannot Upload .GLB to Wordpress Media Location

This is not a quick failure, I have spent a totally of 5 completely full days trying to figure this out. Initially I was limited by file size and then file type; in which I removed the Wordpress restrictions and am now "capable" of uploading my 177MB .glb file to Wordpress.
However when doing so, I receive the following error:
retriever.glb
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
I was on the phone with GoDaddy Specialists for 2.5 hours yesterday ensuring that this was not a Server issue or restriction on their side.. they confirmed that it was not. We pretty much ended the conversation that it is something I must figure out with me, myself, and I.
I went ahead and uploaded my .glb to the server through panel, everything worked fine. In fact I have a location for it here: https://www.tattiniboots.com/wp-content/uploads/2020/07/retriever.glb
However, this does not make the file discoverable to the 3D viewer plugins I have installed on the site through the media location.
I truly don't know where to go from here
I changed the name of the file to .png and attempted an upload and received the following error:
Post-processing of the image failed likely because the server is busy or does not have enough resources. Uploading a smaller image may help. Suggested maximum size is 2500 pixels.
I just tried to update a normal .mov file that is 150MB and received the following error; really making me think this is something to do with file size:
Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.
Yes, normal images are uploading just fine (2MB-ish)
I just attempted to deactivate all plugins with consideration that maybe "Smush" or another was imposing issues: I then received the issue that the file type is not supported (even with the allow all file types code in my wp-config)
Is this just the case that glb is not allowed at all?
This must be a server thing. probably a run time error
Whoever supported you just doesn't know it. GoGoDaddy. ;)
Nevertheless... you can Use a plugin that's called
media sync. Check it out and best of luck

WordPress says media isn't uploaded, but it is?

In WordPress, I'm uploading media and getting the message:
The uploaded file could not be moved to wp-content/uploads/2016/06.  
Yet, the file is in that location, it uploads every time I try.
Along with the error message, the uploaded file doesn't appear in media selections - it's like WordPress can't read it and is giving me the wrong error message.
What could be going on here?
Try changing the permissions of both the 'wp-content' and 'uploads' folders to 777 (maybe currently they are set to chmod 775).
It is possible that at the moment you have permissions only for one of these folders and, because uploading an image to wordpress is a whole process, some part of it may encounter an error, but other may still be successful.
Every image can be seen in the database in the table 'wp_posts' with 'post_type' attachment, as well as in the 'wp_postmeta' table where two inserts are made with meta_keys '_wp_attached_file' and '_wp_attachment_metadata'. If, by any chance, wordpress cannot get the data needed to generate metadata for the image, this may be the cause for you not to be able to see the picture in the admin panel. So you can also check if everything is ok with the information in your database.
Solved! It was a server issue, my server was out of space. The files looked like they'd uploaded correctly, the filename was created, but the file wasn't actually there.

Getting a 404 on images uploaded using FTP in Magento

I have recently installed Magento and am using it for the first time. I am trying to uplaod an image to a folder as the new logo in the heading. When I upload the image using FTP the file uploads successfully but I can’t see it in the folder listing in a browser or on the website or if I visit the url for the image. I get a 404 page instead. Everything is getting cached I believe. I have turned off caching in the back end and cleaned out var/cache folder. This is a new one to me as I wouldn’t ahve thoughts ftp uploading an image would or could be cached? I can’t even change the header image on my website.
Im using the hellowired them as a starting point.
Cheers
Check the permissions on the Images and the directory it is in.
Can you verify that it is in the folder that you have uploaded it too?
Can you view it on server browsing the directories?
Finally check that you have type it correctly as Linux box's are CAPS sensitive, this could be why you can't see it also.
Looks like my host migrated my accounts to another server and I was actually updating the old hosting. Thanks for your help.

Smf image upload troubles

Folks, kindly help me.
Have the following issue with smf 2.0.4 (latest)
User cannot upload image even the smallest one. Other file extensions pass well.
Tried the following:
tracking $_FILES - no errors,
uploading as admin, adding extra attachment folder, checking server free space, forum setting for attachment limits set to maximum. Also have increased all possible php.ini limits. Chdmod is 755 for all folder, tried also 777 for attachments folder.
Kindly tell me what could be wrong ?
my phpinfo is here http://tinyurl.com/bqxchl8
The error message is as follows:
Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.Please consult your server administrator for more information.
3 months later, but wth...
Check you SMF Admin, where the Attachments and Avatars category Attachment Settings is located, and be sure that the image file you are uploading has a file extension that is located within the comma separated list for the Allowed attachment extensions setting.
There are other setting in there that you will need to change as well, such as:
Max attachment folder space
Max attachment size per post
Max size per attachment
Max number of attachments per post
Also, make sure Perform extensive security checks on uploaded image attachments setting is UNCHECKED. This can cause rejected image attachments, since this is somewhat buggy in SMF.
If you set all of these settings to 0, than it will be UNLIMITED! Therefore, no restrictions whatsoever on these.
If you still have a problem uploading image files, than go back to the Admin -> Attachments and Avatars -> Attachment Settings and uncheck: Re-encode potentially dangerous image attachments
Good Luck and hopefully this helps.

Weird issues with timthumb

I am having the wierdest issues with timthumb.php it was working great i had it resizing all my images then suddenly it stop working for a certain set of image???
Can anyone shed some light on this i have been stuck for hours trying to figure this out???
ok here is a working image link.
http://gladtohelpyou.com/wp-content/themes/huddle/timthumb/timthumb.php?src=http://gladtohelpyou.com/users/5/images/Random%20Pics/Screenshot2012-01-24at16.35.04.png&a=t&h=65&w=65&q=100
As you can see that link works fine and it will resize for me great but if i try to load this image in the same folder i get this.
http://gladtohelpyou.com/wp-content/themes/huddle/timthumb/timthumb.php?src=http://gladtohelpyou.com/users/5/images/rings/b_IMG_5907%20Mission%20Photographic.jpg&a=t&h=65&w=65&q=100
ok where i am stuck is i can load the full image find.
http://gladtohelpyou.com/users/5/images/rings/b_IMG_5907%20Mission%20Photographic.jpg
it is doing that for all of those images but all the other images are working fine i have tried uploading large file sizes change the name, cant think of what else to try.
Has anyone had similar issues
Ok still working on this if i use wordpresses built in upload for those specific image types i get the following error.
Warning: imagecreatefromstring(): Passed data is not in 'JPEG' format in /home/justimages/public_html/wp-includes/media.php on line 258
can anyone let me know why this is happening are my images corrupted???
Make sure your webhost isn't banning that script at the server level. On Friday, Jan 27th, 2012 Westhost (www.westhost.com) disabled timthumb across all it's shared servers and now my WooThemes-based Child Theme is non-functional for external images (read: Youtube screenshots).
Make sure your webhost didn't ban the script outright.
Have you checked the permissions on the set of images that aren't working? Are they the same as the images that do work? They may be owned by a different user or group?
(I don't have permission to post comments yet, so posting this as an answer)

Categories