Difference between revisions of "Common Photo Related Issues"

(Gallery View is Broken)
(Gallery View is Broken)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
===Gallery View is Broken===
 
===Gallery View is Broken===
  
'''Symptom:'''<br/>
+
'''Symptom:'''<br/><br/>
Gallery keeps loading without showing the photo.
+
Gallery keeps loading without showing the photo.
  
[[File:Reloading.jpg]]<br/><br/>
+
::: [[File:Reloading.jpg]]<br/><br/>
  
 
'''Causes :'''<br/>
 
'''Causes :'''<br/>
PHP ran out of memory during image-resizing for viewing. Check your php.ini memory_limit and increase it accordingly.
+
# PHP ran out of memory during image-resizing for viewing. Check your php.ini memory_limit and increase it accordingly.
The actual file is missing due to upload/permission issue.
+
# The actual file is missing due to upload/permission issue.
Third party plugin conflict
+
# Third-Party plugin conflict.
  
 
'''Debugging Procedure:'''<br/>
 
'''Debugging Procedure:'''<br/>
  
[[File:PhotoDebug1.jpg]]<br/><br/>
+
::: [[File:PhotoDebug1.jpg]]<br/><br/>
  
We need to know whether the actual image exists or not.
+
# We need to know whether the actual image exists or not.
Right Click '''on the thumb'''> View Image (in Firefox).
+
# Right Click '''on the thumb'''> View Image (in Firefox).
Take note of the actual URL for the thumb.
+
# Take note of the actual URL for the thumb.
You will notice that the URL of the thumb is (example): Thumb: images/photos/62/thumb_e9c8787197c151c42b599543.jpg
+
# You will notice that the URL of the thumb is (example): Thumb: images/photos/62/thumb_e9c8787197c151c42b599543.jpg
The URL of the actual image would be (example): Actual : images/originalphotos/62/e9c8787197c151c42b599543.jpg
+
# The URL of the actual image would be (example): Actual : images/originalphotos/62/e9c8787197c151c42b599543.jpg
photos -> '''original'''photos
+
# photos -> '''original'''photos
'''thumb'''_e9c8787197c151c42b599543.jpg -> e9c8787197c151c42b599543.jpg
+
# '''thumb'''_e9c8787197c151c42b599543.jpg -> e9c8787197c151c42b599543.jpg
Once you know the generated file name, head straight to the original photo, which is www.yoursite.com/images/originalphotos/62/e9c8787197c151c42b599543.jpg
+
# Once you know the generated file name, head straight to the original photo, which is www.yoursite.com/images/originalphotos/62/e9c8787197c151c42b599543.jpg
If you manage to view both original photos and its thumb, then most likely your issue lies in the insufficient memory_limit.
+
# If you manage to view both original photos and its thumb, then most likely your issue lies in the insufficient memory_limit.
If you are unable to view any or both original photos and its thumb, most likely your issue lies in incorrect directory permission.
+
# If you are unable to view any or both original photos and its thumb, most likely your issue lies in incorrect directory permission.

Latest revision as of 06:30, 9 March 2013

Gallery View is Broken

Symptom:

Gallery keeps loading without showing the photo.

Reloading.jpg

Causes :

  1. PHP ran out of memory during image-resizing for viewing. Check your php.ini memory_limit and increase it accordingly.
  2. The actual file is missing due to upload/permission issue.
  3. Third-Party plugin conflict.

Debugging Procedure:

PhotoDebug1.jpg

  1. We need to know whether the actual image exists or not.
  2. Right Click on the thumb> View Image (in Firefox).
  3. Take note of the actual URL for the thumb.
  4. You will notice that the URL of the thumb is (example): Thumb: images/photos/62/thumb_e9c8787197c151c42b599543.jpg
  5. The URL of the actual image would be (example): Actual : images/originalphotos/62/e9c8787197c151c42b599543.jpg
  6. photos -> originalphotos
  7. thumb_e9c8787197c151c42b599543.jpg -> e9c8787197c151c42b599543.jpg
  8. Once you know the generated file name, head straight to the original photo, which is www.yoursite.com/images/originalphotos/62/e9c8787197c151c42b599543.jpg
  9. If you manage to view both original photos and its thumb, then most likely your issue lies in the insufficient memory_limit.
  10. If you are unable to view any or both original photos and its thumb, most likely your issue lies in incorrect directory permission.