PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.6x (http://www.photopost.com/forum/bugs-vbulletin-3-6x/)
-   -   [Fixed 2.4.1] SQL error viewing image following upgrade (http://www.photopost.com/forum/bugs-vbulletin-3-6x/134526-fixed-2-4-1-sql-error-viewing-image-following-upgrade.html)

DrMirth December 6th, 2007 07:54 AM

[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.

Zachariah December 6th, 2007 02:41 PM

Try this:

Edit: gallery/showimage.php

Find:
Code:

Content visible to verified customers only.
Under Add:
Code:

Content visible to verified customers only.

DrMirth December 6th, 2007 05:53 PM

That fixed it. Thanks again!

Fenriz December 7th, 2007 09:32 AM

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 December 7th, 2007 09:46 AM

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?

Zachariah December 7th, 2007 10:04 AM

Quote:

Originally Posted by Fenriz (Post 1211722)
I've just changed



with



and now it works. Is that correct?

:o very good


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

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97