PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.6x (http://www.photopost.com/forum/bugs-vbulletin-3-6x/)
-   -   Upgraded: but new photos wont show at showimage.php (http://www.photopost.com/forum/bugs-vbulletin-3-6x/134984-upgraded-but-new-photos-wont-show-showimage-php.html)

rc1320 January 14th, 2008 09:56 AM

Upgraded: but new photos wont show at showimage.php
 
1 Attachment(s)
So here is the story.

At first no images were showing at the showimage point but I update the entire gallery folder and could then see full size images.

BUT TODAY

I just noticed that new images added will not display in full size. See: CLICK HERE

I double checked that all the folders are correct. Can someone please help me understand how to trouble shoot this or what might be wrong?

Seems that it is not storing the file when its uploaded. See attachment (screen grap from files folder)

rc1320 January 14th, 2008 09:09 PM

any help here?

Zachariah January 15th, 2008 09:47 AM

Look for custom ADV_GALLERY_SHOWIMAGE in your templates.
- you may need to save your custom code and revert the template. (there may have been some code changes)

MrBurns January 16th, 2008 12:54 PM

I have the same problem, but don't use displayimage.php
I think I've some hints to help the developers to solve the problem:

I've uploaded the file "1-crestbig-2.gif" and the followinf file were created in the image directory:
Code:

Content visible to verified customers only.
The images refered by are:
Code:

Content visible to verified customers only.
Please note the difference: 1_1_crestbig_2.gif <-> 1-1_crestbig_2.gif

rc1320 January 16th, 2008 07:04 PM

Quote:

Originally Posted by Zachariah (Post 1214693)
Look for custom ADV_GALLERY_SHOWIMAGE in your templates.
- you may need to save your custom code and revert the template. (there may have been some code changes)

I don't have any mods to my vBgallery templates.

I am really lost on this issue and have been spending way too much time on it for the last 5 days. Emailed via the support line and Chucks suggestions didn't apply.

I need someone to fix this for me. Zachariah or Chuck, with access would you guys be able to fix this for me? I will pay you via Paypal.

993ti January 17th, 2008 01:53 PM

Same thing happening here.
No mods either.
Does not happen when uploaded directly from the server.

Zachariah January 17th, 2008 09:05 PM

rc1320 - Shoot me some access via PM - ftp / admincp

Chuck S January 18th, 2008 09:04 AM

Zachariah

The bug is verified. vbGallery looks for files like this

http://.../vbgallery/files/1_1_crestbig_2.gif

However in the old vbGallery the files are like this

http://.../vbgallery/files/1_1_crestbig-2.gif

rc1320 January 18th, 2008 09:56 AM

Quote:

Originally Posted by Chuck S (Post 1214908)
Zachariah

The bug is verified. vbGallery looks for files like this

http://.../vbgallery/files/1_1_crestbig_2.gif

However in the old vbGallery the files are like this

http://.../vbgallery/files/1_1_crestbig-2.gif

Does this mean there is a fix for it? Do I need to hold tight or is there something I should do?

Ramses January 29th, 2008 01:28 PM

Seems all 2.42 users are waiting for a solution since 2 weeks?

Kfrancesco February 2nd, 2008 04:41 PM

My solutions, edit file /forum/includes/functions_gallery_imageedit.php

Line 370, from
Code:

Content visible to verified customers only.
To
Code:

Content visible to verified customers only.

993ti February 2nd, 2008 07:41 PM

Ehm, the 2 lines are the same?

Luciano February 2nd, 2008 11:06 PM

no the lines are not the same one has - the other _

question: if i understand correctly the problem only exists if safe mode is active? or at least if setting is so in acp.. ie. All files in one directory..
files/userid-filename.jpg
instead of files/u/s/e/r/i/d/filename.jpg ?



Luc

Luciano February 3rd, 2008 12:59 AM

Well i tested on my install.. and yes it happens but only if your gallery is in safemode..
that means that ALL files are only in 1 directory gallery/files/filename.jpg

You should not use that unless your server is really in safemode.. and you cannot change that... (ie. php cannot create subdirectories by itself..)

Why? most obvious reason: the file limits..
some systems start crashing when there are 20000 files in one directory.. others allready with 15.000 but..
each image needs at least 3 files.. so that will limit you to 6000 or 7000 images in total before your server crashes..

if you can use the normal option: you can have 100 thousand images without a problem.. as directories and subdirectories will be created for each DIGIT of the user id.. (only limit left will be 6 to 7000 images PER USER) wich is much nicer..

but there are other reasons like performance etc.. (takes less time to seek a file with 50 files in a dir than a file when there are 5000 files in a dir) ...

ATTENTION: the settings are a bit confusing in wording...
if you have:
Quote:

Click the 'Change File Storage Method' button below to turn the safemode bypass Off.
it means that your gallery is using safemode...!!!! (what it shouldnt)

==================================

But back to the topic.. the fix above seems to work.. but i dont like it..

because when you switch from safemode back to normal you will loose images.. (the system looks for images like userid-filename to put them back in the subdirectories) now when i switched to safemode all my files were called like that (1-filename.jpg) the new uploads would be: 1_filename.jpg .. when i want to switch back.. the system will NOT be able to tell what are my files..
===> i will loose the new uploads..


so what I suggest as quickfix: (but i think zach is looking into it in a more deep manner and will come up with a real fix very soon)

leave the line in the post above like it is..(i.e. dont change it)
instead change:
in forum/includes/functions_gallery_imageedit.php
Code:

Content visible to verified customers only.
to
Code:

Content visible to verified customers only.
(or simply add the dash after ^a-z0-9_-)
it seems to work... but.. i think it should be tested more deeply..
could be other drawbacks (none that i can think of.. but you never know)

Luc

Zachariah February 3rd, 2008 03:31 PM

Quote:

Originally Posted by MrBurns (Post 1214802)
I have the same problem, but don't use displayimage.php
I think I've some hints to help the developers to solve the problem:

I've uploaded the file "1-crestbig-2.gif" and the followinf file were created in the image directory:
Code:

Content visible to verified customers only.
The images refered by are:
Code:

Content visible to verified customers only.
Please note the difference: 1_1_crestbig_2.gif <-> 1-1_crestbig_2.gif

Test this please.
forum/includes/functions_gallery_imageedit.php

Find:
Code:

Content visible to verified customers only.
Replace with:
Code:

Content visible to verified customers only.

993ti February 3rd, 2008 05:45 PM

Didn't work for me :(

Luciano February 4th, 2008 12:35 AM

Quote:

Originally Posted by 993ti (Post 1216314)
Didn't work for me :(

did you try both fixes? mine and zachs? I had to apply both for it to work correctly..


All times are GMT -5. The time now is 06:22 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97