I've installed Brilliant Gallery along with the supporting modules (jquery update, lightboxv2, colorpicker) and created a gallery folder at: files/images/foldername and uploaded a photo to the foldername folder. I created a story and inputed the following code [bg|foldername] to test whether the module is working. But I receive the following warning two times:

readdir(): supplied argument is not a valid Directory resource in /sites/all/modules/brilliant_gallery/brilliant_gallery.module on line 256.

And the photo does not appear in the submitted content.

Do you have any idea what the problem might be here?

Thank you.

Comments

femrich’s picture

It seems as if I have figured out how to eliminate the error message (it looks as if there was a path problem). But although the error message no longer appears, neither does the code produce any display of the .jpg file I stored in the folder. I am using the proper filter and do have the proper path settings in the brilliant gallery config. Any suggestions of how to fix this?

Thank you.

Frederick

Vacilando’s picture

Assigned: Unassigned » Vacilando

In your case, "images" should be set in the BG settings if you want to use [bg|foldername] tag in the page.

Are you sure your image names don't contain strange characters, e.g. spaces or "#" signs?

Does the gallery work if you put the tag in a (filter enabled) page (rather than story)?

If things still don't work please send me your URL or the HTML output of your page and I'll see what's the problem.

femrich’s picture

Status: Active » Postponed

Thanks for the suggestions. What I am seeing now is the following: On the node I created after installing Brilliant Gallery, using the special link suggested in the documentation, no image appears (but no longer an error message). However, I observe that with previously loaded nodes holding images, clicking on the title of the node leads to the full node, with a larger image size (as usual with the Image module). But clicking on the thumbnail launches the image very nicely as an individual Brilliant Gallery image.

What this suggests to me is that Brilliant Gallery is working properly, and that I just have to figure out the exact file structure and command syntax to use in order to create the gallery collections of thumbnails that launch individual pictures.

I will double-check filters and try a page, rather than story, as you suggest. At this point the BG required filters are part of my profile that also includes full html filters. I think I will create a completely separate filter and see if this helps. Perhaps there is some filter conflict with my existing configuration.

It will be a few days before I can turn to this. For now, I suggest we consider the issue postponed. I will report back in a few days to report success or to ask for further support.

Thank you.

Vacilando’s picture

Thank you, femrich, for the report, and I will look forward to your further news once you get back to testing. Putting the tag into a (filter enabled) page shall be a good quick test. Also, if you'll have any chance of sending a link or HTML output in a mail, it would help me pinpoint the issue very quickly. In the meantime, I agree we let this issue rest a bit.