You need to configure OR warning: in_array():

deanmostow

Joined: 2005-09-21
Posts: 3
Posted: Wed, 2005-09-21 01:23

My gallery is located here & works fine:
http://www.a-linepipetools.com/beta/gallery2/

... I've got Drupal 4.6 installed here
http://www.a-linepipetools.com/beta/

How ever, when you click on the 'gallery' button, its showing an error of:
warning: in_array(): Wrong datatype for second argument in /**** gallery.module on line 376.
& the line below said the same but on line 387.

.. since then, i've been playing around and in the settings of drupal
. I've set the gallery to beta/gallery2/

And this is the results I'm getting:
"You need to configure your embedded Gallery "
.. but the gallery works fine.

Any thoughts?

Dean

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-09-21 09:22

moving to the g2 integrations forum.

 
deanmostow

Joined: 2005-09-21
Posts: 3
Posted: Wed, 2005-09-21 21:10

bump

 
deanmostow

Joined: 2005-09-21
Posts: 3
Posted: Fri, 2005-09-23 23:21

I reinstalled drupal & the gallery and both seemed to work fine now...

 
rup3rt

Joined: 2005-10-26
Posts: 9
Posted: Wed, 2005-10-26 13:04

(unbump to help with google reference)

There is a relevant bit of code fixing here:

In gallery.module:

print theme('page', 'You need to <a href="/admin/settings/gallery">configure your embedded Gallery</a>');

the path should not have a leading slash

print theme('page', 'You need to <a href="admin/settings/gallery">configure your embedded Gallery</a>');

This will at least take you to the admin page and clear up queries/red herrings with urlrewriting. The problem is probably with the login/authentication (I am still trying to fix mine!!)

r3

 
rup3rt

Joined: 2005-10-26
Posts: 9
Posted: Wed, 2005-10-26 13:20

(unbump to help with google reference)

There is a relevant bit of code fixing here:

In gallery.module:

print theme('page', 'You need to <a href="/admin/settings/gallery">configure your embedded Gallery</a>');

the path should not have a leading slash

print theme('page', 'You need to <a href="admin/settings/gallery">configure your embedded Gallery</a>');

This will at least take you to the admin page and clear up queries/red herrings with urlrewriting. The problem is probably with the login/authentication (I am still trying to fix mine!!)

r3

 
rup3rt

Joined: 2005-10-26
Posts: 9
Posted: Wed, 2005-10-26 14:03

(unbump to help with google reference) drupal 4.6.3 gallery 2.1

There is a relevant bit of code fixing here:

In gallery.module the path should not have a leading slash:

Before:
print theme('page', 'You need to <a href="/admin/settings/gallery">configure your embedded Gallery</a>');

After:
print theme('page', 'You need to <a href="admin/settings/gallery">configure your embedded Gallery</a>');

-------
This will at least take you to the admin page and clear up queries/red herrings with urlrewriting.

For the main fix I installed :
- a recent CVS of main.php (1.131) from gallery2 itself
http://cvs.sourceforge.net/viewcvs.py/gallery/gallery2/main.php

- the enhanced gallery.module for drupal
http://drupal.org/node/32393#comment-51140

and the rest of the problems were fixed.......... :-)

r3

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-10-26 14:28

btw: you can edit your previous post, no need to repost almost the same post again ;)