I've installed G2, and the installation seemed fine, however when i try to view the gallery, i get this:
Error
Error (ERROR_STORAGE_FAILURE) :
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\GalleryStorage\DatabaseStorage.class at line 1126 (MySqlDatabaseStorage::error)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\GalleryStorage.class at line 220 (MySqlDatabaseStorage::search)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\Gallery.class at line 189 (GalleryStorage::search)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\helpers\GalleryPluginHelper_simple.class at line 256 (Gallery::search)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\helpers\GalleryPluginHelper_simple.class at line 197 (Gallery::fetchAllParameters)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\GalleryCoreApi.class at line 204 (Gallery::getParameter)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\Gallery.class at line 507 (Gallery::getPluginParameter)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\modules\core\classes\Gallery.class at line 479 (Gallery::getActiveLanguageCode)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\init.php at line 140 (Gallery::initTranslator)
* in C:\Program Files\Apache Group\Apache2\htdocs\gallery2\main.php at line 32
Debug Output
file_exists(C:\g2data\cache\module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
-----
(mysql):
SELECT
g2_FactoryMap.g_classType,
g2_FactoryMap.g_className,
g2_FactoryMap.g_implId,
g2_FactoryMap.g_implPath,
g2_FactoryMap.g_hints
FROM
g2_FactoryMap
ORDER BY
g2_FactoryMap.g_orderWeight ASC
-----
file_exists(C:\g2data\cache\module/_all/0/0)
fopen(C:\g2data\cache\module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc,
wb, 0)
flock(Resource id #32, 2, )
fwrite(Resource id #32, ..., )
fwrite(Resource id #32, ..., )
fwrite(Resource id #32, ..., )
fwrite(Resource id #32, ..., )
fclose(Resource id #32)
Unimplemented: GalleryUrlGenerator
file_exists(C:\g2data\sessions\52aab765fd2b6ef65f9bfccf3bf51e91)
file_exists(C:\g2data\cache\module/core/0/0/0.inc)
mysql error: [1146: Table 'gallery2.g2_pluginparametermap' doesn't exist]
in EXECUTE("
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'module'
AND
g2_PluginParameterMap.g_pluginId = 'core'
AND
g2_PluginParameterMap.g_itemId = 0
")
-----
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'module'
AND
g2_PluginParameterMap.g_pluginId = 'core'
AND
g2_PluginParameterMap.g_itemId = 0
-----
1146: Table 'gallery2.g2_pluginparametermap' doesn't exist
ADODB_mysql._Execute(
SELECT
g2_PluginParameter...) % line 818, file: adodb.inc.php
ADODB_mysql.Execute(
SELECT
g2_PluginParameter..., Array[3]) % line 1118, file: DatabaseStorage.class
MySqlDatabaseStorage.search(
SELECT
[GalleryPluginPara..., Array[3], Array[0]) % line 220, file: GalleryStorage.class
GalleryStorage.search(
SELECT
[GalleryPluginPara..., Array[3], Array[0]) % line 189, file: Gallery.class
Gallery.search(
SELECT
[GalleryPluginPara..., Array[3]) % line 256, file: GalleryPluginHelper_simple.class
realpath(C:\Program Files\Apache
Group\Apache2\htdocs\gallery2\modules\core\classes/../../../)
----
Gallery URL (optional):
Gallery version: G2 2-19-05
Webserver (with version): apache 2.0.53
Datatabase (with version): mysql 4.1.10-nt
PHP version (eg 4.2.1): 5.0.3
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: XP SP1
Web browser/version: Firefox 1
Posts: 239
First, did you use a .zip and unzip with Winzip? (I'm assuming yes)
Next, remove all the tables in the database, and delete all G2 files, including your g2data directory.
Unzip the archive using something other than winzip, and run the installation. Make sure when you finish there are tables in the database (~39, I don't remember)
Now try using your gallery.
Posts: 27
I think i have the same problem.
I do NOT use winzip. I use winrar.
Here is the long code.
Stack Trace:
Debug Output:
Posts: 8601
change charset of your database to not be utf-8
Posts: 27
Thank you very much. Now it's up and running.
Posts: 32509
mindless, why can't we check for this incompatibility in the installer?
Posts: 20
whoops sorry thought i turned on notification by email.
Looks like mindless answered it tho, i do have utf-8 enabled. Thanks for the help!
:D
Posts: 8601
valiant, maybe we can but someone has to write it.
the install usually fails in this condition of course.. i don't know how moogleii reached main.php