[SOLVED] G2 - Short URLS: Show Item with /v does not work

heo

Joined: 2005-10-19
Posts: 26
Posted: Fri, 2012-08-24 09:24

Hallo zusammen!

Seit gestern taucht bei meiner Installation ein Problem auf wo ich nicht weiter weiß.
Zugegeben, ich habe etwas herumgespielt um die Anbindung an mein Android-Handy auszuprobieren (was auch super klappt).
Außerdem habe ich erst Anfang der Woche auf V 2.3.1 upgegraded - da war das Problem noch nicht da

Mod_Rewrite funktioniert, ich kann zb die "popular" verwenden oder auch die Verkürzung zu den permanenten Verweisen (http://server/f/album_heo)

Aber irgendwie funktioniert der Verweis auf die Elemente nicht mehr (mit /v/ELEMENT)
Sobald ich hier zb ein Album angebe, lande ich auf dem Serverroot.

ZB
http://server/g2/v/album1 ergibt seit heute http://server/main.php

Vermutlich ist die Ursache das ich zB auf der Startseite der G2 beim öffnen auf ein Album oder Bild hier auch keinen "Namen" erhalte, sondern den Link auf eine Item-ID
http://server/g2/main.php?g2_itemId=4711 anstatt noch gestern http://server/g2/v/album1

Ich bilde mir außerdem ein bei den Wartungsaufgaben gab's einen Punkt wo man die Kurzen URLS überprüfen/neu erstellen konnte?
Das fehlt nämlich ebenfalls.

Hat jemand eine Idee was ich angestellt haben könnte?

Vielen Dank!

LG
heo

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-08-24 10:35

Hi,

I don't think many people look in this section and you might get a better response in the english language sections if you can post there.

On your issue,
- change the name of the .htaccess file in your g2 root folder to htaccess.text
- put a blank .htaccess there instead
- try to uninstall and reinstall the urlrewrite module.
- configure the module with the same settings as before.

--
dakanji.com

 
heo

Joined: 2005-10-19
Posts: 26
Posted: Fri, 2012-08-24 11:17

Hi!

Thank you for your hint, I moved the topic....

Sorry, it doesn't work.
I tried an empty .htaccess-file and the same procedure with no .htacces-file (it was created) and filled

I was not able to active the URL Rewrite - Plugin - without any Error-Message. Nothing happens if I click on "activate"

If it activate the plugin direct in the mysql-db (set the flag from 0 to 1) - I have the same issue discribed above:
Some Features work (eg permalinks with http://server/g2/f/album_heo - or popular) but NOT shot item with http://server/g2/v/album1
And no short names at opening an album - i get http://server/g2/main.php?g2_itemId=4711

Do you have any further suggestions?

Best regards,
heo

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-08-24 11:24

Not being able to activate the module is a sign something has gone wrong.

I'll completely delete it from the G2 admin and then download and reinstall from scratch.

--
dakanji.com

 
heo

Joined: 2005-10-19
Posts: 26
Posted: Fri, 2012-08-24 11:56

Tried it 2 times. And checked if the plugin-folder is really deletet.

The .htaccess is written after clicking on "activate" - but nothing happens.

Here is my .htaccess:

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

RewriteBase /gallery2/

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

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

# END Url Rewrite section

Yes, I'm sure you're right, but I have no idea where to search the error without any message...

 
heo

Joined: 2005-10-19
Posts: 26
Posted: Fri, 2012-08-24 11:55

Oh, I've seen I have Verson 2.3.2 - the latest.
Here's the SystemInfo:

Quote:
Gallery URL = http://server/gallery2/main.php
Gallery-Version = 2.3 Kern 1.3.0
API = Core 7.54, Modul 3.9, Motiv 2.6, Eingebettet 1.5
PHP-Version = 5.2.9 apache2handler
Webserver = Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9 mod_jk/1.2.27
Datenbank = mysqli 5.1.33-community, lock.system=database
Werkzeuge = Exif, LinkItemToolkit, Thumbnail, Gd, Dcraw, Ffmpeg, NetPBM, jpegtran, ArchiveUpload, ImageMagick, mplayer
Beschleunigung = full/900, none/0
Betriebssystem = Windows NT 5.1 build 2600
Standard-Motiv = heo
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Zeilen in der GalleryAccessMap Tabelle = 31
Zeilen in der GalleryAccessSubscriberMap Tabelle = 2441
Zeilen in der GalleryUser Tabelle = 3
Zeilen in der GalleryItem Tabelle = 2439
Zeilen in der GalleryAlbumItem Tabelle = 61
Zeilen in der GalleryCacheMap Tabelle = 29001

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2012-08-24 12:38

Difficult to say exactly what might be wrong.

Delete the htaccess and apply the script in this post to force delete the module.

Then, try to reinstall from scratch.

IF the activate doesn't work, then something must have been missed out during the G2 upgrade I think.

--
dakanji.com

 
heo

Joined: 2005-10-19
Posts: 26
Posted: Sat, 2012-08-25 08:31

Well, that's very strange....

i did a complete new installation of gallery2 - delete the data-folder as well as the gallery2-folder and the mysql-db - so it should be a complete new installation => i couldn't activate the short url - module.......

Next, i made a restore from the last full-backup from monday of the gallery2-folder and data data-folder. the mysql-db was the same (i realized that my sql-backup-jobs didn't run....)

now it work's very fine as yesterday - i have lost 3 pictures that i have to re-upload....

i've no idea what's gone wrong......

nevertheless, thank you for your quick support!

regards, heo