I had BG working with only a problem (couldn't get more then 1 column) and I configured my cck field image field, image cache etc to manage my node images.

BG stopped working and I got this result: http://tunamedica.com/novosite/Album/Abrantes-IX-fESTA-250408?374335671=1

Are there any known conflict?

CommentFileSizeAuthor
#12 image_php.zip2.63 KBW.M.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Vacilando’s picture

Status: Active » Postponed (maintainer needs more info)

I can guarantee BG continues to work flawlessly on many sites ;-)
You need to look for watchdog or PHP error messages, or check your BG settings and tags; the problem will be local to your site. Multiple columns are no problem either.

If you need help provide more info, please.

Quedas’s picture

I'm trying to find any conflict. I found this in the manage galleries tab (I don't have galleries):
warning: Invalid argument supplied for foreach() in /home/quedas/public_html/novosite/sites/all/modules/brilliant_gallery/brilliant_gallery.module on line 409.

Quedas’s picture

I found that it was the pathologic module the source of the problem...

retswerb’s picture

Just curious if there are other known module conflicts. I'm getting the above "invalid argument" error message as well. I've never used bg before, just installed it.

site info:
drupal 6.15
admin menu
advanced help
backup migrate
brilliant gallery
captcha
cck
ckeditor
content access
google analytics
imagefield
imce
lightbox2
views
webform

W.M.’s picture

I get the same problem.. Something wrong in line 409.. Any ideas?! Thanks! I used to have 3.4 but upgraded to 3.6

JonAnthony’s picture

I have the same problem - the module is seemless with a local directory, but throws an error on 409 when I put a [bg|picasa rss] link in.
Any clues would be appreciated

allenrg’s picture

I receive the same error, "warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/(DOMAIN NAME)/httpdocs/modules/brilliant_gallery/brilliant_gallery.module on line 409." when going to Site Configuration/Brilliant Gallery/Manage Galleries.

This is a new install of Drupal 6.19 on a dedicated Linux server yesterday and I have the following modules installed:
- Brilliant Gallery 3.6
- Google Auth 1.0 (this error occured before this was installed)
- Lightbox2 1.9

Internal Components selected:
- Blog - Forum - Statistics
- Color - Help - Taxonomy
- Comment - Menu - Update Status
- Database Logging - Search

I added "Albums" to sites/default/files and referenced that directory in the configuration. That is really the only change I made.

Any suggestions would be appreciated.

W.M.’s picture

See if the solution provided by me here can do any help:

http://drupal.org/node/668054

allenrg’s picture

I took a look and if I am understanding properly, you are referring to an upgrade from 3.5 to 3.6. Mine was a brand new install of 3.6 and the image.php file is using some different logic.

The $imagepath variable is as follows:
$imagepath = realpath(file_directory_path() . $urlpath);

The $imagepath that you are referring to is remarked out.

Note that I did attempt to install the 4.x DEV version to see if it made a difference and it did not.

I also added output to see what the variables were displaying and here is what I found:
Note: I configured 'albums' as the path the main gallery folder
- Files folder: sites/default/files/
- RP = sites/default/files/albums
- ABSOPATH = sites/default/files/albums
- PATH = http:///sites/default/files/albums
- GALLERYPATH = albums
- RECURS = (this shows up blank)

Does this help?

W.M.’s picture

@allenrg

I experienced the problem also on a fresh BG 6.x-3.6 installation. You need to go to http://drupal.org/node/171445/release to download BG 6.x-3.5 version.

Note: the lines in php code under my post at http://drupal.org/node/668054 started by a plus sigh "+" mean that you need to add these lines (without the + sign)

Update me regarding progress.

allenrg’s picture

@Geir19

Thanks for the help. However, still no success.

I did add the lines mentioned. I tried again after seeing this post on v3.6 by adding the two lines and then changing the $imagepath line. I still receive the same error.

I then uninstalled 3.6, downloaded 3.5 and installed it. I tried it first without the changes mentioned and I received the error. I then made the changes and still received the error.

Sorry....any other ideas?

W.M.’s picture

FileSize
2.63 KB

@allenrg

It looks like there were some other minor modifications I have made at that time. I don't have time to compare the original file (from ver 3.5) and this one now, so here you can find the image.php file that makes BG work at my site. Please use Notepad++ in order to compare the changes. Or you can simply use the file in the zip file, just overwrite the one in the BG folder with the one in the zip file. You have to modify line 126 to suit you needs:

  $myfiles = 'content'; // (where my files are located since I don't use sites/default/files)

Change 'content' to 'path to your files i.e. where albums folder is'

@developers

Would you please have a look at the attached file ?! Any idea what is wrong in the newest version ?! I am sure the problem is related to paths (gallery locations)

JonAnthony’s picture

Hi all,

I though I would update this post to say I had lost the configuration of my input filters during a change. When i re enabled, all came back.

Jon

blade003’s picture

Title: BG stoped working » BG stoped working ---The correct syntax for the image path!!! - SOLVED!!!

There seems to be some confusion on how to configure the Path to the main gallery folder.

The normal syntax in most module configurations will be to configure an image path as such ..... sites/default/files/images but Brilliant Gallery uses Drupal's "File system path: " as a prefix hence you ONLY need to enter the actual directory itself (create one if it doesn't exist). I have given an example on how it should be done below:

* Drupal's "File System Path" = sites/default/files

* Brilliant Gallery's "Path to the main gallery folder" = /images (make sure you create the folder called images)

--- IMPORTANT NOTE: - Remove any prefix in the file path for BG to recognise it otherwise it won't work

Hope this helps!!!

Vacilando’s picture