PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 28th, 2005, 06:53 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Posts: 8
showimage.php? SQL error

Database error in vBulletin 3.5.2:

Invalid SQL:

SELECT images.imageid, username, images.userid, images.title, images.catid, dateline, images.description, keywords, filename, thumbname, width, height, extension, filesize, originalname, originalfilesize, originalwidth, originalheight, views, posts, valid, open, sticky, votenum, votetotal, options, catimage, catuserid, membercat, useroptions, adv_setting, customfields.*
L
L
L
FROM adv_gallery_images AS images
LEFT JOIN adv_gallery_categories AS categories ON (images.catid = categories.catid)
LEFT JOIN adv_gallery_customfields_entries AS customfields ON (images.imageid = customfields.imgid)
L
L
L
WHERE images.imageid = '2';

MySQL Error : 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 'L
L
FROM adv_gallery_images AS images
LEFT JOIN adv_gallery_categories AS ' at line 3 Error Number : 1064
Date : Wednesday, December 28th 2005 @ 06:26:48 AM
Script : http://mysite.com/new_site/gallery/s...ge.php?i=2&c=2
Referrer : http://mysite.com/new_site/gallery/browseimages.php?c=2
IP Address : **.**.***.**
Username : Unregistered
Classname : vb_database

I've looked through the forums and can;t seem to find this so anyone know why this is happening??

Thanks
Noxious is offline   Reply With Quote
Old December 28th, 2005, 07:01 AM   #2 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2005
Posts: 8
ah fixed it now, well it works

the problem code was

$image = $db->query_first("
SELECT images.imageid, username, images.userid, images.title, images.catid, dateline, images.description, keywords, filename, thumbname, width, height, extension, filesize, originalname, originalfilesize, originalwidth, originalheight, views, posts, valid, open, sticky, votenum, votetotal, options, catimage, catuserid, membercat, useroptions, adv_setting, customfields.*
$query[favfields]
$query[subfields]
$query[exiffields]
FROM " . TABLE_PREFIX . "adv_gallery_images AS images
LEFT JOIN " . TABLE_PREFIX ."adv_gallery_categories AS categories ON (images.catid = categories.catid)
LEFT JOIN " . TABLE_PREFIX . "adv_gallery_customfields_entries AS customfields ON (images.imageid = customfields.imgid)
$query[favjoin]
$query[subjoin]
$query[exifjoin]
WHERE images.imageid = '$imageid'
");

and i removed the lines in red
Noxious is offline   Reply With Quote
Old December 28th, 2005, 07:48 AM   #3 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Thank you for the info.
We will take a look and see whats going on.

I see it happened on "Username : Unregistered"
- Has this happened on a Member / Non-Guest?
- Can you list the settings of your "Guest" account for the gallery ?
- Custom settings of catagory 2 - if any.

Last edited by Zachariah; December 28th, 2005 at 07:51 AM.
Zachariah is offline   Reply With Quote
Old May 9th, 2006, 08:54 PM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2006
Posts: 11
Send a message via MSN to 993ti
The same has happened to me now.
I'm logged in.
If i remove the lines in red above, it shows the image but if i post a reply, i get the same kind of error.
I tried uploading a fresh showimage.php and newreply.php but that didn't work.

It's strange though, i haven't changed anything
Here's the error i get when replying:
Code:
Content visible to verified customers only.
These lines are responsible (again in showimage.php):
Code:
Content visible to verified customers only.
993ti is offline   Reply With Quote
Old May 9th, 2006, 09:03 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2006
Posts: 11
Send a message via MSN to 993ti
Now even removing the lines for showing the image doesn't work.
Could it be a server thingy?
993ti 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
Error On Showimage.php dieselpowered Installs and Upgrade - vBulletin 3.5.X 3 November 21st, 2005 03:45 PM
Javascript error at showimage.php snw Installs and Upgrade - vBulletin 3.5.X 4 November 21st, 2005 03:06 PM
Error "showimage.php" LNTT Installs and Upgrade - vBulletin 3.5.X 2 September 1st, 2005 02:23 PM
index.php cat SQL error(FIXED) Arnie ReviewPost Bug Reports 1 August 28th, 2005 04:57 PM
ShowImage.php cgmojoco Installs and Upgrade - vBulletin 3.0.X 4 June 29th, 2005 05:26 PM


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

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