PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 20th, 2009, 11:05 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2009
Posts: 8
Photoupload works but wrong Thumbs ?!? _thumb.jpg

Hello,

i have some Problem but dont know how to resolve it.

If i upload some pictures with flash uploader the Upload works
but the thumbs on the next pages are all the same ?!?
If i open the properties of the thumb-images i found that all have the same name ==> http://***url***/gallery/files/5/_thumb.jpg
but the name should be filename_thumb.jgp.

Can someboby told me how to resolve this issue?

Thanks and sorry for my bad english

Ralf

PS:
Filelist of file i would like to Upload:
IMG_0380.JPG
IMG_0381.JPG
IMG_0382.JPG
IMG_0384.JPG
IMG_0385.JPG
Skyborg is offline   Reply With Quote
Old December 20th, 2009, 11:40 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Are you uploading multiple files all with the same filename?

Feel free to post a url and actual working user login for us to try uploading.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 20th, 2009, 02:49 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2009
Posts: 8
Hi ...

i am uploading multiple Files, but with different filenames.

You can test it:
Link: Rothe-Friends Gallerie
Username: photopost
Password: postphoto

Thanks

Ralf
Skyborg is offline   Reply With Quote
Old December 20th, 2009, 06:12 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
I have never seen that happen

does using the regular upload work?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 21st, 2009, 01:42 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2009
Posts: 8
same at the regular upload, wrong thumb in the kategory.

The Gallery worked for over 3.000 pictures.
And now this issue ... nothing at the gallery was updated or changed.
Skyborg is offline   Reply With Quote
Old December 21st, 2009, 06:27 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Okay well have you tried updating the gallery?

Obviously either something has corrupted the files or there is some weird server issue going on. This issue is not happening with our default code.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 21st, 2009, 07:49 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2009
Posts: 8
I have just replaced all files with the original ones.
But the problem is still there

If its an server issue ... what should i look for?

Thanks

Last edited by Skyborg; December 21st, 2009 at 08:12 AM.
Skyborg is offline   Reply With Quote
Old December 21st, 2009, 09:04 AM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2009
Posts: 8
Can it be a problem with PHP 5.3.1 ?!?

I think my hoster has updated
Skyborg is offline   Reply With Quote
Old December 21st, 2009, 09:04 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
let me check through the support threads here see if I see anything similar. I already did a quick search before responding the first time.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 21st, 2009, 10:23 AM   #10 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2009
Posts: 8
I have spend 2 hours in downgrading php from 5.3.1 to 5.1.6.
I have plesk on my root-server so its a little bit tricky.

But now with php 5.1.6 all works fine

I think there is a compatibility issue between die source code and php 5.3.1

Thank you for the time you have spend to help me.
Skyborg is offline   Reply With Quote
Old December 21st, 2009, 11:16 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Lost likely a php bug
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 22nd, 2009, 12:39 AM   #12 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
I ran into that bug.. actually its not a bug.. its a feature
I call it a name-bug... you can see the warnings if your installation has errors visible..(expose PHP if u use Wampserver)
it is an easy fix... let me copy and paste some of the most common warnings.. note this is a 3.8 vb with a 2.5 gallery install

Quote:
Deprecated: Function eregi_replace() is deprecated in C:\apache\apache2\htdocs\babelsite\gallery\showimage.php on line 456
some warnings are in vbulletin and Gallery...
Deprecated: Assigning the return value of new by reference is deprecated in C:\apache\apache2\htdocs\babelsite\forums\includes\init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in C:\apache\apache2\htdocs\babelsite\forums\includes\init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in C:\apache\apache2\htdocs\babelsite\forums\includes\init.php on line 211
Deprecated: Assigning the return value of new by reference is deprecated in C:\apache\apache2\htdocs\babelsite\gallery\gallery_global.php on line 429

Deprecated: Assigning the return value of new by reference is deprecated in C:\apache\apache2\htdocs\babelsite\gallery\gallery_global.php on line 443

but also.. and this could be the issue..

Warning: substr() expects parameter 2 to be long, string given in C:\apache\apache2\htdocs\babelsite\forums\includes\functions_gallery_imageedit.php on line 399
do a search for substr on functions_gallery_imageedit.php

