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 March 21st, 2006, 08:02 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
Moved to other server: mysql error

Hello,

I got myself this problem when I want to look at a gallery:

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /media/showgallery.php on line 94

and get the message that I am not allowed to look at the gallery.

This is what I did:

- moved photopost to another server (not the database!)
- thumbnails did not show up, images did
- made a backup for photopost database
- upgraded 5.21 to 5.3 (hoped it would solve the problem)
- all images were lost
- placed backup back
- and now I have this error

I did triple checks on configuration variables, but I have no clue on what is happening. All worked fine before moving to new server.

Please help me!

http://media.gamevillage.nl/media/
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 12:39 PM   #2 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
Please help? It would be a waste of all the categories and photo's to do a new fresh install...
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 01:07 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Well the categories query is failing here

Code:
Content visible to verified customers only.
Did you run the upgrade script when going from 5.2 to 5.3? Are all the photopost tables present on the new server.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2006, 01:08 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
By the way I am looking at your gallery and do not get this error.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2006, 01:25 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
Appearantly the error is gone...??? Can this happen just by itself. Did a cronjob something?

Just the photo's are missing now...they are on the server but not showing up in the gallery.


For example:
Category: http://media.gamevillage.nl/media/sh...ry.php/cat/506
On server: http://media.gamevillage.nl/media/data/506/

Is there a way to restore this?


Quote:
Did you run the upgrade script when going from 5.2 to 5.3?
Yes, I ran the correct update script...

Quote:
Are all the photopost tables present on the new server.
Database is the only thing I did not move. All scripts and photo's did move to the new server. Storage options have been set correct (just checked again ) and URL to PhotoPost data directory has also been set correct to http://media.gamevillage.nl/media/data

Any clues?
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 01:28 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
If you want to properly upgrade Photopost the old database tables would have needed to be there.

The only way to get your photos back would be to restore the photos table from the old install to the new.

This was only a move from 5.2 to 5.3 right?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2006, 01:31 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
Yes it was 5.21 to 5.3. Would it hurt to do the upgrade again? I think I have 5.3 scripts with a 5.21 database now...
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 01:39 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Your database looks fine but you dont have any photos in the photos table which is why I suggested restoring the table and you might want to check you updated your data and uploads paths in admin to the new paths.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2006, 02:00 PM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
I allready triple triple checked all config data; what exactly do you mean with restoring the table? :s
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 02:02 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Your photo table is empty right you would need to restore the photos table from your old install to get the photos back.

Use phpmyadmin or such and restore the photos table inserts to the database
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2006, 02:16 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
I don't use phpadmin, I use ssh. And I feel like a real noob here...I don't know how to do that? And perhaps I am misunderstanding, but I did not move the pp database, nor changed it (perhaps the upgrade did, but I did put the backup I made back).
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 02:21 PM   #12 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
I just put the database backup back again and guess what...the error is also back

http://media.gamevillage.nl/media/sh...ry.php/cat/572
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 02:28 PM   #13 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Whatevery database you are restoring has no photos table entries

You need to restore a photos table that has photo inserts
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2006, 02:33 PM   #14 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
ok...since that was my only backup, that means it is not possible to get the photo's back inplace...although the photo's are in the right directories?
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 03:11 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Not if you do not have a backup of the inserts in the photos table no.

The files on disk are just that files. The SQL INSERTS in the photos table of photopost are the real stuff that tells photopost there is a photo and where to find it on disk. You need that info. Looks to me like the backup you took from your old install was not all the stuff you needed.

If you have access to the old site still you could grab another copy.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2006, 04:02 PM   #16 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
All server and sites are still in my possession. The database is still on the old server. I made the backup of the database before I upgraded. Appearantly something went wrong when backing up the database? I used this command /usr/local/mysql/bin/mysqldump -q -u minder -p gv01media > backuppp01.txt

and put it back with this command /usr/local/mysql/bin/mysql < backuppp01.txt -u minder -p gv01media

So I understand that before the backup the database contained a photos table that was lost making the backup?
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 04:43 PM   #17 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 66,809
Look at your database backup to see if there are photo inserts present in the photo table

You need to have a photos table restored that actually has photos for photos to appear on your gallery
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old March 23rd, 2006, 04:55 PM   #18 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
erm...

-rw-rw---- 1 mysql mysql 0 Mar 23 20:13 pp_photos.MYD
-rw-rw---- 1 mysql mysql 1024 Mar 23 20:13 pp_photos.MYI
-rw-rw---- 1 mysql mysql 9794 Mar 23 20:13 pp_photos.frm


is this something like a phototable? :s
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 05:01 PM   #19 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
wait...that is the current database (the backup being restored)
Joep11 is offline   Reply With Quote
Old March 23rd, 2006, 05:08 PM   #20 (permalink)
Junior Member
Verified Customer
 
Join Date: Nov 2005
Posts: 12
I have the backup online now; is it save to post a link to the backup here (as a .txt) so you can look at it or is there any crucial information in it like passwords? My knowledge of mysql backups is not going that far
Joep11 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
Moved PP to new server ... big problem(s) kaufmanb777 Photopost Pro Installation & Upgrades 2 February 26th, 2006 02:42 PM
Moved gallery to a new server and now I get an error JLuerken Installs and Upgrade - vBulletin 3.5.X 4 January 8th, 2006 12:03 PM
moved to new server, have issues gotvenm Photopost Pro Installation & Upgrades 1 July 1st, 2005 09:37 PM
Moved the forum to a new server, now problems paradise Installs and Upgrade - vBulletin 3.0.X 9 May 31st, 2005 01:24 PM
Moved to dedicated server disciple1 Photopost Pro Installation & Upgrades 2 March 11th, 2005 03:01 PM


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

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