/gallery2/main.php - why is this my 2nd most popular URL in stats?

snackmaster
snackmaster's picture

Joined: 2005-11-20
Posts: 135
Posted: Sun, 2008-03-02 02:20

Gallery's Main.php has been my 1st or 2nd most popular URL since embedding Gallery in Wordress ~2+ years ago. I've always run Gallery in embed mode so why is that? Embed mode like so:
$gallery->setConfig('mode.maintenance', false);
/* Embedded mode. You can disable direct access to main.php (standalone G2)
* by setting this this flag to true. */

Is the traffic to the URL from the WPG2 plugin & pages, Search Engine's directing folks there, spiders, malicious scripts.... ?

Wordpress = /
Gallery = /gallery2
URL rewrite = /gallery
WPG2 title = Gallery
WPG2 slug = gallery
wp-gallery2.php = redirect 301 -> /gallery

http://www.gfisk.com/gallery

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-03-02 07:38

This is because in certain photo views (IE FullSize, Slideshow, Lightbox) G2 will direct the link via main.php rather than via WPG2 page. For now we cannot change this until we move away from the imageblock plugin (which is responsible for fetching/displaying G2 images)

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
snackmaster
snackmaster's picture

Joined: 2005-11-20
Posts: 135
Posted: Sun, 2008-03-02 20:55

Would Sidebar block be such a view? I don't use FullSize, Slideshow, Lightbox or anything else. Just Thumbnails and basic pages with the images.

I do see that 404s for gallery pages lead to Main.php & "Item not found" so that could account for some. Which is a second question :) can I achieve a standard 404 with Gallery embedded in WP?

Thanks,
snack

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-03-02 22:11

I have just described why the imageblock uses such a view, If you look at the links being accessed you should be able to see the content being referenced, also remember outside the sidebar, Gallery2 also does display full size images as well.

Part of your post concerns me, you should not get a 404 when viewing main.php nor get a item not found, even if you have blocked direct access to your Gallery2.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
snackmaster
snackmaster's picture

Joined: 2005-11-20
Posts: 135
Posted: Wed, 2008-03-05 23:54

Yes the 404 concerns me too, but it's that visitors see Main.php with errors instead of the sites normal 404 page.

Example
http://www.gfisk.com/gallery/fooimage.jpg -> redirects to main.php with following error

Quote:
Error Detail -
Error (ERROR_MISSING_OBJECT) : Parent 7 path fooimage.jpg
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 .......

Thanks for the imageblock explanation.
My concern was not only confusion in interpreting Stats but that when Main.php is viewed directly the visitor sees an error/security violation page
Example: http://www.gfisk.com/gallery2/main.php

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-03-06 05:55

I had a look at the page and noticed the following /gallery2/d/2003-2/meekerpark_lodge.jpg <- /d/ in rules = download or Directly via Gallery2 which I believe goes via main.php.

Yeah it is pain, as you have pointed out it throws out the views.. I never got to the bottom of why this happens... I might bump that old thread again...

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Fri, 2008-03-07 22:46

I have confirmed this with the G2Developers that any item accessed Directly (via core.DownloadItem) will show as via main.php as it is internally displayed not via the Embedded Application Page..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo