problems with imported pics from G1

ivvan

Joined: 2006-08-18
Posts: 2
Posted: Fri, 2006-08-18 15:39

Hello guys,
i did upgrade to G2 from G1 - G1 was in domain root, i removed it to "g1" directory, installed G2 in to the root dir and imported old albums. I was using mod rewrite and short urls. I did map old data during import, uploaded new .htaccess to "albums" and "g1" directory, switched on url rewriting in admin.
Old albums are accessible (www.example.com/album111), but i have problems with images, when i try to access directly images(e.g. www.example.com/albums111/picture1), i got this error :

Error (ERROR_MISSING_OBJECT) :
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 119 (gallerycoreapi::error)
* in modules/core/classes/GalleryCoreApi.class at line 1942 (galleryfilesystementityhelper_simple::fetchchildidbypathcomponent)
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 64 (gallerycoreapi::fetchchildidbypathcomponent)
* in modules/core/classes/GalleryCoreApi.class at line 1885 (galleryfilesystementityhelper_simple::fetchitemidbypath)
* in modules/rewrite/classes/RewriteSimpleHelper.class at line 50 (gallerycoreapi::fetchitemidbypath)
* in ??? at line 0 (rewritesimplehelper::loaditemidfrompath)
* in modules/rewrite/classes/RewriteUrlGenerator.class at line 98
* in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 50 (modrewriteurlgenerator::_onload)
* in init.inc at line 113 (modrewriteurlgenerator::init)
* in main.php at line 73

I'm still able to access old images, if i'm using new kind of linking system - "www.example.com/album111/picture1.jpg" or "picture1.jpg.html"
Can someone of experts tell me what i'm doing wrong, please?
Thanks much, ivan


G2 URL (optional): www.albumz.biz
G2 version: 2.1.1
G1 URL (optional): www.albumy.biz/g1/
G1 version: 1.5.4
G1 character set: 8859-2
PHP memory limit: 64M
--
PHP version (e.g. 4.3.11): 4.4.3
PHPInfo Link (see FAQ): http://ex8.exmasters.com/phpinfo.php
Webserver (e.g. Apache 1.3.33): Apache
Database (e.g. MySql 4.0.11): MySQL 4.1.20
Activated toolkits (e.g. NetPbm, GD): ImageMagick
Operating system (e.g. Linux): Linux
Browser (e.g. Firefox 1.0): Mozilla 1.5

 
ivvan

Joined: 2006-08-18
Posts: 2
Posted: Fri, 2006-08-18 16:16

here is my .htaccess from root :

Quote:
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_FILENAME} !/main\.php$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} \ /d/([0-9]+)-([0-9]+)/([^\/\?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !/main\.php$
RewriteRule . /main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]

RewriteCond %{THE_REQUEST} \ /([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !/main\.php$
RewriteRule . /main.php?g2_view=core.ShowItem&g2_path=%1 [QSA,L]

</IfModule>

# END Url Rewrite section

and an example of imported old photo :
old link, don't work - http://www.albumy.biz/pupava/2004_0612splav0087
and when we add ".jpg" or .html" to the end it works - http://www.albumy.biz/pupava/2004_0612splav0087.jpg.html