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 September 11th, 2005, 04:59 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Sep 2005
Posts: 3
SQL errors

We're running Photopost 5.14 with Vbulletin 4.5 RC2, not fully integrated, but using the VB logon and styles.

2 SQL errors are being reported on a fairly frequent basis :

Quote:
An error was encountered during execution of the query:

SELECT id,catname,thumbs,cattype,parent,password,theme FROM pp_categories WHERE id=all

The query returned with an errorcode of:

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 'all' at line 1

and

Quote:
An error was encountered during execution of the query:

SELECT id,catname,thumbs,cattype,parent,password,theme FROM pp_categories WHERE id=recent

The query returned with an errorcode of:

Unknown column 'recent' in 'where clause'
The implementation may be a little unusual in that we only have the members galleries and no additional categories.

I've not managed to reproduce any errors myself, so not sure what is causing them.

Site is at http://www.readytogo.net/userphotos/

PHP Version 4.3.11
SQL 4.0.25
rogerl is offline   Reply With Quote
Old September 11th, 2005, 07:05 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,794
Yeah dont know how I would it could get that error since cat is typecast as an INTEGER in uploadphoto. If it is not an integer it should be empty which means this query does not run

if ( isset($cat) && !empty($cat) ) {
$query = "SELECT id,catname,thumbs,cattype,parent,password,theme FROM {$Globals['pp_db_prefix']}categories WHERE id=$cat";
$ctitleq = ppmysql_query($query, $link);

I take it these are email errors?
__________________
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 September 13th, 2005, 03:52 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Sep 2005
Posts: 3
Quote:
Originally Posted by omegatron
I take it these are email errors?
Yes, both errors reported via email on a regular basis
rogerl is offline   Reply With Quote
Old September 13th, 2005, 04:31 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,794
Well it is interesting indeed. Yes I can not reproduct either and the upload file is the only file that exact query is in. It is surrounded by the if statement meaning to only run it if the cat variable is not empty so I can't see how this is happening.
__________________
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
Sh$tload of SQL errors on fresh install Fatsie Classifieds Installation & Upgrades 14 August 4th, 2005 12:11 PM
SQL errors during initial installation sbtiti Classifieds Installation & Upgrades 11 August 25th, 2004 09:12 PM
strange sql errors out of the blue, for no reason? sross Photopost Pro Installation & Upgrades 3 August 24th, 2004 09:19 AM


All times are GMT -5. The time now is 10:21 AM.

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