PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old March 3rd, 2009, 10:44 PM   #1 (permalink)
Member
 
Join Date: Feb 2009
Posts: 31
I have a database error when i'm trying to delete a message.

I have a database error when i'm trying to delete a message.

I first click on the "Edit" icon (bottom right side of the post panel). Then i check the option to delete the message and i hit the button "Delete this Message". That's when the following error appears:
----------
Database error in vBulletin 3.8.1:

Invalid SQL:
UPDATE LOW_PRIORITY vb_user SET pppcount = pppcount-1 WHERE userid = '1';

MySQL Error : Unknown column 'pppcount' in 'field list'
Error Number : 1054
Request Date : Tuesday, March 3rd 2009 @ 10:33:15 PM
Error Date : Tuesday, March 3rd 2009 @ 10:33:15 PM
Script : http://www.rociojuradofanclub.com/fo...y/newreply.php
Referrer : http://www.rociojuradofanclub.com/fo...=editpost&p=40
IP Address :
Username : Fan Club
Classname : vB_Database_MySQLi
MySQL Version : 5.1.30
---------------


Then, when i hit refresh and go back, i notice that the message is gone. Why the error?

I've research the forum and found this post:
Update for vBulletin 3.8.0?

I've applied both patches. I don't get the error 'replace by zero' but i do get the delete error.

MotoUp speaks about ""ppgal_" in front of something", but i can't find anything.

Can anyone help me.


Thanks
Marco
marcovb is offline   Reply With Quote
Old March 3rd, 2009, 10:51 PM   #2 (permalink)
Member
 
Join Date: Feb 2009
Posts: 31
i've attaches some images to help with my error

err1.jpg

err2.jpg

err3.jpg

err4.jpg

err5.jpg
marcovb is offline   Reply With Quote
Old March 3rd, 2009, 10:51 PM   #3 (permalink)
Member
 
Join Date: Feb 2009
Posts: 31
this is the php change to make it work

this is the php change to make it work
Attached Images
File Type: jpg err6.jpg (95.1 KB, 8 views)
marcovb is offline   Reply With Quote
Old March 3rd, 2009, 11:20 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
did you upgrade and then forget to run the vbgallery upgrade?

According to my information based on this error because your missing two fields that are created against the vb user table in the 2.0 upgrade you must be running a 2.0 database with 2.4.3 files
__________________
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 March 4th, 2009, 12:09 AM   #5 (permalink)
Member
 
Join Date: Feb 2009
Posts: 31
hey chuck,
i'm not sure what upgrade your talking. I've installed vbulletin 3.8.1 and then 2.4.3.
Then, ive applied those two small patches mentioned in this post:

Update for vBulletin 3.8.0?

Is there a patch i should download ?

Thanks
marcovb is offline   Reply With Quote
Old March 4th, 2009, 09:40 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
Try this in newreply.php in your gallery directory find this query

Code:
Content visible to verified customers only.
change to this

Code:
Content visible to verified customers only.
__________________
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 March 4th, 2009, 09:44 AM   #7 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Very very strange...
Yes there is a BUG....
but why is it not affecting anyone else??????
probably because we are not deleting lool

open gallery/newreply.php
find
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
if you are not sure.. just find the line and replace
TABLE_PREFIX . "user
with
TABLE_PREFIX . "ppgal_user
(there is no pppcount in the normal user table, only in ppgal_user)
it seems that 2.5 also needs that fix..

Luc
Luciano is offline   Reply With Quote
Old March 4th, 2009, 09:45 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
Luciano you posted at the same time as me
__________________
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 March 4th, 2009, 09:47 AM   #9 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Loooool chuck..
we posted at the same time
edit
twice!!!
Luciano is offline   Reply With Quote
Old March 4th, 2009, 09:50 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
Yes I had to go read the upgrade documentation because going line by line on the install script was not all too clear
__________________
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 March 4th, 2009, 11:26 AM   #11 (permalink)
Member
 
Join Date: Feb 2009
Posts: 31
It works! Many thanks to all for the great support.

I'm on a deadline coz i have to open my board March 18, that's why i'm testing the hell out of vBGallery. hehehhe

I found two more refresh issues, i will post them as a new post.

Thanks
marcovb is offline   Reply With Quote
Old March 4th, 2009, 12:10 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,659
Have a good day.
__________________
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
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
Delete Foto does not delete it from database cellarius Photopost Pro Bug Reports 9 February 9th, 2008 09:45 AM
Cannot delete image entry from database lifeinitaly Photopost Pro Bug Reports 11 October 11th, 2007 11:47 AM
Database error in vBulletin 3.5.4: Error Number : 1062 s2kinteg916 Installs and Upgrade - vBulletin 3.5.X 1 May 27th, 2006 10:38 AM
database error message(FIXED) ncangler Classifieds Bug Reports 5 December 2nd, 2005 10:49 AM
error message: cannot connect to the user database asherariel Photopost Pro Installation & Upgrades 1 July 24th, 2004 11:13 AM


All times are GMT -5. The time now is 11:04 AM.

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