[solved] ImageFrame Module / Carbon: Error (ERROR_BAD_PARAMETER)

Freelancealot

Joined: 2009-08-18
Posts: 36
Posted: Thu, 2009-08-27 02:30

Hi

I've posted on the mediaBlock site forum about an issue with links from the mediaBlock on the root album page having GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT at the end of the url. I want to know how to get rid of this and have a 'prettier' url. I'm using the url rewrite module with Gallery 2.3 (Carbon), but this doesn't seem to be having any effect.

The site is also quite slow to load and I wonder if this could be causing the problem, or at least contributing to it.

When I looked in the Event Log details in Gallery2 I found the following 'Gallery Error''.

Quote:
Event Details
Date Thu Aug 27 02:45:57 2009
Type Gallery Error
Location http://www.mysite.com/gallery2/main.php?g2_view=imageframe.CSS&g2_frames=shadow&g2_GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT
User Id 5
Summary /usr/home/me/public_html/gallery2/modules/imageframe/module.inc
Referer http://www.mysite.com/gallery2/main.php
Details
Error (ERROR_BAD_PARAMETER) : /usr/home/me/public_html/gallery2/modules/imageframe/module.inc in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 94 (GalleryCoreApi::error)
in modules/core/classes/helpers/GalleryPluginHelper_simple.class at line 88 (GalleryPluginHelper_simple::loadPlugin)
in modules/core/classes/GalleryCoreApi.class at line 273 (GalleryPluginHelper_simple::loadPlugin)
in modules/core/classes/GalleryView.class at line 153 (GalleryCoreApi::loadPlugin)
in main.php at line 325 (GalleryView::loadView)
in main.php at line 104
in main.php at line 88

Request variables: Array
(
[view] => imageframe.CSS
[frames] => shadow
[GALLERYSID] => TMP_SESSION_ID_DI_NOISSES_PMT
)

The call to the mediaBlock includes some parameters and I wonder if this is causing some problem with the imageFrame module?

{php} @readfile('http://www.mysite.com/gallery2/mediaBlock.php?g2_itemId=7&mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=24&useThumb=1&column=6&useMicro=40');{/php}

Any pointers gratefully received.

Cheers,

Tracy


Gallery version (not just "2"): 2.3
ImageFrame / Carbon:
PHP version (e.g. 5.1.6): 5.2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Thu, 2009-08-27 03:05

Is the imageframe module installed/active in your gallery?

if you look through mediaBlock.php you will see several forceSessionId => true
replace them with forceSessionId => false

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Freelancealot

Joined: 2009-08-18
Posts: 36
Posted: Thu, 2009-08-27 14:18

Hi,

Okay, thanks for pointing that out. (blush!)

I've now activated the plugin, and made the changes to forceSessionId instances in mediaBlock.php, but I'm still getting http://www.mysite.com/gallery2/main.php?g2_itemId=140&g2_GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT :(

It seems there's a problem with the permissions on the images for imageFrame module, as I'm getting 'forbidden' when I look at the browser activity log for files such as:

I've changed (CHMOD) permissions of the modules/ImageFrame/frames and images folders to 744 (it was on 700). But I'm still getting a Forbidden in the activity list. Also, when I go to imageFrame sample page none of the images are showing.

Any ideas?

I would like the mediaBlock links be the same as the normal Gallery2 links - for example, the above picture link is usually http://www.mysite.com/gallery2/v/self-portraits/chinese-dragon.jpg.html - will that be possible?

Thanks for your help.

Cheers,

Tracy

 
Freelancealot

Joined: 2009-08-18
Posts: 36
Posted: Thu, 2009-08-27 16:50

Okay. Probably a cache issue, but the url is now cleaned up and showing http://www.mysite.com/gallery2/main.php?g2_itemId=61, so thanks, you've sorted that issue out for me.

I'm still getting forbidden in the browser activity list when I visit the page with mediaBlock on, and the imageFrame sample page is still not showing the frame images?

Any ideas?

Cheers,

Tracy

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Thu, 2009-08-27 22:32
Quote:
I've changed (CHMOD) permissions of the modules/ImageFrame/frames and images folders to 744

try 755 recursively
chmod -R 0755 /system/path/to/modules/ImageFrame/

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Freelancealot

Joined: 2009-08-18
Posts: 36
Posted: Fri, 2009-08-28 00:45

Thanks, that seems to have done the job. :)

Cheers,

Tracy