Weird issues with timthumb - php

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)

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

MyBB attachment not showing up

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.

Broken png image using Laravel Asset Pipeline despite 200 OK status

I'm using Codesleeve/asset pipeline on my Laravel project to serve css, js and image files. It on the whole works fine but there is an issue with displaying css-loaded images. The image does not display and shows the browser's "broken image" symbol when loading it directly (http://art.ipscap.com/assets/select2.png for example): e.g.
Upon inspecting the page it shows the image is loaded successfully with 200 OK status (or cached) but there seems to be an error displaying it. Seeing as the image in question displays fine on my local machine and the problem is only in production is there a way to diagnose this issue?
Edit: Still haven' t managed to find a solution for this. For reference the live broken image url is https://art.ipscap.com/assets/select2.png. The image itself is in app/assets/images/select2.png and the readme in the same directory states:
If you place an image here called foobar.png then you can access that image by going to http://<hostname>/assets/foobar.png
I find it strange as the image does not fail to load but is being broken by asset pipeline. The same does not seem to occur to other images in the app such as the header jpeg image.
Do you use different server software on your local and production server? I see the production uses nginx. In that case, you might have to add something to your config as stated here:
https://github.com/CodeSleeve/asset-pipeline#can-i-use-nginx

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.

PHP Smart Image Resizer returns broken image

I'm using the Smart Image Resizer plugin to resize images. I've been testing on a local server for a while, and now when I uploaded to the server, the image doesn't pull up.
There's really no code to post-has anyone ever had this problem, and if so, is there a solution?
Thanks!
Found the error-I had changed the code to go into a specific directory for the images. The script was removing the slashes from the image variable, so it was looking for imagesIMG_1234.JPG instead of images/IMG_1234.JPG.
Thanks!

Categories