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 Rate Thread Display Modes
Old October 28th, 2007, 08:10 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
pp 6.0 recent photos limit

Got a report that the showphoto page loads "forever" if you're coming from recent photos.

Params are like this:
showphoto.php/photo/158248/cat/all/limit/last14

I think there's a bug while creating the correct query to grab the photos.

Code:
Content visible to verified customers only.
As there's a cat=all in the param list, the elseif for the limit won't be executed at all. Although that would be the right one, at least in my opinion. I flipped the OR to an AND, but I'm not sure if this will cause problems elsewhere. So maybe you can have a look at it.

Another fix would probably be to remove the cat=all param from the recent photo links.
Astaran is offline   Reply With Quote
Old October 28th, 2007, 11:34 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
Well the simply thing to do would be to place a LIMIT variable on that one specific query if it causes you issue. The way the arrays are formatted it should only process the number of results we need to get the number of results we need. I will ask Michael if he has any other ideas but a LIMIT variable in the query would help.
__________________
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 October 28th, 2007, 01:11 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Hi Chuck,

applying a LIMIT is certainly a got idea. I did not suggest it yet, because I haven't looked at the surounding code yet. Once I have, I'll let you know of the result. Not limiting the query results into performance problems. Problem is, with the current implementation, you need to get all for the paging and you have to check each photo if it's private or not. Using the "view all photos" link on a big site will bring the server down easily. On a busy site, the "14 days" can also be a real problem.

The bug I posted here is a little bit different, I think. The "limit=last14" means that only photos from the last 14 days should be displayed. So what's certainly missing is the WHERE condition "date < 14 days ago". As you can see, that's constructed in the second elseif (see code snippet above). But that elseif is not executed, because of cat=all.
Astaran is offline   Reply With Quote
Old October 28th, 2007, 01:27 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
True and yes limits would still help as even 14 days could be alot of results on a busy site.
__________________
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 October 28th, 2007, 01:33 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jan 2004
Posts: 220
Would be great if Michael could have a look at it. Hopefully he can think of a way to optimize it. The showgallery script is working similar, so same problem there. Just not as bad as in showphoto.
Astaran is offline   Reply With Quote
Old October 28th, 2007, 01:58 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,788
Well I think he added alot of code which do make alot of speed improvements on large servers but there is always room for improvement for sure.
__________________
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
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
Troubles with &limit=recent in the URL charm Photopost Pro Bug Reports 10 December 28th, 2006 11:15 AM
uploaded over 10k photos, recent photos stuck! photobullet Photopost Pro Bug Reports 3 August 13th, 2006 12:42 PM
/limit/recent URL issues jstarkweather Photopost Pro Installation & Upgrades 7 March 22nd, 2006 09:46 AM
5.3 upgraded, now all photos have "/limit/recent" at the address Scream And Fly Photopost Pro Installation & Upgrades 2 February 6th, 2006 11:56 PM
How to make `Recent Photos' work like view all recent pics? mjm Photopost Pro How Do I...? 1 February 3rd, 2005 02:54 PM


All times are GMT -5. The time now is 07:15 AM.

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