texobyte

Odd behavior when uploading images

Recommended Posts

texobyte    3

I have been plagued by this issue since day one. I cannot access or use any image I have uploaded. I can see them in the directory on the server and when I click on an image I can see a preview in the editor but as the video Video in my dropbox shows it doesn't provide me with a way to utilize those images. I can't see anything obvious.

I did upgrade to 3.0.34 and have left the site pretty bare bones until this issue is resolved.

 

Thanks in advance!

processwire-images-bug.mp4

Share this post


Link to post
Share on other sites
adrian    7,645

My guess would be that your assets/files folder doesn't have read permission.

Do a quick recursive change (to get all the subfolders as well) to 777 to test and if that works, then sort out the proper owner/permission settings.

Share this post


Link to post
Share on other sites
BitPoet    1,166

What seems a bit strange is that the full image is displayed alright on click on the thumbnail, but the thumbnails and pwimage don't work. If it were read permissions, the full image shouldn't be visible either.

My first three items to check would be:

  • Third party modules
  • Apache's mod_security
  • Browser security plugins

The raw requests made for the thumbnails might also be worth a look.

Share this post


Link to post
Share on other sites
texobyte    3

Permissions changed.

I noticed in the response header the x-xss-protection: 1; mode = block: is that an issue?

HTTP/1.1 200 OK
Date: Wed, 28 Sep 2016 17:41:41 GMT
Content-Type: image/jpeg
Content-Length: 42
Server: Apache/2
X-Frame-Options: SAMEORIGIN
Last-Modified: Wed, 28 Sep 2016 17:41:39 GMT
Etag: "2a-53d94dfa00482"
Accept-Ranges: bytes, bytes
Cache-Control: max-age=2592000
Expires: Fri, 28 Oct 2016 17:41:41 GMT
x-xss-protection: 1; mode=block
Connection: Keep-Alive
Age: 0

 

Share this post


Link to post
Share on other sites
texobyte    3
Just now, texobyte said:

Permissions changed.

I noticed in the response header the x-xss-protection: 1; mode = block: is that an issue?


HTTP/1.1 200 OK
Date: Wed, 28 Sep 2016 17:41:41 GMT
Content-Type: image/jpeg
Content-Length: 42
Server: Apache/2
X-Frame-Options: SAMEORIGIN
Last-Modified: Wed, 28 Sep 2016 17:41:39 GMT
Etag: "2a-53d94dfa00482"
Accept-Ranges: bytes, bytes
Cache-Control: max-age=2592000
Expires: Fri, 28 Oct 2016 17:41:41 GMT
x-xss-protection: 1; mode=block
Connection: Keep-Alive
Age: 0

 

Never mind - that's not it according to Google.

Share this post


Link to post
Share on other sites
texobyte    3

Ok on the server when viewing the .jpgs I click on the full size images and I get the image but on the thumbnails that are generated I get

Quote

The image "http://texobyte.com/site/assets/files/1021/zenbook_review-10.0x260.jpg" cannot be displayed because it contains errors.

Thumb: http://texobyte.com/site/assets/files/1021/zenbook_review-10.0x260.jpg

Full size: http://texobyte.com/site/assets/files/1021/zenbook_review-10.jpg

Share this post


Link to post
Share on other sites
BitPoet    1,166

Might also be a memory issue or a case of format incompatibility between your images and GD. Maybe this thread could be helpful:

 

  • Like 1

Share this post


Link to post
Share on other sites
texobyte    3

It is a memory issue, this is the error in the log.

Quote

/hermes/bosnaweb17a/b2188/ipg.texobytecom/texobyte/site/assets/files/1021/zenbook_review-2.1080x0.jpg - zenbook_review-2.1080x0.jpg - not enough memory to load

ill take a look down this path.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By darrenc
      What I did
      edit the default 'body' field (textarea, ckeditor) field > body > input: "enable ACF" checked "yes" by default field > body > input: "extra allowed content" ... The instructions indicate "Example: img[alt,!src,width,height]" in order to enable a tag with attributes you want to allow through the filtering.
      a[class] I wrote the above expecting that now i would be able to class my a tags in the editor, maybe make one a "button" style or whatever. However, this doesn't actually work as it seems Extra Allowed Content doesn't actually do what it indicates.
      I've tried a dozen different variations and after googling here and seeing some responses in other threads, I think this should be addressed. The box is a nice way to enable a few attributes the user might want to allow for clients or themselves, I don't see why one would require making a module or going above and beyond the tools and text areas already provided in order to simply allow a few attributes.  I could turn ACF Off entirely, but that doesn't really address the problem: I want to filter the input for clients but still configure some tweaks that I deem would enhance and not break the site.
      Simply: it's there, it's nice to have, should work right, but it doesn't seem to. Help?
       
       
    • By rst
      Hello,
      I have repeater field with an image field as one of its fields. It works correctly on all but one templates. I added an image, it shows the image uploading, but then the image just disappears and it doesn't save. What could it be ?
       
      Thanks
    • By Gazley
      Hi there,
      I'm looking to render some square images that are based on portrait originals. When the image is selected, I'll display it in portrait mode but when the images are in a "summary" mode, I want them square. What would be the best way to generate a square image from a portrait original? FYI, I would ideally prefer these images to based on IMG tags and not background images.
      Cheers!
    • By Roberts R
      Solution :
       
      Issue :
      Fresh install ProcessWire 3.0.39 + multilangual support
      In video it shows how it goes. And I can't figure it out.  It happens for few of my sites.
      td;tl : Upload 5 image in images field ->  Save -> 2 left.
      EDIT : Files are in "/assets/files/id"
      processwire-bug.mp4
    • By Andreas Augustin
      Hello!
      I'm struggling with some strange problem. I want to get the description of an image in my template but it is null.
      When I'm dumping the image I see that the value is in a field called description1012. Why?
      object(Image)#396 (2) { ["changes"]=> array(1) { [0]=> string(9) "formatted" } ["data"]=> array(8) { ["basename"]=> string(23) "nbr1052-previewbild.jpg" ["description1012"]=> string(0) "" ["tags"]=> string(0) "" ["formatted"]=> bool(true) ["modified"]=> int(1490190603) ["created"]=> int(1490190603) ["description"]=> NULL ["url"]=> string(72) "http://s7w2p3.scene7.com/is/image/bluetomato/ugc/nbr1052-previewbild.tif" } }