Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 cgi-fcgi
Webserver = Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_perl/2.0.4 Perl/v5.8.8
Database = mysql 5.0.67-community, lock.system=flock
Toolkits = ArchiveUpload, Exif, Gd
Acceleration = none, none
Operating system = Linux dorado.securen.net 2.6.18-92.1.6.el5PAE #1 SMP Wed Jun 25 14:21:46 EDT 2008 i686
Browser:Firefox 3.5.3

I am using Gallery 2.3 embedded into Drupal 6.15

I have also noticed frequently errors thrown on the screen that expose internal server paths. This seems to be a problem only on the embedded gallery and not the standalone gallery; the standalone gallery handles such errors gracefully without exposing internal paths to the users.

For example, using the Keyword albums and trying to generate an album for a nonexistent keyword gives me an error as follows:

warning: Invalid argument supplied for foreach() in /home/myname/webfolder/gallery2/modules/core/classes/GalleryTheme.class on line 1446.

This error is not thrown on screen when I use the standalone gallery though!

I have already tried playing around with the Error Logging settings for Gallery and disabled Verbose output and debug outputs. However, I still get this error thrown on the screen.

Is there some way of preventing such errors from being thrown on screen when using the gallery drupal module for embedding Gallery2 into Drupal?

Regards,
KH

Comments

lvthunder’s picture

Does the error show up when no one is logged in? I'm thinking it might show up when the admin is logged in, but not when no one is logged in?

Also which G2 theme are you using? The error could be a result of something in the theme. Also you say the error is not thrown on the screen in standalone. Do you know if the error is happening in standalone and just being hidden or does the error not happen at all?

filiptc’s picture

Check out if any of these tips help you out (especially the last section): http://codex.gallery2.org/Integration:Drupal:Installation:URL_Rewrite

kjholla’s picture

@lvthunder the error is shown even when nobody has logged on. I have tried viewing the same URL with a browser in "Incognito mode" and the error is there to be seen!

I don't think the error is to do with the theme since it comes up no matter which theme I use. I am not sure if the error is happening in the standalone since I can't see it. The Event log shows nothing in either case.

kjholla’s picture

@filip_tc looks like you are on to something here.

Just made an observation that I had missed earlier. The navigation menu and the primary links on my installation disapppear when I view a Keyword Album. I know that it is something to do with the URL Rewrite since I faced that problem before.

Any ideas?

Regards,
KH

filiptc’s picture

Did you try the proposed changes in the link I gave you (section "troubleshooting"). Also, make sure you have correctly set up the path to drupal's htaccess through the embedded gallery URL rewrite settings page. There's not much more I can throw at you here, I myself have been hitting the wall with my head the last couple years when it came to gallery...

lvthunder’s picture

Try turning URL Rewrite off and see if you still see the error message.

kjholla’s picture

kjholla’s picture

Status: Fixed » Active

Hi All,

Just to let you know.

Upgrading to the version 2.3.1 of the Gallery software fixes this issue.

Regards,
KH

filiptc’s picture

Status: Active » Fixed

Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.