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 > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 15th, 2010, 04:08 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2007
Posts: 24
Some SQL errors after upgrade

Hello.

We have been using photopost for years and we love it. Just recently upgraded the forum to 4.0.8 and obviously needed the Photopost upgrade as well.

First weird thing is that after I FTP'd the files over my Photopost admin showed the current version as 7.03 in the admin without running any script through the upgrade console. So that hasn't been done and I am sure it needs to be.

The page looks fine I am just getting the following SQL error in the header

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/jsmith/public_html/thedarktower.org/gallery/pp-inc.php on line 4298

And these two in the footer.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/jsmith/public_html/thedarktower.org/gallery/pp-inc.php on line 1242

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/jsmith/public_html/thedarktower.org/gallery/pp-inc.php on line 1246

It looks pretty good otherwise. Here is a link to it.

http://www.thedarktower.org/gallery

EDIT

I am also getting "This category does not contain any images" when clicking on my categories.

EDIT2

I think my problem is the upgrade script. I have no idea what version I was on before upgraded so I don't know where to start.

Last edited by towermatt; November 15th, 2010 at 05:39 PM.
towermatt is offline   Reply With Quote
Old November 15th, 2010, 06:08 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
well yes you need to run the upgrades from your last version but the initial error I see by clicking your link is you overwrote your config file which means you need to edit config-inc.php and place all the correct information in that file then you can go back and run what upgrades you need to.
__________________
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 15th, 2010, 08:47 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2007
Posts: 24
I believe I got those two php files sorted out and ran the upgrade. SQL errors are gone.

I think I may have accidentally ran the upgrade script from a previous version though.

My only problem now is that I am seeing no images. Just the default image

http://www.thedarktower.org/gallery/images/nothumb.gif
towermatt is offline   Reply With Quote
Old November 15th, 2010, 09:33 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
You ran an old upgrade like 4.85 you where not suppose to

You need to restore a backup of your database and then rerun the upgrade scripts selecting the versions you need to based on what version your old version was.

You should be safe to restore a database backup and run 5.2 forward without issues.
__________________
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 16th, 2010, 12:31 AM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2007
Posts: 24
Thank you.

I screwed this up six ways from Sunday and couldn't find the old version anywhere.

Then it was plain as day in that config-inc.php

I will do that very thing and go from 5.2 forward.
towermatt is offline   Reply With Quote
Old November 16th, 2010, 01:44 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
No problem as long as you restore a known good backup and run that upgrades with the new files you should be okay then.
__________________
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL errors after upgrade from 6.2 DaveS Photopost Pro Bug Reports 5 July 26th, 2010 05:49 PM
SQL errors after upgrade cdub Photopost Pro Installation & Upgrades 5 July 28th, 2009 03:20 PM
sql errors on upgrade rcsmith Classifieds Installation & Upgrades 5 April 14th, 2008 04:08 PM
SQL ERRORS in Upgrade from 5.5 to 5.6 ESAD Photopost Pro Installation & Upgrades 30 November 30th, 2006 06:49 PM
SQL errors being emailed after upgrade to 5.3 oldford Photopost Pro Installation & Upgrades 3 May 1st, 2006 04:12 PM


All times are GMT -5. The time now is 04:33 PM.

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