PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Bug Reports

Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here.

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 2 votes, 3.00 average. Display Modes
Old January 25th, 2009, 08:41 PM   #1 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Disk space used = 112 GB, that's not right [PP 6.2]

OK, so I did the upgrade today. From 5.21 to 6.2 (latest build). The upgrade went very smooth considering there's over 30,000 photos (and just under 100,000 members).

There is a problem though... when I (Webmaster) click "Upload Photo" the page takes literally 2-5 minutes to load. And when it does load I notice this interesting thing:
Quote:
Disk space allowed on your account: Unlimited
Disk space used on your account: 112,482,772kb (112482772 bytes)
Disk space remaining for your account: Unlimited
Obviously I'm not really using 112 GB of data (112 MB, that's more reasonable and possible). In fact, the entire data folder is maybe 1.0 - 1.5 GB. In the admin panel, it shows space used in the data folder as 1.43 GB (which is correct).

Now, I am assuming the extremely long page load time is due to it calculating how much space I've used (is that right?). And it calculates it WAY higher than it actually is. The odd thing is when I log in as a regular member with no existing photos, the uploadphoto.php page loads quickly (presumably because the calculation of disk space used is 0).

So I suspect this is a bug. Please investigate and advise. I can give you login details if you need. If Chuck sees this the login details are username photopost and the password is your last name (all lowercase). That's a regular user account BTW. http://www.fordf150.net/photos/

Thanks.

Last edited by Swanny; January 25th, 2009 at 08:54 PM.
Swanny is offline   Reply With Quote
Old January 25th, 2009, 09:12 PM   #2 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Oh, I also wanted to add... what I've done and other notes:
- Re-uploaded a fresh copy of upload.php and uploadphoto.php (current 1/8/09 build)
- Verified permissions on upload folder (777)
- Category cache is disabled
- Flash uploader is turned off (I read in other posts here that it's a little buggy)
- My site is running PHP 4.4.2 (on a VPS, not shared hosting), connecting to a phpBB user db
- Uploads *do* work, but the entire process takes upwards of 10 minutes!! (for me only)
- No other speed/timing issues on any other page on the site, this only happened after the upgrade
Swanny is offline   Reply With Quote
Old January 25th, 2009, 10:04 PM   #3 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
OK, well now add to that...

I cannot edit any photo (editphoto.php). That just times out after "hanging" for a few minutes. Help!

Last edited by Swanny; January 25th, 2009 at 10:58 PM.
Swanny is offline   Reply With Quote
Old January 26th, 2009, 11:11 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,742
well I will check out the upload number probally a simple match calculation issue.

As far as hanging etc have you tried this?

HTTP 500 internal Server Error
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 26th, 2009, 12:42 PM   #5 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Hi Chuck,

I added this in the pp-inc.php:
ini_set("memory_limit", "48M");
ini_set("max_execution_time", 0);

It made no difference. There are no 500 errors, I checked the logs. When I login as a regular user the site is speedy, it's just on my account with 2,400 photos that it's slow. So far no one else has complained.

So, here's where I'm at today. I can upload photos, it just takes a few minutes between each step. I *cannot* however edit any photos. When I'm in a photo and I click edit, that does seem to timeout.

Perhaps the only way you'll see what I see is if I give you my own admin login details. If it comes down to it I'll do that Chuck.
Swanny is offline   Reply With Quote
Old January 26th, 2009, 12:47 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,742
I am not seeing any issues with your site when logged in editing uploading etc.

Ford F150 Photos - 0231

I see things are pretty modified on the site not sure if any overhead is added by those ads.

You can try upping that memory statement to 60. It could possibly be a timeout generating your cats list if its real long.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 26th, 2009, 12:51 PM   #7 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Well that's kind of the problem. It's only happening on my Webmaster account, I think it's due to having so many photos... so I can't replicate the issue with the generic photopost account...

You tell me. When loading uploadphoto.php or editphoto.php (the two files that seem to be causing the problems), what process is in place for checking permissions / file usage / etc. What could be hanging /slowing down those two files? Obviously uploadphoto.php does some checking on how much space I'm using, but I can't figure out editphoto.php...

I'll up that limit right now and try again. I'll post back in a few minutes.
Swanny is offline   Reply With Quote
Old January 26th, 2009, 12:54 PM   #8 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Exclamation

Quote:
Originally Posted by Chuck S View Post
I see things are pretty modified on the site not sure if any overhead is added by those ads.
I'm not sure what you mean by pretty modified. I changed some colors and added one ad on the showphoto.php page beside the photo. Otherwise it's stock. I made no edits to the uploadphoto.php or upload.php files. I guess it's a little modified ;-)

Quote:
Originally Posted by Chuck S View Post
You can try upping that memory statement to 60. It could possibly be a timeout generating your cats list if its real long.
AHA! I wonder if that's it? There are lots of categories, and oodles of personal galleries as well. I'll also create another admin account and see if I can duplicate it there. Because if another admin account bombs out on the editphoto.php page too it could be due to the long cats list.

I'll keep you posted.
Swanny is offline   Reply With Quote
Old January 26th, 2009, 01:05 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,742
I mean the ads on the index and showproduct yeah they should not cause any issue but from a support standpoint I need to meantion them as some things where modified from the default code. I have seen code edits cause many issues so just a note.

I highly suspect your issue is grabbing all the cats especially if lots of personal albums since admin sees everything. If only admin accounts have an issue we can change the cat pull to maybe only show the admins direct albums which would help you.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 26th, 2009, 01:06 PM   #10 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Quote:
Originally Posted by Swanny View Post
...AHA! I wonder if that's it? There are lots of categories, and oodles of personal galleries as well. I'll also create another admin account and see if I can duplicate it there. Because if another admin account bombs out on the editphoto.php page too it could be due to the long cats list...
But wait! SUCCESS!!! Well, sort of.... I gave another account admin privileges and now when I click Edit Photo it hangs too. It didn't hang when that account had regular permissions. So it looks like that problem is narrowed down. I'm actually able to reproduce that problem!

So where do we go from here? I guess the fix would be to decrease the number of galleries somehow, or adjust a setting somewhere in the scripts... FYI, I have 1,167 rows in the pp_categories table. That means there are 1,167 categories, and I guess they're all being generated into that dropdown list box for "moving" a photo... Is that right? About 1,000 of those are for personal member galleries. I would be willing to disable personal galleries if that helps... should I try that next or would that not affect existing galleries?

Progress!

p.s. I didn't mention this earlier but it takes a minute or two for the main administration page to load too (presumably because it's doing some size calculations as well).

