404 on dirs

Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 156
Posted: Tue, 2009-10-06 17:36

So after taking about 10 years to import just half my photos on my test site and having EXIF tag issues, EXIF starts working out of nowhere so maybe it's due to running update translations today which I run everytime I login.

Anyways............

http://videos.picturewhore.net/ works.

Clicking the first link: December 2008 (stored in: C:\WWW\Videos.PictureWhore.net\var\albums\December 2008)

Yields:
http://videos.picturewhore.net/index.php/December%202008

Yielding 404........G2 with the same dir structure "December 2008" had no issues. I know "%20" = hidden space so what gives?

Server 2008 R2 / IIS 7.5 / PHP 5.2.11

========================================
SNIPLET FROM ERROR LOG
========================================

<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-10-06 10:48:47 -04:00 --- error: Uncaught Exception: @todo FORBIDDEN in file C:/WWW/Videos.PictureWhore.net/modules/gallery/helpers/access.php on line 189
2009-10-06 11:27:36 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, December 2008, could not be found. in file C:/WWW/Videos.PictureWhore.net/system/core/Kohana.php on line 841
2009-10-06 11:27:40 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, December 2008, could not be found. in file C:/WWW/Videos.PictureWhore.net/system/core/Kohana.php on line 841
2009-10-06 11:27:51 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, November 2008, could not be found. in file C:/WWW/Videos.PictureWhore.net/system/core/Kohana.php on line 841
2009-10-06 11:31:47 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, 2002/October 2002, could not be found. in file C:/WWW/Videos.PictureWhore.net/system/core/Kohana.php on line 841
2009-10-06 11:35:08 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, 2002/October 2002, could not be found. in file C:/WWW/Videos.PictureWhore.net/system/core/Kohana.php on line 841
2009-10-06 13:31:13 -04:00 --- error: Uncaught Kohana_404_Exception: The page you requested, December 2008, could not be found. in file C:/WWW/Videos.PictureWhore.net/system/core/Kohana.php on line 841

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 18:13

Just have to say it, Gallery 3 is not supported on Windows.

Now, it sounds like you're running into this issue (except that you're running IIS and can't utilize .htaccess and url rewrites, so....)
http://sourceforge.net/apps/trac/gallery/ticket/812

How did you import these? What version of G3 are you using? Make sure you're using the latest experimental version:
http://codex.gallery2.org/Gallery3:Upgrading

Spaces are not supported in URLs in G3, they should get converted to dashes (or underscores I can't recall which), they are supported in directory names though.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 156
Posted: Tue, 2009-10-06 18:25

1. The first answer is bs. We all know it. I've been using Gallery since 1.x ;)

2. IIS does do rewrites... Including one made for it: http://learn.iis.net/page.aspx/460/using-url-rewrite-module. I just got done building the server. Which the only thing I left out, was the rewrite module. I'm pretty sure if I turn on a VMsession with 2008 (not the R2 one), it worked flawless...In fact I'm positive.

I imported using the G2 import. I'm running 3 Beta 3. My files have no spaces, never have. Just the dirs have. I haven't had a chance to check the W3SVC logs, or anything else because I'm dealing with idiots on the phone in India for some RMA's....

I'm pretty sure the rewrite is the only thing I forgot (thanks for the reminder)....... And since http://learn.iis.net/page.aspx/460/using-url-rewrite-module/ exists, you guys can stop saying IIS isn't supported. Because IIS 7 and 7.5 support .httaccess files, including 6 (that needs a plugin)....

I hate debugging. ;)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 18:38

No, G3 is really not supported on Windows, IIS, etc

The ONLY supported platform right now for G3 is:
Linux
Apache 2.2
MySQL 5.x
PHP 5.2.3 or newer

If IIS is properly rewriting and you've set permissions so Everybody can't view images then requests are being forced through the file_proxy and spaces in URLs are not supported in G3, period. I believe that's also a bug in the G2 Importer as those should have been converted to dashes (or underscores). Though it may have been fixed since B3 was released. Grab the latest experimental code and try it again:

http://codex.gallery2.org/Gallery3:Upgrading

However, if the directory name and the Internet Address don't match and you are forcing requests through the file_proxy (removing guests from viewing images will do this) then you will run into this bug as I posted previously. I know it's that way on Apache, I don't know if/how IIS is working using Apache's rewrite rules.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 156
Posted: Tue, 2009-10-06 18:50

Yeah, the ONLY thing different here is the mod rewrite....Otherwise PHP/MYSQL etc handle it the same. The rewrite module they still are toying with (they have one that 100% MIMICS apache, but of course they made it a retarded price) and I expect in the next 2 weeks they will have a newer build.

Thanks for giving some insite instead of just saying "IIS ain't supported" and leaving it there. I'm a network engineer, but when it comes to writing code......FAILBOAT! ;) And every other gallery I've used besides one made with .net was horrible.

I'll enable my older VMSession that will allow me to see in real time what's going on, and run dependancy walker and process analyzer and see what's up. I'd start over, but with almost 30,000 images on a test site, importing it takes FOREVER....... Guess I'll make more test sites haha!

Thanks for the info. And FYI, G2 is part of the Microsoft web installer, so not implementing that into G3.....Would be a fail in my eyes. If you guys need help with getting IIS etc let me know. I'd be glad to help, I just would need some guidance on the coding side.....That also explains why my Mt Dew has some rum in it. ;)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Tue, 2009-10-06 18:58

I'd have to dig up some old posts, but basically, right now, if it works on Windows it works :) If not, there's not a lot of effort (if any) that will go into making it work on Windows/IIS.

It essentially has to do with resources and some other decisions. If a solid, dedicated, Windows based PHP developer wanted to jump on board, commit 100s of hours per year to coding and support, we'd be all for it.

You can search the forums for some other posts, here's one notable one that sticks in my mind:
http://gallery.menalto.com/node/90281

Ah and in my searching I ran across this:
http://gallery.menalto.com/node/86033

This also lists some reasoning as well:
http://gallery.menalto.com/gallery_3_begins
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 156
Posted: Tue, 2009-10-06 19:55

Seriously, thanks for your time...... I know I can get it working again. Just have to fix a few settings (I wrote a script that does 90% of this) everytime I build a new server. PHP doesn't have to be re-written, just usually the api's involved with it, and since the only thing in the way is the rewrite.......I'm almost certain that's it. Because every other site I have works including (this won't work on IIS/Windows) ones.....

Thankfully I'm working from home today so I can give the middle finger to the rum and consume it but that won't resolve this.

But really, I appreciate the info. I'll read it once I've closed the other 30 applications. God I hate having ADHD and feeling the need to multitask.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Wed, 2009-10-28 03:36

You might try the latest experimental code as ticket 812 has been fixed
http://codex.gallery2.org/Gallery3:Upgrading
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Ranger187
Ranger187's picture

Joined: 2005-12-02
Posts: 156
Posted: Tue, 2010-01-19 19:02

FYI, Windows now fully supports gallery3 provided you are running IIS7, aka Windows 7 (Seriously why would you use this? ;) ) Windows Server 2008 or Server 2008 R2. PHP 5.2.12 is auto installed with Microsoft Web Platform software along with Mod_Rewrite. I suggest v2.0 for the rewrite.