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 6th, 2007, 07:54 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Sep 2003
Location: Aberdeen
Posts: 15
Send a message via MSN to DrMirth
[Fixed 2.4.1] SQL error viewing image following upgrade

Okay, next problem! When I try to view a full-size photo I receive the following error:

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT
posts.postid, posts.pagetext, posts.title, posts.userid, posts.username AS postusername, posts.dateline, posts.ipaddress AS ip, posts.iconid, posts.allowsmilie, posts.showsignature, user.*, userfield.*, usertextfield.*
,icon.title as icontitle, icon.iconpath
,avatar.avatarpath, NOT ISNULL(customavatar.filedata) AS hascustom, customavatar.dateline AS avatardateline, avatarrevision


FROM ppgal_posts AS posts
LEFT JOIN user AS user ON (posts.userid = user.userid)
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid)
LEFT JOIN icon AS icon ON (posts.iconid = icon.iconid)
LEFT JOIN reputationlevel AS reputationlevel ON (user.reputationlevelid = reputationlevel.reputationlevelid)

WHERE imageid = '8318' AND posts.visible = 1
ORDER BY posts.dateline
LIMIT 0, 10;

MySQL Error : Unknown table 'usertextfield'
Error Number : 1051
Date : Thursday, December 6th 2007 @ 08:35:35 AM
Script : http://www.aberdeen-music.com/galler...imageuser=1069

Just upgraded from v2.3 to v2.4 of VBGallery and I could view the same image fine in the previous version.

Any help would be much appreciated.
DrMirth is offline  
Old December 6th, 2007, 02:41 PM   #2 (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
Try this:

Edit: gallery/showimage.php

Find:
Code:
Content visible to verified customers only.
Under Add:
Code:
Content visible to verified customers only.
Zachariah is offline  
Old December 6th, 2007, 05:53 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Sep 2003
Location: Aberdeen
Posts: 15
Send a message via MSN to DrMirth
That fixed it. Thanks again!
DrMirth is offline  
Old December 7th, 2007, 09:32 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 54
That doesn't help me. Now I have a bug:

MySQL Error : Cross dependency found in OUTER JOIN; examine your ON conditions
Error Number : 1120

Any thoughts?
Fenriz is offline  
Old December 7th, 2007, 09:46 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 54
I've just changed

Quote:
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON (user.userid = userfield.userid)
with

Quote:
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON (user.userid = usertextfield.userid)
and now it works. Is that correct?
Fenriz is offline  
Old December 7th, 2007, 10:04 AM   #6 (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
Quote:
Originally Posted by Fenriz View Post
I've just changed



with



and now it works. Is that correct?
very good
Zachariah is offline  
Closed Thread


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
SQL error after upgrade to 6.0 Pasqualis Photopost Pro Bug Reports 1 October 2nd, 2007 10:24 AM
SQL Error after Upgrade dondaniel Photopost Pro Installation & Upgrades 3 September 23rd, 2007 09:06 AM
SQL Error: Unknown column 'notcat' in 'where clause'(FIXED) qwk98gt Photopost Pro Bug Reports 10 October 21st, 2005 02:37 PM
index.php cat SQL error(FIXED) Arnie ReviewPost Bug Reports 1 August 28th, 2005 04:57 PM
My SQL Error for 5.13(FIXED) iphoto Photopost Pro Bug Reports 2 July 25th, 2005 02:49 PM


All times are GMT -5. The time now is 03:14 AM.

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