at one occasion (around line 399) you have
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
There its there also at another occasion..(cant remember where)
basically substr doesnt accept parameter '' any more, it has to be numeric that meens 0 (i checked the manual)

---------

I think the erregi replace , even if only being deprecated.. still gives issues..
If the problem persists.. after the substr fix..
do following:
also around line 350 find
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
I am NOT sure if that fixes ALL the issues with php 5.31, but it should take care of the filename...

Luc
Luciano is offline   Reply With Quote
Old December 22nd, 2009, 01:47 AM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Luc that would still be a php bug
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old December 22nd, 2009, 01:59 AM   #14 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
well its like MS Windows.. no bugs but lots of features ...
But if you look at php manual...
substr second parameter should be numeric !!!! (as of php 4 something..)
in older php versions
'' == 0
NOW
'' != NULL != 0
PHP just gets pickyer the older it gets
lol..
L
Luciano is offline   Reply With Quote
Old December 22nd, 2009, 02:06 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
LOL well we all get older and more geriatric
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old February 9th, 2010, 08:53 AM   #16 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2008
Posts: 15
Having the same problem after the update to 5.3.1

When looking at the data base through PHPMyadmin - many of the thumbnail names are actually just "_thumb.jpg". After making the changes abouve, I have been looking for the option to rebuild the thumbnail names but I don't see it. Does rebuilding the thumbnail size also repopulate the thumbnail field in the DB?

If not, is there a way to do this?
philmckrackon is offline   Reply With Quote
Old February 9th, 2010, 09:59 AM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,802
Are you getting this error using default code or Luciano's little hack above?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old February 10th, 2010, 08:27 AM   #18 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2008
Posts: 15
After updating to 5.3.1 I received the same error - "Assigning the return value of new by reference is deprecated".

Looks like PHP decided to change the way they use the substr function (or at least decided to use the function the way the manual says it should work).

After changing the substr function call to include the integer 0, thumbs now show up on files that are new but do not show up on older files. I'm sure they do not show on older files because I re-sized the thumbs hoping it would fix the problem and now all the old thumbnail names in the database show _thumb instead of filename_thumb.jpg (this is just an example).

All the actuall thumbnails are in the file system.

I'm looking for a way to rebuild the thumbnail database and to the correct file names. Does rebuilding the thumbnail sizes do this? If so, I'm pretty sure the same substr call in the rebuilding is causing my problem.
philmckrackon is offline   Reply With Quote
Old February 10th, 2010, 09:12 AM   #19 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Good find...
You are indeed right..
do the following:
open the file:
forums/admincp/vb_gallery_admin.php
and in that file find:
Code:
Content visible to verified customers only.
IT is there twice, once around line 1831 and the second around line 2185

in BOTH cases replace with:
Code:
Content visible to verified customers only.
(replacing the '' with 0)

Then rebuild your thumbnails..
It should work now...

Luc

PS: one is for rebuilding thumbs, the second one for scanning database for errors...
Luciano is offline   Reply With Quote
Old February 10th, 2010, 11:10 AM   #20 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
as for the deprecated warning.. this will be certainly be fixed by micheal or chuck, but for the moment there is only 1 way to get rid of that...
you need to edit your php.ini.. as if you were in production environment and change:

display_errors = On

to
display_errors = off



This is not a big problem for now, but it will be under php 6


Luc

PS: I tried
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_USER_DEPRECATED);
AND ini_set("display_errors", "0");
just before the error, but both dont work..
php seems to check for deprecated before compiling...

Last edited by Luciano; February 10th, 2010 at 11:54 AM.
Luciano is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MAke all thumbs same size? Admin thumbs are bigger. autino Photopost Pro How Do I...? 10 September 7th, 2008 12:16 AM
Bulk move assigned wrong photo to wrong person Part II Fortissimo Photopost Pro Bug Reports 1 January 6th, 2007 11:47 PM
Bulk move assigned wrong photo to wrong person Fortissimo Photopost Pro Bug Reports 21 December 5th, 2006 11:28 PM
jpg error Alfa1 Photopost Pro Bug Reports 1 November 9th, 2006 03:40 PM


All times are GMT -5. The time now is 02:36 PM.

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