PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   Some SQL errors after upgrade (http://www.photopost.com/forum/photopost-pro-installation-upgrades/144509-some-sql-errors-after-upgrade.html)

towermatt November 15th, 2010 04:08 PM

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.

Chuck S November 15th, 2010 06:08 PM

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.

towermatt November 15th, 2010 08:47 PM

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

Chuck S November 15th, 2010 09:33 PM

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.

towermatt November 16th, 2010 12:31 AM

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.

Chuck S November 16th, 2010 01:44 PM

No problem as long as you restore a known good backup and run that upgrades with the new files you should be okay then.


All times are GMT -5. The time now is 12:56 PM.

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