Page 4 of 8 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 73
  1. #31
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,297
    Plugin Contributions
    22

    Default Re: Corrupted product database entry leads to blank product listings

    hmm, now thinking along the lines of limiting size of product images. Of course some folks actually ftp these images up as well but does zen cart distinguish image size from file size (such as product downloads)? I never even wondered about it before but it sure would be nice if it were separated in the code. The server views them as files only and the upload settings on the server can control that but not useful when you have things like videos as downloads.

    But is it GD limit or is the php memory_limit also a factor?
    The full-time Zen Cart Guru. WizTech4ZC.com

  2. #32
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Corrupted product database entry leads to blank product listings

    Quote Originally Posted by delia View Post
    hmm, now thinking along the lines of limiting size of product images. Of course some folks actually ftp these images up as well but does zen cart distinguish image size from file size (such as product downloads)? I never even wondered about it before but it sure would be nice if it were separated in the code. The server views them as files only and the upload settings on the server can control that but not useful when you have things like videos as downloads.

    But is it GD limit or is the php memory_limit also a factor?
    Don't know.. Would need some error trapping to test the exact cause.. Again this is over my head to execute.. I suspect if you look at your server logs though you might find some hints there..

    It seems logical that since the GD Libary is processing the images it's most likely that this processing failing is the cause of the issue.. One way for sure to know if the GD processing is failing is to see if there are re-sized images at all.. You can't do that easily using the current IH4 with the MD5 re-named images, but the beta version in testing on Github uses friendly image names. You could see very quickly if larger images are even being processes by looking for the cached images..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #33
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,297
    Plugin Contributions
    22

    Default Re: Corrupted product database entry leads to blank product listings

    Definitely complicated. Stretching my brain in that direction is not my choice of tasks for today. Hopefully though, this discussion will help others and serve as resource when someone else runs into the problem. Thanks!
    The full-time Zen Cart Guru. WizTech4ZC.com

  4. #34
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Corrupted product database entry leads to blank product listings

    FWIW Events Calendar v4 has image resizing built into code, at upload of image and upon selecting an image to use in mod. The person that provided this code, Rus Lacamus, was a absolute gem.

  5. #35
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Corrupted product database entry leads to blank product listings

    Quote Originally Posted by delia View Post
    Definitely complicated. Stretching my brain in that direction is not my choice of tasks for today. Hopefully though, this discussion will help others and serve as resource when someone else runs into the problem. Thanks!
    Agreed!!

    Quote Originally Posted by dw08gm View Post
    FWIW Events Calendar v4 has image resizing built into code, at upload of image and upon selecting an image to use in mod. The person that provided this code, Rus Lacamus, was a absolute gem.
    Right..

    Well if Rus wants to jump in and contribute to the IH4 dev then I welcome his contribution.. In the meantime a decent solution that I can execute in the meantime is to warn folks NOT to upload GINORMOUS product and category images to begin with.. I think that whatever the long term solution is, that it should most likely include a method to reject the upload of those overly large images to begin with.. IH4 does not touch the original image. This is to support IH4 regenerating it's cache if you clear it. I personally think that storing images this large is a poor practice especially for stores operating on a shared hosting environment..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #36
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,297
    Plugin Contributions
    22

    Default Re: Corrupted product database entry leads to blank product listings

    Agreed, Diva!
    The full-time Zen Cart Guru. WizTech4ZC.com

  7. #37
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Corrupted product database entry leads to blank product listings

    Quote Originally Posted by DivaVocals View Post
    Don't know.. Would need some error trapping to test the exact cause.. Again this is over my head to execute.. I suspect if you look at your server logs though you might find some hints there...
    I see calls to @imagecreatetruecolor, @imagecreate, and @imagecopyresampled in IH4. The @ will suppress error message including any PHP "Out of Memory" errors. I'm going to "guess" this is the issue, as those functions usually create an uncompressed image (which could be quite large at higher resolutions).

    If after removing the "@" from those calls you see PHP "Out of Memory" errors, you may want to check what is configured in IH4 for max dimensions on the generated "large" images.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  8. #38
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,297
    Plugin Contributions
    22

    Default Re: Corrupted product database entry leads to blank product listings

    Diva, if you'll do that, I can use my client's website to test. We still have the larger images in a directory separate from the live site.
    The full-time Zen Cart Guru. WizTech4ZC.com

  9. #39
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Corrupted product database entry leads to blank product listings

    Quote Originally Posted by lhungil View Post
    I see calls to @imagecreatetruecolor, @imagecreate, and @imagecopyresampled in IH4. The @ will suppress error message including any PHP "Out of Memory" errors. I'm going to "guess" this is the issue, as those functions usually create an uncompressed image (which could be quite large at higher resolutions).

    If after removing the "@" from those calls you see PHP "Out of Memory" errors, you may want to check what is configured in IH4 for max dimensions on the generated "large" images.
    Thanks for this.. a place to start..

    Quote Originally Posted by delia View Post
    Diva, if you'll do that, I can use my client's website to test. We still have the larger images in a directory separate from the live site.
    I assume by "do that" you mean make the changes that lhungil suggested.. I made the updates to the beta IH4 in my Github repo.. https://github.com/DivaVocals/zen_Image-Handler

    Note: The version on Github includes balhir's update to use REAL file names for the cached images versus the ugly MD5 hash names IH has used since inception..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #40
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Corrupted product database entry leads to blank product listings

    Got distracted, and didn't commit the changes.. Github repo is updated now..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 4 of 8 FirstFirst ... 23456 ... LastLast

Similar Threads

  1. v139h Strange blank product listings
    By waterbender in forum General Questions
    Replies: 2
    Last Post: 29 Nov 2013, 04:21 PM
  2. v150 product url seems corrupted
    By alibaba99 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 17 Apr 2012, 09:57 PM
  3. Blank space between product listings
    By tigergirl in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Aug 2007, 08:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR