restoring Gallery

griztown

Joined: 2005-04-15
Posts: 18
Posted: Tue, 2010-03-23 19:49


Gallery version (not just "2"): 2.3
PHP version (e.g. 5.1.6): 5.2.8
PHPInfo Link (see FAQ): http://www.katieandted.org/phptest.php
Webserver (e.g. Apache 1.3.33): Apache 1.3.33
Database (e.g. MySql 5.0.32): 5.0.86
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 2.0): Firefox 3.5.1

Hi,

I'm using Godaddy (a mistake I know) for my hosting. While trying to enable SSH, they required that I uninstall all of my databases and my applications. So I backed up my gallery database, move the files and directories to another location, and uninstalled the application. After SSH was enabled, I reinstalled gallery. It created a new database. I used that database to restore my old database. I then moved the new gallery files to another directory and moved the old ones back to where they belong. I also updated the old config.php to reflect the new db name, host location, passwords, etc. Sadly, no pictures. Can someone point me in the right direction for finding, what I would think would be simple, the solution to this problem.

Thanks in advance!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-03-23 20:54

www.nodaddy.com yes godaddy absolutely sucks all around.

This is a total WTF moment to have to uninstall all that to enable SSH. But it sounds they, as usual, totally screw with their customers to do this.

Since you may or may not have moved physical servers, try to make sure you followed these directions as closely as possible, it sounds like a permissions issue most likely:
FAQ: How can I move my gallery installation from one server to another?

FAQ: How can I fix the filesystem permissions of the Gallery storage folder?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
griztown

Joined: 2005-04-15
Posts: 18
Posted: Wed, 2010-03-24 17:53

Thanks nivekiam. They did move me to a new server. I've checked the config.php file and everything is accurate there. Using Filezilla I updated the permissions recursively for the g2data directory but still nothing. Shouldn't all the album and picture information be in the database somewhere? I poked around but didn't see anything.

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2010-03-24 18:03

OK. The fact that the root gallery for your installation is showing empty ("has no items") means that the database that you're pointing the G2 code to (via the entries in the config.php) is *not* the one that contains your image data. That's where you need to be checking. Whhich database did you recover your data to, and which database is your config.php pointing at.

 
griztown

Joined: 2005-04-15
Posts: 18
Posted: Fri, 2010-03-26 18:24

Thanks Alec, you are right. I found another database backup that is much larger. I restored the database but the website still showed no pictures. Looking at the database info I noticed the tables started with 'g2_'. Checking my config.php file I noticed it was set to 'g_' so I changed that. Now my website says simply "Error". The columns all appear to start with 'g_' so left that alone. What is the best way to turn on debugging?

 
griztown

Joined: 2005-04-15
Posts: 18
Posted: Fri, 2010-03-26 18:27

Oh, that was easy. Set debug to true and got this output. Am I missing a plugin?

Error
Error (ERROR_STORAGE_FAILURE)

    * in modules/core/classes/GalleryStorage.class at line 495 (GalleryCoreApi::error)
    * in modules/core/classes/GalleryStorage.class at line 1291 (GalleryStorage::search)
    * in modules/core/classes/GalleryStorage.class at line 1238 (GalleryStorage::_getEntityOrMapInfo)
    * in modules/core/classes/GalleryStorage.class at line 572 (GalleryStorage::describeMap)
    * in modules/core/classes/GalleryCoreApi.class at line 2912 (GalleryStorage::getMapEntry)
    * in modules/core/classes/GallerySession.class at line 872 (GalleryCoreApi::getMapEntry)
    * in modules/core/classes/GallerySession.class at line 231 (GallerySession::_loadSessionData)
    * in modules/core/classes/Gallery.class at line 294 (GallerySession::init)
    * in init.inc at line 128 (Gallery::initSession)
    * in main.php at line 81

Debug Output

file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
Unimplemented: GalleryUrlGenerator
getParameter session.lifetime for core plugin
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/module/core/0/0/0.inc)
getParameter session.inactivityTimeout for core plugin

(mysql): SET NAMES "utf8"   


mysql error: [1146: Table 'kat1007611361892.g2_PluginMap' doesn't exist] in
EXECUTE("SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1")


(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1   

1146: Table 'kat1007611361892.g2_PluginMap' doesn't exist

                     
     ADOConnection._Execute(SELECT g2_Schema.g_info FROM
g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc...) % line  872, file: adodb.inc.php
                        ADOConnection.Execute(SELECT g2_Schema.g_info
FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc..., Array[2]) % line 
488, file: GalleryStorage.class
                     GalleryStorage.search(SELECT [Schema::info] FROM
[GalleryPluginMap], [Schema]
		       WHERE [GalleryPluginMap::pluginId] = [Schema::pluginId]
			 AND..., Array[2]) % line 1291,
file: GalleryStorage.class
                  GalleryStorage._getEntityOrMapInfo(map, false) % line 1238, file: GalleryStorage.class
               GalleryStorage.describeMap(GallerySessionMap) % line  572, file: GalleryStorage.class


Loading plugin core
Class not defined, trying to include it.
file_exists(/home/content/g/r/i/griztown1/html/gallery/modules/core/module.inc)
core plugin successfully instantiated
Check the version of the core plugin
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
The version of the core plugin is ok
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/versions.dat)
file(/home/content/g/r/i/griztown1/html/gallery/g2data/versions.dat, )
getParameter language.useBrowserPref for core plugin
getParameter default.language for core plugin
getParameter default.theme for core plugin
Loading plugin matrix
Class not defined, trying to include it.
file_exists(/home/content/g/r/i/griztown1/html/gallery/themes/matrix/theme.inc)
matrix plugin successfully instantiated
Check the version of the matrix plugin
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
The version of the matrix plugin is ok
Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
The version of the core plugin is ok
getParameter smarty.compile_check for core plugin
getParameter id.adminGroup for core plugin
mysql error: [1146: Table 'kat1007611361892.g2_PluginMap' doesn't exist] in
EXECUTE("SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1")


(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1   

1146: Table 'kat1007611361892.g2_PluginMap' doesn't exist

                     
           ADOConnection._Execute(SELECT g2_Schema.g_info FROM
g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc...) % line  872, file: adodb.inc.php
                           
  ADOConnection.Execute(SELECT
g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc..., Array[2]) % line 
488, file: GalleryStorage.class
                          
GalleryStorage.search(SELECT
[Schema::info] FROM [GalleryPluginMap], [Schema]
		       WHERE [GalleryPluginMap::pluginId] = [Schema::pluginId]
			 AND..., Array[2]) % line 1291,
file: GalleryStorage.class
                        GalleryStorage._getEntityOrMapInfo(map,
false) % line 1238, file: GalleryStorage.class
                     GalleryStorage.describeMap(GalleryUserGroupMap) % line  572, file: GalleryStorage.class


realpath(/home/content/g/r/i/griztown1/html/gallery/modules/core/classes/../../../)
realpath(/home/content/g/r/i/griztown1/html/gallery/)
getParameter id.rootAlbum for core plugin
[1269627934] can't guarantee 5 -- extending!
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/entity/0/0/7.inc)
mysql error: [1146: Table 'kat1007611361892.g2_UserGroupMap' doesn't exist]
in EXECUTE("
	    SELECT
	      g2_Group.g_id,
	      g2_Group.g_groupName
	    FROM
	      g2_UserGroupMap, g2_Group
	    WHERE
	      g2_Group.g_id = g2_UserGroupMap.g_groupId
	      AND
	      g2_UserGroupMap.g_userId = 0
	    ORDER BY
	      g2_Group.g_groupName
	     LIMIT 2147483647")


(mysql): 
	    SELECT
	      g2_Group.g_id,
	      g2_Group.g_groupName
	    FROM
	      g2_UserGroupMap, g2_Group
	    WHERE
	      g2_Group.g_id = g2_UserGroupMap.g_groupId
	      AND
	      g2_UserGroupMap.g_userId = 0
	    ORDER BY
	      g2_Group.g_groupName
	     LIMIT 2147483647   

1146: Table 'kat1007611361892.g2_UserGroupMap' doesn't exist

                     
                         
ADOConnection._Execute(
	    SELECT
	      g2_Group.g_id,
	      g2_Group.g_groupName
	    FROM
	      g2_UserGroupMap, g2_Group
	    WHERE
	      g2_G...) % line  872, file: adodb.inc.php
                           
                 ADOConnection.Execute(
	    SELECT
	      g2_Group.g_id,
	      g2_Group.g_groupName
	    FROM
	      g2_UserGroupMap, g2_Group
	    WHERE
	      g2_G..., Array[1]) % line  498,
file: adodb-mysql.inc.php
                           
              ADODB_mysql.SelectLimit(
	    SELECT
	      g2_Group.g_id,
	      g2_Group.g_groupName
	    FROM
	      g2_UserGroupMap, g2_Group
	    WHERE
	      g2_G..., -1, -1, Array[1]) %
line  484, file: GalleryStorage.class
                           
           GalleryStorage.search(
	    SELECT
	      [GalleryGroup::id],
	      [GalleryGroup::groupName]
	    FROM
	      [GalleryUserGroupMap], [GalleryGroup]
..., Array[1], Array[1]) % line  209,
file: Gallery.class
                           
        Gallery.search(
	    SELECT
	      [GalleryGroup::id],
	      [GalleryGroup::groupName]
	    FROM
	      [GalleryUserGroupMap], [GalleryGroup]
..., Array[1], Array[1]) % line  105,
file: GalleryUserGroupHelper_simple.class


getParameter id.adminGroup for core plugin
mysql error: [1146: Table 'kat1007611361892.g2_PluginMap' doesn't exist] in
EXECUTE("SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1")


(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1   

1146: Table 'kat1007611361892.g2_PluginMap' doesn't exist

                     
        ADOConnection._Execute(SELECT g2_Schema.g_info FROM
g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc...) % line  872, file: adodb.inc.php
                          
ADOConnection.Execute(SELECT
g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc..., Array[2]) % line 
488, file: GalleryStorage.class
                        GalleryStorage.search(SELECT [Schema::info] FROM
[GalleryPluginMap], [Schema]
		       WHERE [GalleryPluginMap::pluginId] = [Schema::pluginId]
			 AND..., Array[2]) % line 1291,
file: GalleryStorage.class
                     GalleryStorage._getEntityOrMapInfo(map,
false) % line 1238, file: GalleryStorage.class
                  GalleryStorage.describeMap(GalleryUserGroupMap) % line  572, file: GalleryStorage.class


realpath(/home/content/g/r/i/griztown1/html/gallery/modules/core/classes/../../../)
realpath(/home/content/g/r/i/griztown1/html/gallery/)
 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2010-03-26 18:46
Quote:
mysql error: [1146: Table 'kat1007611361892.g2_UserGroupMap' doesn't exist]
in EXECUTE("...

No. Your backup/restore was defective.

 
griztown

Joined: 2005-04-15
Posts: 18
Posted: Fri, 2010-03-26 18:46

So it says PluginsMap is missing. Searching the database backup file it is definitely in there. Then I noticed that my db restore didn't actually work! Woops! I was given this error:

Quote:
ERROR 1044 (42000) at line 15: Access denied for user 'kat1007611361892'@'%' to database 'user_467304'

I've commented out the CREATE DATABASE and USE lines at the top and am trying to restore again. Hopefully this will work.

 
griztown

Joined: 2005-04-15
Posts: 18
Posted: Fri, 2010-03-26 18:56

Well, I fixed that problem but now have a new Error. Any ideas on why it is looking for g2_Schema.g_info? Currently g2_Schema appears to only have g_name, g_major, and g_minor.

Error
Error (ERROR_STORAGE_FAILURE)

    * in modules/core/classes/GalleryStorage.class at line 495 (GalleryCoreApi::error)
    * in modules/core/classes/GalleryStorage.class at line 1291 (GalleryStorage::search)
    * in modules/core/classes/GalleryStorage.class at line 1238 (GalleryStorage::_getEntityOrMapInfo)
    * in modules/core/classes/GalleryStorage.class at line 572 (GalleryStorage::describeMap)
    * in modules/core/classes/GalleryCoreApi.class at line 2912 (GalleryStorage::getMapEntry)
    * in modules/core/classes/GallerySession.class at line 872 (GalleryCoreApi::getMapEntry)
    * in modules/core/classes/GallerySession.class at line 231 (GallerySession::_loadSessionData)
    * in modules/core/classes/Gallery.class at line 294 (GallerySession::init)
    * in init.inc at line 128 (Gallery::initSession)
    * in main.php at line 81

Debug Output

file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
Unimplemented: GalleryUrlGenerator
getParameter session.lifetime for core plugin
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/module/core/0/0/0.inc)
getParameter session.inactivityTimeout for core plugin

(mysql): SET NAMES "utf8"   


mysql error: [1054: Unknown column 'g2_Schema.g_info' in 'field list'] in
EXECUTE("SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1")


(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1   

1054: Unknown column 'g2_Schema.g_info' in 'field list'

                     
     ADOConnection._Execute(SELECT g2_Schema.g_info FROM
g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc...) % line  872, file: adodb.inc.php
                        ADOConnection.Execute(SELECT g2_Schema.g_info
FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc..., Array[2]) % line 
488, file: GalleryStorage.class
                     GalleryStorage.search(SELECT [Schema::info] FROM
[GalleryPluginMap], [Schema]
		       WHERE [GalleryPluginMap::pluginId] = [Schema::pluginId]
			 AND..., Array[2]) % line 1291,
file: GalleryStorage.class
                  GalleryStorage._getEntityOrMapInfo(map, false) % line 1238, file: GalleryStorage.class
               GalleryStorage.describeMap(GallerySessionMap) % line  572, file: GalleryStorage.class


Loading plugin core
Class not defined, trying to include it.
file_exists(/home/content/g/r/i/griztown1/html/gallery/modules/core/module.inc)
core plugin successfully instantiated
Check the version of the core plugin
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
The version of the core plugin is ok
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/versions.dat)
file(/home/content/g/r/i/griztown1/html/gallery/g2data/versions.dat, )
getParameter language.useBrowserPref for core plugin
getParameter default.language for core plugin
getParameter default.theme for core plugin
Loading plugin matrix
Class not defined, trying to include it.
file_exists(/home/content/g/r/i/griztown1/html/gallery/themes/matrix/theme.inc)
matrix plugin successfully instantiated
Check the version of the matrix plugin
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
The version of the matrix plugin is ok
Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
The version of the core plugin is ok
getParameter smarty.compile_check for core plugin
getParameter id.adminGroup for core plugin
mysql error: [1054: Unknown column 'g2_Schema.g_info' in 'field list'] in
EXECUTE("SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1")


(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1   

1054: Unknown column 'g2_Schema.g_info' in 'field list'

                     
           ADOConnection._Execute(SELECT g2_Schema.g_info FROM
g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc...) % line  872, file: adodb.inc.php
                           
  ADOConnection.Execute(SELECT
g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc..., Array[2]) % line 
488, file: GalleryStorage.class
                          
GalleryStorage.search(SELECT
[Schema::info] FROM [GalleryPluginMap], [Schema]
		       WHERE [GalleryPluginMap::pluginId] = [Schema::pluginId]
			 AND..., Array[2]) % line 1291,
file: GalleryStorage.class
                        GalleryStorage._getEntityOrMapInfo(map,
false) % line 1238, file: GalleryStorage.class
                     GalleryStorage.describeMap(GalleryUserGroupMap) % line  572, file: GalleryStorage.class


realpath(/home/content/g/r/i/griztown1/html/gallery/modules/core/classes/../../../)
realpath(/home/content/g/r/i/griztown1/html/gallery/)
getParameter id.rootAlbum for core plugin
[1269629479] can't guarantee 5 -- extending!
file_exists(/home/content/g/r/i/griztown1/html/gallery/g2data/cache/entity/0/0/7.inc)

(mysql): 
	    SELECT
	      g2_Group.g_id,
	      g2_Group.g_groupName
	    FROM
	      g2_UserGroupMap, g2_Group
	    WHERE
	      g2_Group.g_id = g2_UserGroupMap.g_groupId
	      AND
	      g2_UserGroupMap.g_userId = 0
	    ORDER BY
	      g2_Group.g_groupName
	     LIMIT 2147483647   


mysql error: [1054: Unknown column 'g2_Schema.g_info' in 'field list'] in
EXECUTE("SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1")


(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1   

1054: Unknown column 'g2_Schema.g_info' in 'field list'

                     
                          
        ADOConnection._Execute(SELECT g2_Schema.g_info FROM
g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc...) % line  872, file: adodb.inc.php
                           
                         
ADOConnection.Execute(SELECT
g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc..., Array[2]) % line 
488, file: GalleryStorage.class
                           
                       GalleryStorage.search(SELECT [Schema::info] FROM
[GalleryPluginMap], [Schema]
		       WHERE [GalleryPluginMap::pluginId] = [Schema::pluginId]
			 AND..., Array[2]) % line 1291,
file: GalleryStorage.class
                           
                    GalleryStorage._getEntityOrMapInfo(map, false) % line 1238, file: GalleryStorage.class
                           
                 GalleryStorage.describeMap(GalleryPermissionSetMap) % line  572, file: GalleryStorage.class


getParameter id.adminGroup for core plugin
mysql error: [1054: Unknown column 'g2_Schema.g_info' in 'field list'] in
EXECUTE("SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1")


(mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1   

1054: Unknown column 'g2_Schema.g_info' in 'field list'

                     
        ADOConnection._Execute(SELECT g2_Schema.g_info FROM
g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc...) % line  872, file: adodb.inc.php
                          
ADOConnection.Execute(SELECT
g2_Schema.g_info FROM g2_PluginMap, g2_Schema
		       WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
			 AND g2_Sc..., Array[2]) % line 
488, file: GalleryStorage.class
                        GalleryStorage.search(SELECT [Schema::info] FROM
[GalleryPluginMap], [Schema]
		       WHERE [GalleryPluginMap::pluginId] = [Schema::pluginId]
			 AND..., Array[2]) % line 1291,
file: GalleryStorage.class
                     GalleryStorage._getEntityOrMapInfo(map,
false) % line 1238, file: GalleryStorage.class
                  GalleryStorage.describeMap(GalleryUserGroupMap) % line  572, file: GalleryStorage.class


realpath(/home/content/g/r/i/griztown1/html/gallery/modules/core/classes/../../../)
realpath(/home/content/g/r/i/griztown1/html/gallery/)
 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2010-03-26 19:34
Quote:
Any ideas on why it is looking for g2_Schema.g_info?

Because that's a normal part of that table.

Quote:
Currently g2_Schema appears to only have g_name, g_major, and g_minor.

Then you are missing the columns g_createSql, g_pluginId, g_type, g_info. I deduce that your backup/restore procedure failed at some point.

Please don't post debug logs as quotes - post them as .txt attachments, otherwise it makes the thread very difficult to read. Thanks.

 
griztown

Joined: 2005-04-15
Posts: 18
Posted: Mon, 2010-03-29 01:47

So I think that the db that I used to restore must be from an older version, is that possible? At one time I had Gallery 1 on here. So I'm afraid I don't have the right db for restoring, not sure how that's possible but there it is. Is there a way to rebuild it so it will recognize all of my albums and pictures?

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2010-03-29 09:15
Quote:
At one time I had Gallery 1 on here.

Gallery version 1 doesn't use a database at all.

Quote:
Is there a way to rebuild it so it will recognize all of my albums and pictures?

If you can't restore from a backup, install a fresh installation (looks like you've already done that bit ok) and import all your pictures from scratch. You can do that in one go if there are sufficiently few of them (depending on your server resources) by moving the g2data/albums directory from the old installation somewhere else on the server before the reinstallation - that directory contains the jpgs - and using the serveradd module, which will allow you to import from a local directory on the server. Obviously point it at wherever you moved the old g2data/albums directory to.

You will not be able to import any other data though, like titles, comments, users, and so forth.