tags error. How can I download tags.zip?

ASNet0007

Joined: 2006-10-17
Posts: 177
Posted: Thu, 2009-07-23 10:34

Hi all,
I have just moved from windows to linux and all went well, except when I ativate the tags mod I get this error in my log

Quote:
2009-07-23 11:25:24 [e8d5b5c5984ab766672a96ca8951ed90] mysqli error: [1146: Table 'almasam.g2_EventLogMap' doesn't exist] in EXECUTE("UPDATE g2_EventLogMap SET g_userId=6, g_type='Gallery Error', g_summary='ERROR_STORAGE_FAILURE', g_details='Error (ERROR_STORAGE_FAILURE)<b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 494 (GalleryCoreApi::error) \n<b>in</b> modules/core/classes/Gallery.class <b>at line</b> 202 (GalleryStorage::search) \n<b>in</b> modules/tags/classes/TagsHelper.class <b>at line</b> 253 (Gallery::search) \n<b>in</b> modules/tags/module.inc <b>at line</b> 149 (TagsHelper::getTagsByItemId) \n<b>in</b> modules/core/classes/GalleryTheme.class <b>at line</b> 1561 (TagsModule::getItemSummaries) \n<b>in</b> themes/matrix/theme.inc <b>at line</b> 65 (GalleryTheme::loadCommonTemplateData) \n<b>in</b> modules/core/classes/GalleryTheme.class <b>at line</b> 932 (MatrixTheme::showAlbumPage) \n<b>in</b> modules/core/classes/GalleryView.class <b>at line</b> 301 (GalleryTheme::loadTemplate) \n<b>in</b> main.php <b>at line</b> 465 (GalleryView::doLoadTemplate) \n<b>in</b> main.php <b>at line</b> 104\n<b>in</b> main.php <b>at line</b> 88\n\nRequest variables: Array\n(\n [view] => core.ShowItem\n [itemId] => 7\n)\n', g_location='http://???????.homeip.net/almasam/main.php', g_client='192.168.1.1', g_timestamp=1248344724, g_referer='http://???????.homeip.net/almasam/main.php?g2_view=core.SiteAdmin&amp;g2_subView=core.AdminPlugins' WHERE g_id=101")

2009-07-23 11:25:24 [e8d5b5c5984ab766672a96ca8951ed90] <hr />
(mysqli): UPDATE g2_EventLogMap SET g_userId=6, g_type='Gallery Error', g_summary='ERROR_STORAGE_FAILURE', g_details='Error (ERROR_STORAGE_FAILURE)&lt;b&gt;in&lt;/b&gt; modules/core/classes/GalleryStorage.class &lt;b&gt;at line&lt;/b&gt; 494 (GalleryCoreApi::error) \n&lt;b&gt;in&lt;/b&gt; modules/core/classes/Gallery.class &lt;b&gt;at line&lt;/b&gt; 202 (GalleryStorage::search) \n&lt;b&gt;in&lt;/b&gt; modules/tags/classes/TagsHelper.class &lt;b&gt;at line&lt;/b&gt; 253 (Gallery::search) \n&lt;b&gt;in&lt;/b&gt; modules/tags/module.inc &lt;b&gt;at line&lt;/b&gt; 149 (TagsHelper::getTagsByItemId) \n&lt;b&gt;in&lt;/b&gt; modules/core/classes/GalleryTheme.class &lt;b&gt;at line&lt;/b&gt; 1561 (TagsModule::getItemSummaries) \n&lt;b&gt;in&lt;/b&gt; themes/matrix/theme.inc &lt;b&gt;at line&lt;/b&gt; 65 (GalleryTheme::loadCommonTemplateData) \n&lt;b&gt;in&lt;/b&gt; modules/core/classes/GalleryTheme.class &lt;b&gt;at line&lt;/b&gt; 932 (MatrixTheme::showAlbumPage) \n&lt;b&gt;in&lt;/b&gt; modules/core/classes/GalleryView.class &lt;b&gt;at line&lt;/b&gt; 301 (GalleryTheme::loadTemplate) \n&lt;b&gt;in&lt;/b&gt; main.php &lt;b&gt;at line&lt;/b&gt; 465 (GalleryView::doLoadTemplate) \n&lt;b&gt;in&lt;/b&gt; main.php &lt;b&gt;at line&lt;/b&gt; 104\n&lt;b&gt;in&lt;/b&gt; main.php &lt;b&gt;at line&lt;/b&gt; 88\n\nRequest variables: Array\n(\n [view] =&gt; core.ShowItem\n [itemId] =&gt; 7\n)\n', g_location='http://??????.homeip.net/almasam/main.php', g_client='192.168.1.1', g_timestamp=1248344724, g_referer='http://???????.homeip.net/almasam/main.php?g2_view=core.SiteAdmin&amp;amp;g2_subView=core.AdminPlugins' WHERE g_id=101 &nbsp;
<hr />
Query: UPDATE g2_EventLogMap SET g_userId=6, g_type='Gallery Error', g_summary='ERROR_STORAGE_FAILURE', g_details='Error (ERROR_STORAGE_FAILURE)<b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 494 (GalleryCoreApi::error) \n<b>in</b> modules/core/classes/Gallery.class <b>at line</b> 202 (GalleryStorage::search) \n<b>in</b> modules/tags/classes/TagsHelper.class <b>at line</b> 253 (Gallery::search) \n<b>in</b> modules/tags/module.inc <b>at line</b> 149 (TagsHelper::getTagsByItemId) \n<b>in</b> modules/core/classes/GalleryTheme.class <b>at line</b> 1561 (TagsModule::getItemSummaries) \n<b>in</b> themes/matrix/theme.inc <b>at line</b> 65 (GalleryTheme::loadCommonTemplateData) \n<b>in</b> modules/core/classes/GalleryTheme.class <b>at line</b> 932 (MatrixTheme::showAlbumPage) \n<b>in</b> modules/core/classes/GalleryView.class <b>at line</b> 301 (GalleryTheme::loadTemplate) \n<b>in</b> main.php <b>at line</b> 465 (GalleryView::doLoadTemplate) \n<b>in</b> main.php <b>at line</b> 104\n<b>in</b> main.php <b>at line</b> 88\n\nRequest variables: Array\n(\n [view] => core.ShowItem\n [itemId] => 7\n)\n', g_location='http://?????.homeip.net/almasam/main.php', g_client='192.168.1.1', g_timestamp=1248344724, g_referer='http://??????.homeip.net/almasam/main.php?g2_view=core.SiteAdmin&amp;g2_subView=core.AdminPlugins' WHERE g_id=101 failed. Table 'almasam.g2_EventLogMap' doesn't exist<br>
1146: Table 'almasam.g2_EventLogMap' doesn't exist<br>
<pre align=left> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font face="Courier New,Courier">ADOConnection._Execute(UPDATE g2_EventLogMap SET g_userId=6, g_type='Gallery Error', g_summary='ERROR_STORAGE_FAILURE', g_details='Error (ERROR_STORAGE...)</font><font color=#808080 size=-1> % line 872, file: <a href="file://opt/lampp/htdocs/almasam/lib/adodb/adodb.inc.php">adodb.inc.php</a></font>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font face="Courier New,Courier">ADOConnection.Execute(UPDATE g2_EventLogMap SET g_userId=?, g_type=?, g_summary=?, g_details=?, g_location=?, g_client=?, g_timestamp=?, g_referer=? W..., Array[9])</font><font color=#808080 size=-1> % line 715, file: <a href="file://opt/lampp/htdocs/almasam/modules/core/classes/GalleryStorage.class">GalleryStorage.class</a></font>
&nbsp; &nbsp; &nbsp; &nbsp; <font face="Courier New,Courier">GalleryStorage.updateMapEntry(EventLogMap, Array[1], Array[8], true)</font><font color=#808080 size=-1> % line 2885, file: <a href="file://opt/lampp/htdocs/almasam/modules/core/classes/GalleryCoreApi.class">GalleryCoreApi.class</a></font>
&nbsp; &nbsp; &nbsp; <font face="Courier New,Courier">GalleryCoreApi.updateMapEntry(EventLogMap, Array[1], Array[8], true)</font><font color=#808080 size=-1> % line 72, file: <a href="file://opt/lampp/htdocs/almasam/modules/core/classes/helpers/GalleryEventLogHelper_medium.class">GalleryEventLogHelper_medium.class</a></font>
&nbsp; &nbsp; <font face="Courier New,Courier">GalleryEventLogHelper_medium.addEventLogEntry(Gallery Error, ERROR_STORAGE_FAILURE, Error (ERROR_STORAGE_FAILURE)&lt;b&gt;in&lt;/b&gt; modules/core/classes/GalleryStorage.class &lt;b&gt;at line&lt;/b&gt; 494 (GalleryCoreApi::error)
&lt;b&gt;...)</font><font color=#808080 size=-1> % line 3312, file: <a href="file://opt/lampp/htdocs/almasam/modules/core/classes/GalleryCoreApi.class">GalleryCoreApi.class</a></font>
</pre>

Any idea what is the problem?
I dont want to uninstall as I dont want to lose all my tags data.
I cant find a tags download zip on this site that would let me simply go over all my files.


Gallery URL = http://??????.homeip.net/almasam/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 apache2handler
Webserver = Apache/2.2.11 (Unix) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8k PHP/5.2.9 mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0
Database = mysqli 5.1.33, lock.system=database
Toolkits = ImageMagick, Exif, Ffmpeg
Acceleration = none/43200, none/86400
Operating system = Linux Ubuntu 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12
Rows in GalleryAccessMap table = 10
Rows in GalleryAccessSubscriberMap table = 3603
Rows in GalleryUser table = 3
Rows in GalleryItem table = 3595
Rows in GalleryAlbumItem table = 96
Rows in GalleryCacheMap table = 0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6138
Posted: Thu, 2009-07-23 11:52

windows ignores upper case DB tables, I believe Bharat wrote a script http://codex.gallery2.org/Downloads:FixLowercaseFilenames
looks like you may have to hand edit the db tables.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Thu, 2009-07-23 18:19

See step 6:
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
ASNet0007

Joined: 2006-10-17
Posts: 177
Posted: Fri, 2009-07-24 07:54

Hi,

FIXED.

Its not just the first letter of the db table that needs changing. for example I had g2_Itemtags which should have been g2_ItemTags.

Cheers.