p.p.s. Updating from 48M to 60M had no effect.
Swanny is offline   Reply With Quote
Old January 26th, 2009, 01:13 PM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,742
In Uploadphoto.php linesd 246-248 need to be changed to simply this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 26th, 2009, 01:20 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,742
As far as limited the cat display on editphoto in that script find this

Code:
Content visible to verified customers only.
replace twice I beleive with this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 26th, 2009, 01:30 PM   #13 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
I made the change. I timed it. From the time I clicked "Upload Photos" until the page loaded was almost exactly 4 minutes.

Well that helped:
Quote:
Disk space allowed on your account: Unlimited
Disk space used on your account: 109,846kb (112482772 bytes)
Disk space remaining for your account: Unlimited
One of the issues is now resolved. Will this be updated in the next release of PP or do I have to remember to edit this?

I also noticed that the number of member galleries on the Upload page is about about 1,000. So it does appear that generating that big list is potentially causing the problem. I'd like to do one of two things:
1. Delete all personal galleries so the script loads faster; or
2. Remove the personal galleries listing from the editphoto.php and uploadphoto.php pages

Honestly I don't want to remove the personal galleries simply because people use them. So is there a way to temporarily remove them to see if that's causing the slowdown?

Is it possible that the calculation of my disk space is slowing down the page as well? I'm not sure exactly how that works. Is PP actually scanning the file system to see how much space I'm physically using or is it just adding up the file sizes from all my photos (as entered in the db)?
Swanny is offline   Reply With Quote
Old January 26th, 2009, 01:33 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,742
Well I gave you an edit for editphoto to catmoveopt you can use you can also apply that to the catmoveopt lines in uploadphoto.php script as well to only show your albums and the main categories.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 26th, 2009, 01:33 PM   #15 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Quote:
Originally Posted by Chuck S View Post
As far as limited the cat display on editphoto in that script find this

Code:
Content visible to verified customers only.
replace twice I beleive with this

Code:
Content visible to verified customers only.
That did it. The editphoto page is fast now!
Swanny is offline   Reply With Quote
Old January 26th, 2009, 01:34 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,742
As noted do the same to uploadphoto only difference now would be you cant move photos to other users personal albums.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 26th, 2009, 01:35 PM   #17 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
I was typing that my earlier reply while you posted, I didn't see it until after I post it.

So in uploadphoto.php, lines 176-179 are where the catmoveopt lines are. What should I change them to? This is what it is right now:
Code:
Content visible to verified customers only.
Swanny is offline   Reply With Quote
Old January 26th, 2009, 01:45 PM   #18 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Quote:
Originally Posted by Chuck S View Post
As noted do the same to uploadphoto only difference now would be you cant move photos to other users personal albums.
Chuck,

Now that it seems the issue is resolved this begs the question. Is this something that could be coded as a setting in the admin panel? You know how there are currently the following "tweaks" for large PP installs:
- Use photo view caching to reduce view update queries on high load sites? Set this to YES if you want to enable the view caching code which caches photo view updates
- Load limit for server? If running *nix and you want to disable your forums when load goes over a certain limit; place the high limit here.
- Use category cache? On some larger sites, using the category cache can actually reduce performance.

Well... obviously the issue I've identified is an issue for some larger sites. And as we can see other accommodations have been made for larger sites. I would like to see an additional option:
- Disable admin move photos to personal categories On some larger sites uploadphoto and editphoto can take a long time to load if there are lots of personal categories. Turn this off to speed up those pages (for admin only)

Something to that effect would benefit PP customers in two ways:
1. I wouldn't have to "hack" every upgrade I do in the future
2. As other customers' PP installs grow, this is something that can be easily toggled on/off as necessary

What do you think? How hard would that be to code?
Swanny is offline   Reply With Quote
Old January 26th, 2009, 01:47 PM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,742
It is something I will discuss with Michael about adding as an option.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old January 26th, 2009, 01:49 PM   #20 (permalink)
Member
Verified Customer
 
Swanny's Avatar
 
Join Date: Jun 2002
Location: Western Canada
Posts: 333
Quote:
Originally Posted by Chuck S View Post
It is something I will discuss with Michael about adding as an option.
Thanks. In a way I hope others have the same problem to help the answer to that be "yes, we need it". LOL. Now about that code update for uploadphoto.... see my post a couple posts up. Please...
Swanny 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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Disk Space Grae vBGallery Suggestions 0 January 30th, 2008 05:28 AM
Disk space used - kb vs bytes volarium Photopost Pro Bug Reports 2 June 6th, 2007 11:41 AM
Disk space allowed? Ilse Photopost Pro Installation & Upgrades 7 April 14th, 2005 01:40 PM
Disk space for subscribers Blackhat How Do I? - vBulletin 3.0.X 1 March 26th, 2005 10:21 AM
Disk Space Limits Mark Goldstein General Discussion 2 September 13th, 2004 09:26 AM


All times are GMT -5. The time now is 06:17 PM.

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