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 How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old August 26th, 2006, 09:02 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Location: Montreal
Posts: 6
uploading error with SQL

Hi,

Just upgraded to 5.3. When I try to upload from my computer, or with files already in the upload folder, I get a Page Unavailable message. When I click refresh I get the following error message
We're sorry, but the system experienced an unrecoverable error. Please try again later.

Script:

Query: SELECT SUM(filesize) AS fsize FROM pp_photos WHERE userid= AND storecat=0

Result: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND storecat=0' at line 1

Database handle: Resource id #23
Everything was working just fine before when I was using 5.21...

Using PHP 5.0.4, MySQL 4.1.20

Last edited by rleroux; August 26th, 2006 at 09:17 PM.
rleroux is offline   Reply With Quote
Old August 27th, 2006, 07:31 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
user cannot upload
__________________
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 August 27th, 2006, 10:19 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Location: Montreal
Posts: 6
Quote:
Originally Posted by Chuck S View Post
Hi,

Did everything suggested in the post, and still getting the "Unable to find page" message...

All permissions are set as asked in the doc. Any other idea?

Thanks in advance!

rl
rleroux is offline   Reply With Quote
Old August 27th, 2006, 12:38 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
The post above takes care of the mysql error. If your using GD2 and uploading large files you may want to visit this thread

http://www.photopost.com/forum/showp...69&postcount=6
__________________
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 August 27th, 2006, 09:38 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Location: Montreal
Posts: 6
Did that also, but the problem remains. I think it might have something to do with the server settings. I have upgraded another license of Photopost running on another server, as a standalone not integrated with vBulletin, and no problem...

Last edited by rleroux; August 28th, 2006 at 04:27 AM.
rleroux is offline   Reply With Quote
Old August 28th, 2006, 07:59 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Very well could be list your problem site and test login here. So you upped your PHP memory and no go still thats unusual. what size file? Try a smaller one.
__________________
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 August 28th, 2006, 12:24 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Location: Montreal
Posts: 6
Quote:
Originally Posted by Chuck S View Post
Very well could be list your problem site and test login here. So you upped your PHP memory and no go still thats unusual. what size file? Try a smaller one.
OK, smaller size and dimension files work. I think the problem lies in the resizing for images. In the upload options I have:
Max allowable image width in pixels: 2500
Max allowable image height in pixels: 2500
If photo upload width or height exceeds maximums, resize upload down to max dimensions? : yes
But if I try to upload a larger width or height image, it does not work. I have changed the width and height settings to fit my image (3500) and it worked. So it seems like a resizing problem.

I will send you login details through PM

Thanks

r
rleroux is offline   Reply With Quote
Old August 28th, 2006, 07:09 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
You know you also have max execution of your php scripts set to 30 seconds thats not gonna work with larger files that may take over 30 seconds
__________________
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 August 29th, 2006, 04:57 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Location: Montreal
Posts: 6
I have tried everything and it definitely comes down to this: if photo upload width or height exceeds maximums, it will not resize upload down to max dimensions, however I ajust settings. So for this to work I have to either ajust max allowable image width and/or height in pixels in the Admin panel to fit the photo I want to upload, or resize my photo to fit max allowable image width and/or height in pixels prior to upload.

rleroux is offline   Reply With Quote
Old August 29th, 2006, 08:19 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Dimensions have nothing to do with anything trust me here. It is filesize because what happens when you edit a big file yourself in a graphics program and resize it then it gets really smaller hense your uploading a small file

The filesizes your sending are real large for a 3500x3500 item no doubt and your issue is as I state. You need to clear your uploads directory and revisit post 4 and 8 and make changes necessary. You might want to also post a url to your site and your sites php settings
__________________
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 August 29th, 2006, 07:16 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Location: Montreal
Posts: 6
Seems my problem had something to do with GD swallowing anormal amounts of memory on our system (even with memory limit set to 48mgs in php). My system admin installed ImageMagick, I switched to it and everything is now working real fine.

Thanks for your help and sorry for the bother.

r
rleroux 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
Uploading Gives SQL Error dieselpowered Installs and Upgrade - vBulletin 3.0.X 3 May 27th, 2006 10:47 AM
SQL Error [efs]ChAoS Photopost Pro How Do I...? 3 May 9th, 2006 10:33 AM
SQL Error iphoto Photopost Pro Installation & Upgrades 1 November 12th, 2004 07:49 PM
SQL Error when uploading photos kevinrstruck Photopost Pro Installation & Upgrades 1 October 26th, 2004 09:56 PM
SQL Error kevinrstruck Photopost Pro Installation & Upgrades 9 October 24th, 2004 08:44 AM


All times are GMT -5. The time now is 11:42 AM.

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