 | |  | | | Photopost Pro Bug Reports Post post installation PhotoPost Pro problems here. |
June 17th, 2005, 04:27 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Dec 2003
Posts: 46
| upload limit problem(fixed)
Hi!
several members of my gallery can't upload any images. The script says that they have reached their upload limit for this day.
There is actually an upload limit set per day, but neither of them uploaded any pics the last days. The limit is set to 10 and they cannot upload to some categories, but to some cats they can...
|
| |
June 17th, 2005, 04:44 PM
|
#2 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
Same here, some of my members are complaining that they can't upload anything because of reaching their 3 per day limit yet they have not uploaded anything for days. I brought this up the other day but the general opinion was that it wasn't the script that was causing it. However, this has only started happening since I updated to PP5.11 and unlike the other day my server has not had any MySQL problems so I'm more inclined to believe its a script bug that's crept in with the update.
Running PP5.11 integrated with vB3.06
|
| |
June 17th, 2005, 04:49 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Dec 2003
Posts: 46
|
yep sounds familiar to me 
I am using pp5.11 and vb3.07
|
| |
June 17th, 2005, 05:34 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
Well nothing has changed since this has been added Code: Content visible to verified customers only.
This is a simple query here that is run when uploadlimit is greater than 0 in uploadphoto.php. Basically the upgrade had to do with variables passed on the script not variables defined by queries so there can not be an error. Try running that query for the user in phpmyadmin and see what you get.
SELECT COUNT(*) FROM photos WHERE userid=102 AND date > UNIX_TIMESTAMP( DATE_SUB(NOW(), INTERVAL 24 HOUR) )
Basically this will bring a count back.
$User['uploadlimit'] is set in usergroup options
if ( $uploadchk >= $User['uploadlimit'] ) {
I dont know of any way to spoof or fool this query as its not changed even when it was a hack that I designed way back.
|
| |
June 17th, 2005, 05:47 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Dec 2003
Posts: 46
|
hm just ran the sql on one user who has that problem.. it returns 0 because he didn't upload anything. so I tried to upload a pic to the cat "nature"
"uplimit exceeded"
uploaded it than to the cat "members"
and it worked
very strange  )
|
| |
June 17th, 2005, 05:53 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
That would be indeed strange as uplimit is a global variable and not category dependant variable
Let me do some testing
Last edited by Chuck S; June 17th, 2005 at 06:01 PM.
|
| |
June 17th, 2005, 06:09 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Dec 2003
Posts: 46
|
yep  i can give you an account if you want
for now I removed the upload limit 'till we find something
|
| |
June 19th, 2005, 10:57 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
Okay fix is pretty simple.
At line 289-290 of vb3.php where we initialize some variables add this
$User['uploadlimit'] = 0;
That should take care of the issue.
|
| |
June 19th, 2005, 12:27 PM
|
#9 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
Schweet! This should placate the ravening hordes |
| |
June 19th, 2005, 12:54 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 313
| Quote: |
Originally Posted by omegatron Okay fix is pretty simple.
At line 289-290 of vb3.php where we initialize some variables add this
$User['uploadlimit'] = 0;
That should take care of the issue. | Problem also here and this solution don't work for me.
Any other idea what the problem can be?
I also updated to v511 and integrated with vB3.07 seperate database
|
| |
June 19th, 2005, 01:08 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
Hello
I run VB3 and this surely solved the issue for me here as I had the same issue when I checked into this and I tested on multiple installs this fix before posting this resolution. Problem was not initializing the variable so I went back through to an old version 4.8 to see what was missing. The only difference was this one line as noted. I then tested on my VB3 and it works as expected.
I will wait for others to test here in this thread that have reported it but so far I see no other issues here.
I suggest you run the query in uploadphoto.php for a specific user on the upload limit and see the results you get as I previously stated. Sometimes one does not realize they actually uploaded that many photos in a 24hour period. Always the first thing to check before moving on.
With this fix I very simple tested this. I registered a regular user account on my VB. I as admin set uplimit to 2 per day. I then uploaded a photo without the fix and encountered the issue sporatically as others noted. I then initialized the variable and deleted all photos and tried again. It worked as expected. At least this is what I found in my testing.
|
| |
June 19th, 2005, 05:03 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
aberg
If you still have an issue with this PM me a link to your install and admin login as well as any necessary server info to go in any check on this.
|
| |
June 19th, 2005, 05:46 PM
|
#13 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
One of my members just reported getting the warning after uploading two images and his last previous image was on June 6 - my limit is set at 3 per 24hrs.
|
| |
June 19th, 2005, 08:24 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
Can you replicate it?
If you set your usergroup to say 2 upload 2 images and then see if it stops you after the second image then delete one image and try uploading again. You should be able to upload a second and then be stopped again.
|
| |
June 19th, 2005, 08:37 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
Rids
I know your site so I registered a username Omegatron and did 3 uploads and tried to upload a fourth and was stopped. I deleted one and uploaded again for a total of 3 and tried again and was limited so everything works as expected from what I see.
Try checking that user through phpmyadmin running that query and see what you get for him.
|
| |
June 19th, 2005, 08:38 PM
|
#16 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
I upped your account to admin at Terra
|
| |
June 19th, 2005, 08:45 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
Nothing looks wrong that I see. As a registered user I was restricted to 3 uploads per day
|
| |
June 19th, 2005, 08:46 PM
|
#18 (permalink)
| | Member
Join Date: Aug 2002 Location: TeXaS
Posts: 293
|
Which is as it should be so why Phoenix2 should get the warning after only two is puzzling to say the least.
|
| |
June 20th, 2005, 09:26 AM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
Thats why I stated to run the query in phpmyadmin to see what the query returns |
| |
June 20th, 2005, 09:49 AM
|
#20 (permalink)
| | Member Verified Customer
Join Date: Dec 2003
Posts: 46
|
ok I added the line and hope to get some feedback from my users soon |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 11:38 AM. | |