mediablock: Error loading childItems:Error (ERROR_BAD_PARAMETER)

trstn

Joined: 2010-06-14
Posts: 27
Posted: Fri, 2010-09-03 08:44

Hi there, quick one (I hope).

All was working fine with my gallery2 last night, I'm using mediablock to pull the content into another page but this morning for some reason I'm getting this error on my gallery2 powered pages:

Error loading childItems:Error (ERROR_BAD_PARAMETER)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 39 (GalleryCoreApi::error)
in modules/core/classes/GalleryCoreApi.class at line 2361 (GalleryEntityHelper_simple::loadEntitiesById)
in mediaBlock.php at line 399 (GalleryCoreApi::loadEntitiesById)
in mediaBlock.php at line 1061
in mediaBlock.php at line 1079

The mediablock code I'm using is this:

<?php @readfile('http://www.jennydmakeup.co.uk/gallery2/mediaBlock.php?g2_itemId=35&limit=30&useThumb=0&column=30&noLink=1'); ?>

Which sits within this page: http://www.jennydmakeup.co.uk/fashion.php

And tries to pull in the content from this gallery: http://www.jennydmakeup.co.uk/gallery2/main.php?g2_itemId=35

The only thing I think I could have done to affect it is installing the url rewrite plugin, but I've backtracked and removed that this morning but mediablock is still having problems.

Gallery2 works fine (http://www.jennydmakeup.co.uk/gallery2), just not mediablock.

Got my fingers crossed for an easy fix :)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-09-03 10:03
 
trstn

Joined: 2010-06-14
Posts: 27
Posted: Fri, 2010-09-03 11:25

I'm an idiot.

In an effort to lock down the /gallery2/ url (to make it a kind of admin section for the site owner but still provide public access to the images via imageblock) I'd removed the guest permission for "[core] View all versions".

Just put that back in and, big surprise, it works fine again.

Apologies for wasting your time :)