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 > vBGallery Support > vBGallery Bug Reports > Bugs - vBulletin 3.6x

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old May 12th, 2008, 11:05 AM   #1 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
[Bug 2.4.3] Plugin on fetch_userinfo_query causes DB errors

Code:
Content visible to verified customers only.
This causes ppgal_user.userid being read as userid - which is fatal if there is no entry for that user (eg. userid = NULL).

I performed the mainenance functions but the error persisted - so I had to disable the plugin.
Kirby is offline   Reply With Quote
Old May 13th, 2008, 07:47 AM   #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
Quote:
Originally Posted by Kirby View Post
Code:
Content visible to verified customers only.
This causes ppgal_user.userid being read as userid - which is fatal if there is no entry for that user (eg. userid = NULL).

I performed the mainenance functions but the error persisted - so I had to disable the plugin.
There should not be a error on creation of the user in the gallery table.
- plugin: register_addmember_complete * Add User to Gallery AdminCP
- plugin: useradmin_update_save * Add User to Gallery on Register

Is there another way you are adding users that might need a SQL entry?

There is a single quote on AdminCP plugin in wrong place that a few people had problems with. (weird my 2 test systems did not error.)

edit:
forum/includes/vbgallery/useradmin_update_data.php

Change:
Code:
Content visible to verified customers only.
To:
Code:
Content visible to verified customers only.

