Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-10-24 06:33:35

Lowlander
New member
Registered: 2006-10-24
Posts: 3

Error 500 using ImageManager

I an getting this error when opening ImageManager:
[Tue Oct 24 12:08:41 2006] [error] [client xx.xxx.xx.xx] mod_security: Access denied with code 500. Pattern match "\\.\\./\\.\\./" at REQUEST_URI [id "300004"] [rev "2"] [msg "Generic Path Recursion denied"] [severity "CRITICAL"] [hostname "www.xxxx.nl"]

Offline

#2 2006-10-24 12:09:13

koto
Xinha Pro
Registered: 2006-01-09
Posts: 58

Re: Error 500 using ImageManager

The server (Apache?) is mis-configured. One of it's modules (mod_security) does not allow requests in a certain format (matching the pattern specified in the error message). You should forward this message to server administrator and ask him to reconfigure mod_security settings.

Or, maybe you have defined the path to your images using parent directory construct ('../') - you cannot do this - images_url setting must be a valid URL (absolute or relative).

I had a similar problem once:

some badly configured hosts forbid access to URLs with"..%2F..%2F" string, even in query string.

I had to change images_dir setting to represent full absolute directory to images. I used PHP realpath() function to do this like this:

$IMConfig['images_dir'] = realpath(dirname(__FILE__) . '/../../{CONFIG product_pictures_dir}/user') . '/';

Offline

#3 2006-10-25 02:49:31

Lowlander
New member
Registered: 2006-10-24
Posts: 3

Re: Error 500 using ImageManager

koto wrote:

Or, maybe you have defined the path to your images using parent directory construct ('../') - you cannot do this - images_url setting must be a valid URL (absolute or relative).

Probably this was the problem, but it's academic now as I have replaced ImageManager by ExtendedFileManager, which works perfectly.

Thanks

Last edited by Lowlander (2006-10-25 02:50:17)

Offline

#4 2006-10-25 05:25:41

koto
Xinha Pro
Registered: 2006-01-09
Posts: 58

Re: Error 500 using ImageManager

That's even more surprising as EFM and IM basically share the same code for the issue described smile Glad to hear it though smile

Offline

Board footer

Powered by FluxBB