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 Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old July 21st, 2004, 08:43 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 93
error was encountered during execution of the query

SELECT id,bigimage,cat,userid,approved,storecat FROM photos WHERE cat='' AND userid= AND approved='1' ORDER BY disporder,lastpost DESC

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 'AND approved='1' ORDER BY disporder,lastpost DESC' at line 1


What is causing this?
cnczone is offline   Reply With Quote
Old July 22nd, 2004, 10:06 AM   #2 (permalink)
donb
Guest
 
Posts: n/a
A spider most likely.
  Reply With Quote
Old July 22nd, 2004, 10:17 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 93
Thanks that's real helpful.
cnczone is offline   Reply With Quote
Old July 22nd, 2004, 10:19 AM   #4 (permalink)
donb
Guest
 
Posts: n/a
There are many threads here which discuss the exact same thing. There is no userID in the query, thus the query failed. The best we can determine it's a spider which caused the error message.

Not much else I can say. Nothing we can stop.
  Reply With Quote
Old July 22nd, 2004, 10:55 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 93
Anyone clicking on the picture is causing the error not a spider indexing the page.
cnczone is offline   Reply With Quote
Old July 22nd, 2004, 10:56 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 93
When the page loads their are errors on the page.
cnczone is offline   Reply With Quote
Old July 22nd, 2004, 11:29 AM   #7 (permalink)
donb
Guest
 
Posts: n/a
url please.
  Reply With Quote
Old July 22nd, 2004, 12:12 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 93
http://cnczone.com/gallery
cnczone is offline   Reply With Quote
Old July 22nd, 2004, 05:40 PM   #9 (permalink)
donb
Guest
 
Posts: n/a
Looking at several pic's on your site, and no error. Could you give me a link to an image which does produce this error?
  Reply With Quote
Old July 22nd, 2004, 06:06 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,683
I get no image errors

The errors on your page are do to the fact that when you altered everything per the VB FAQ on relative paths you left out a step

Your error comes from line 1244 of your code which is your VB footer

// Main vBulletin Javascript Initialization
vBulletin_init();


It is caused because in your header include template you have not altered the relative paths for the java script. That can easily be seen by viewing the source of your page

<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></head>


Alter that in your template file I meantioned and your java error will go away
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old July 22nd, 2004, 10:39 PM   #11 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 93
Look on the bottom left of your browser you will see a ! mark click on that and you will see the error.
cnczone is offline   Reply With Quote
Old July 23rd, 2004, 01:08 AM   #12 (permalink)
donb
Guest
 
Posts: n/a
As he said, that's the javascript error which is caused by not properly editing your vB.

That has NOTHING to do with the error message you started this thread with.
  Reply With Quote
Old July 23rd, 2004, 07:06 AM   #13 (permalink)
Member
Verified Customer
 
Join Date: Jul 2003
Posts: 93
So I need to change the clientscript to my path to that javascript lovation?

<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_menu.js"></script></head>
cnczone is offline   Reply With Quote
Old July 24th, 2004, 11:19 AM   #14 (permalink)
donb
Guest
 
Posts: n/a
That is correct, "clientscript/vbulletin_menu.js" is not a full path.
  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
Maximum execution time of 30 seconds Johnny Doomo Photopost Pro How Do I...? 15 January 11th, 2006 09:36 PM
all ads - query error cnczone Classifieds Bug Reports 2 July 20th, 2004 08:44 AM


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

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