PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old November 6th, 2008, 02:00 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Aug 2005
Location: NYC
Posts: 63
Database Error in vbgallery_install.php !

While upgrading Photopost vbGallery from version 2.0.0 - 2.4.2, the following invalid sql on line 1151 evokes an error...

$db->query_write("CREATE TABLE " . TABLE_PREFIX . "ppgal_setting SELECT * FROM " . TABLE_PREFIX . "adv_setting");

Naturally, this is a no-no, lol.

I'm looking at the rest of the upgrade case statement for 2.0.0/2.0 and according to the script, it seems to be expecting gallery files to have adv_ on the names, however mine already have ppgal_

I came across this post which Zach had supplied to fix a very similar issue. I ran the first query however the columns pppcount, ppicount do not exist.

Any idea on how to fix the upgrade script?

Last edited by antivirus; November 6th, 2008 at 02:11 PM.
antivirus is offline   Reply With Quote
Old November 6th, 2008, 04:39 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
we changed table names to ppgal_ on 2.0 upgrade so your version number has to be incorrect if your tables are already named that try running this query in phpmyadmin then run the upgrade

UPDATE ppgal_setting SET value = '2.2' WHERE varname = 'gallery_version';

Of course replace with your proper version.
__________________
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 November 11th, 2008, 05:37 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Aug 2005
Location: NYC
Posts: 63
hi Chhuck - thanks for the suggestion. I will try it this week when i have a chance. I was looking for the correct version niumber in the gallery files, however there don't seem to be any! Is this possible?

antivirus is offline   Reply With Quote
Old November 11th, 2008, 08:05 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,676
The version number of your vbgallery is listed in the config table for the gallery

You can use the query in phpmyadmin to change it and then proceed to try the upgrade again.
__________________
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
Problem when running vbgallery_install.php Frogger Installs and Upgrade - vBulletin 3.6x 3 November 21st, 2007 11:14 AM
Error with 3.51: Error adding new category to the database. Returned id was 0. WebDork Photopost Pro Installation & Upgrades 15 July 17th, 2006 08:03 PM
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
Does sendnotice.php remove the ads from the database? Andy R Classifieds Installation & Upgrades 7 November 22nd, 2005 09:06 PM
[RC1] "Scan database" gives PHP error Kirby Bugs From 1.0.0 2 December 11th, 2004 08:54 AM


All times are GMT -5. The time now is 10:20 PM.

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