Last edited by Zachariah; May 13th, 2008 at 07:57 AM.
Zachariah is offline   Reply With Quote
Old May 15th, 2008, 05:55 AM   #3 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
[quoteIs there another way you are adding users that might need a SQL entry?[/quote]
There could be any curcumstances the DB entry could be missing - for example when new users are being createds while the product/plugin system is disabled.

You must make sure that standard fields (like user.userid) do not get overwritten.
Kirby is offline   Reply With Quote
Old May 20th, 2008, 07:15 AM   #4 (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
I am going to change the system a bit.

Tables Merge:
ppgal_user => user
ppgal_settings => settings
ppgal_settinggroup => settinggroup
Zachariah is offline   Reply With Quote
Old May 23rd, 2008, 08:19 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Location: Germany
Posts: 165
Sorry, I can't understand all.

I have the same error with the plugin "Userinfo Merge". DB errors at registration and also if cklicking on a not registered (not verifed) member (link to the memberprofil).

What does the plugin "Userinfo Merge" do? Is it necessary for the galery? And what have I to do exactly to correct the error?

Last edited by Mike_K; May 23rd, 2008 at 09:41 AM.
Mike_K is offline   Reply With Quote
Old May 23rd, 2008, 09:50 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
You can disable for now, I will phase it out and collect the data another way.
Zachariah is offline   Reply With Quote
Old July 28th, 2008, 06:17 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2007
Posts: 19
I am having this same problem. It's been about 2 months, is there a fix in the works? Disabling this particular plugin removed the gallery pictures from a member profile.

Here is a copy of the error I receive when, for example, you try to view the profile of a member who has not yet been approved.

----------
Database error in vBulletin 3.7.2:

Invalid SQL:

SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid =;

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 '' at line 3
Error Number : 1064
Request Date : Monday, July 28th 2008 @ 02:56:16 AM
Error Date : Monday, July 28th 2008 @ 02:56:16 AM
Script : http://www.xxxx/forums/members/xxxx.html
Referrer :
IP Address : X.X.X.X
Username : Unregistered
Classname : vB_Database
MySQL Version :
----------

Thanks
info5538 is offline   Reply With Quote
Old August 2nd, 2008, 03:49 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 49
I have the same error as above.....I had to disable vbgallery for now....
hotwheels is offline   Reply With Quote
Old August 4th, 2008, 12:30 PM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 27
same problem here with user information, and user cannot register on the board and admin cannot make changes on new register.


PROBLEM WITH USERS THAT LOOKS ON THE PROFILE:
Invalid SQL:
SELECT COUNT(*) as X FROM thanks WHERE userid =;

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 '' at line 1
Error Number : 1064
Request Date : Sunday, August 3rd 2008 @ 11:15:39 PM
Error Date : Sunday, August 3rd 2008 @ 11:15:39 PM
Script : Animate e.V. - Profil ansehen: Master94
Referrer :
IP Address : 86.33.55.56
Username : seiya
Classname : vB_Database
MySQL Version : 5.0.32-Debian_7etch5-log


PROBLEM WITH USERS THAT WANT TO REGISTER:

Database error in vBulletin 3.7.2:

Invalid SQL:
INSERT INTO logins (userid, username, ipaddress, phpdate, logintype) VALUES (, 'testaccount66322', '86.33.55.56', 1217867834, '');

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 ' 'testaccount66322', '86.33.55.56', 1217867834, '')' at line 1
Error Number : 1064
Request Date : Monday, August 4th 2008 @ 06:37:14 PM
Error Date : Monday, August 4th 2008 @ 06:37:14 PM
Script : Animate e.V. - Powered by vBulletin
Referrer : Animate e.V.
IP Address : 86.33.55.56
Username : testaccount66322
Classname : vB_Database
MySQL Version :
animate is offline   Reply With Quote
Old August 5th, 2008, 09:33 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 49
Here are a few of the errors i recieve

Quote:
Database error in vBulletin 3.7.2:
Invalid SQL:
SELECT user.username, shout.userid, shout.shoutid, shout.shoutby, shout.message, shout.dateline
FROM vbp_shout AS shout
LEFT JOIN vb3user AS user ON (shout.userid = user.userid)
WHERE shout.visible = 1
AND (shout.private = 0 OR shout.userid = )

ORDER BY shout.shoutid
DESC LIMIT 6;
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 ')

ORDER BY shout.shoutid
DESC LIMIT 6' at line 5
Error Number : 1064
Request Date : Tuesday, July 29th 2008 @ 09:06:56 PM
Error Date : Tuesday, July 29th 2008 @ 09:06:56 PM
Script : Insane Mustangs - Insane Mustangs
Referrer :
IP Address : ******
Username : ******
Classname : vb_database
MySQL Version :
Quote:
Database error in vBulletin 3.7.2:
Invalid SQL:
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM vb3usernote AS usernote
WHERE userid =;
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 '' at line 3
Error Number : 1064
Request Date : Tuesday, July 29th 2008 @ 08:12:22 PM
Error Date : Tuesday, July 29th 2008 @ 08:12:22 PM
Script : Insane Mustangs, GT, Saleen, Roush, Cobra - View Profile: sslivingu
Referrer :
IP Address : ********
Username : Unregistered
Classname : vb_database
MySQL Version :
Quote:
Database error in vBulletin 3.7.2:
Invalid SQL:
SELECT location, badlocation FROM vb3session WHERE userid = AND lastactivity > 1217385135 ORDER BY lastactivity DESC LIMIT 1;
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 'AND lastactivity > 1217385135 ORDER BY lastactivity DESC LIMIT 1' at line 1
Error Number : 1064
Request Date : Tuesday, July 29th 2008 @ 10:47:15 PM
Error Date : Tuesday, July 29th 2008 @ 10:47:15 PM
Script : Insane Mustangs, GT, Saleen, Roush, Cobra - View Profile: 20080729
Referrer : Insane Mustangs - Insane Mustangs
IP Address : *******
Username : hotwheels
Classname : vb_database
MySQL Version : 5.0.51a-community
Quote:
Database error in vBulletin 3.7.2:
Invalid SQL:
INSERT INTO vb3logins (userid, username, ipaddress, phpdate, logintype) VALUES (, 'bparks77', '205.247.207.210', 1217361945, '');
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 ' 'bparks77', '205.247.207.210', 1217361945, '')' at line 1
Error Number : 1064
Request Date : Tuesday, July 29th 2008 @ 04:05:45 PM
Error Date : Tuesday, July 29th 2008 @ 04:05:45 PM
Script : Insane Mustangs, GT, Saleen, Roush, Cobra - Powered by vBulletin
Referrer : Insane Mustangs - Insane Mustangs
IP Address : ********
Username : bparks77
Classname : vb_database
MySQL Version :
and the bookmarks block is broken.........I currently have the gallery shutoff so my site can continue to run. Hopefully there will be some sort of fix to this.....If a zach needs, i can give him access to my site and he can try to see if he can locate the problem from there........It took me a while to find that it was the vbgallery causing the problem, which sucks, cause it is a great software....
hotwheels is offline   Reply With Quote
Old August 5th, 2008, 09:34 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Have you tried turning off the plugins Zach noted or running them?

I am not too familiar with vbGallery but you could send info for us to look at this.
__________________
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 August 5th, 2008, 02:43 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Dec 2005
Location: Germany
Posts: 165
Think it's time for a bugfix!

But until this, go in the admin cp -> Add-ons & Plug-ins -> manage Plug-ins.

Find there under "Add-on : PhotoPost vBGallery" the Plug-in "Userinfo Merge" / Hook: "fetch_userinfo_query" and uncheck it.

This should help. Also no problems with the gallery.
Mike_K is offline   Reply With Quote
Old August 5th, 2008, 08:11 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Yes I do beleive this is what Zachariah had stated above until he could rewrite that entire plugin.
__________________
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 August 6th, 2008, 12:27 PM   #14 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 27
thanks Mike_K and Chuck_S for the support, i think i wait for the bug fixed version.......
animate is offline   Reply With Quote
Old August 12th, 2008, 08:16 PM   #15 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2007
Posts: 19
Is Zach still working on this? Considering the renewal fees are the same as the more expensive products, I hope we get some bug fixes at least. Thanks for helping out Chuck/Mike.
info5538 is offline   Reply With Quote
Old August 12th, 2008, 09:47 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Right now the only fix is to disable this plugin and there is no degrade to the product in doing so. I myself have fixed about 4 bugs in the last couple weeks.
__________________
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 August 13th, 2008, 06:11 PM   #17 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2007
Posts: 19
Quote:
Originally Posted by Chuck S View Post
Right now the only fix is to disable this plugin and there is no degrade to the product in doing so. I myself have fixed about 4 bugs in the last couple weeks.
When I disable the userinfo_merge plugin as recommended, it no longer shows the latest pictures in a member's profile page. So although this may fix the registration problems, it is disabling a very useful feature.
info5538 is offline   Reply With Quote
Old August 22nd, 2008, 02:38 PM   #18 (permalink)
Junior Member
Verified Customer
 
Join Date: Apr 2005
Posts: 27
have anyone fixed the bug?
animate is offline   Reply With Quote
Old August 22nd, 2008, 02:45 PM   #19 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
[Bug 2.4.3] Plugin on fetch_userinfo_query causes DB errors

This post has the bugfix that I am aware of.
__________________
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 August 24th, 2008, 04:17 PM   #20 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 49
I tried that fix today chuck
Quote:
if (!$vbulletin->GPC['userid'])
{
$galusers = $db->query("SHOW TABLE STATUS LIKE '". TABLE_PREFIX . "user'");
while ($galuser = $db->fetch_array($galusers))
{
$galuserid = $galuser['Auto_increment'];
$db->query_write("REPLACE INTO ". TABLE_PREFIX . "ppgal_user (userid) VALUES ($galuserid)");
}
}
?>
i still get this error as i did before:

Quote:
Database error in vBulletin 3.7.2:

Invalid SQL:

SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM vb3usernote AS usernote
WHERE userid =;

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 '' at line 3
Error Number : 1064
Request Date : Sunday, August 24th 2008 @ 05:15:22 PM
Error Date : Sunday, August 24th 2008 @ 05:15:22 PM
Script : Insane Mustangs, GT, Saleen, Roush, Cobra - View Profile: lilspitfire98
Referrer : Insane Mustangs - Insane Mustangs
IP Address : **********
Username : **********
Classname : vb_database
MySQL Version : 5.0.51a-community
hotwheels 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
"Last Post" bug with plugin: Userinfo Merge -> fetch_userinfo_query trBotHead Bugs - vBulletin 3.6x 50 June 2nd, 2009 03:40 PM
Getting PhotoPost plugin errors. OttoBomb Photopost Pro Installation & Upgrades 3 August 10th, 2007 01:08 PM
Email Errors (Serious Bug?) Eric Brooks Classifieds Bug Reports 1 November 2nd, 2006 03:32 PM
Almost bug free, but page errors, etc. youradultworld Photopost Pro Installation & Upgrades 8 October 7th, 2005 02:32 PM
lots of errors on 3.01(NOT A BUG) 7thgencivic.com ReviewPost Bug Reports 4 September 3rd, 2005 10:32 AM


All times are GMT -5. The time now is 03:24 PM.

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