Hi, I have just created my first gallery, and am able to sort and manage the images. However, if I select either "Gallery List" or "My Galleries" menu options I just get a blank page.

I have PHP error reporting switched on and no errors are given.

I am using NG 6.x-3.x-dev, Views 6.x-3.x-dev. My Drupal version is 6.20 hosted by Aegir 0.4-beta2.

Comments

justintime’s picture

Please check your Apache logs - WSOD's usually get logged there.

trotskyicepick’s picture

Having set Apache up to debug error logging I just get the following after trying to access my gallery:

[Fri Jan 28 09:36:25 2011] [debug] proxy_util.c(1922): proxy: initialized single connection worker 0 in child 9661 for (*)
[Fri Jan 28 09:36:25 2011] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 9658 for worker proxy:reverse
[Fri Jan 28 09:36:25 2011] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized
[Fri Jan 28 09:36:25 2011] [debug] proxy_util.c(1922): proxy: initialized single connection worker 0 in child 9658 for (*)
[Fri Jan 28 09:36:42 2011] [debug] mod_deflate.c(615): [client xxx.xxx.xxx.xxx] Zlib: Compressed 0 to 2 : URL /index.php, referer: http://www.smart.local/
[Fri Jan 28 09:36:42 2011] [debug] proxy_util.c(1806): proxy: grabbed scoreboard slot 0 in child 9701 for worker proxy:reverse
[Fri Jan 28 09:36:42 2011] [debug] proxy_util.c(1825): proxy: worker proxy:reverse already initialized
[Fri Jan 28 09:36:42 2011] [debug] proxy_util.c(1922): proxy: initialized single connection worker 0 in child 9701 for (*)
[Fri Jan 28 09:36:45 2011] [debug] mod_deflate.c(615): [client xxx.xxx.xxx.xxx] Zlib: Compressed 0 to 2 : URL /index.php, referer: http://www.smart.local/

which with my limited knowledge looks OK. The only messages I get from Node_Gallery is when I access the "Manage Images" screen I get a message stating: "Found the image sort view, but the 'Node: Nid' field wasn't found".

justintime’s picture

Ah, forgot that Aegir is using Apache in some atypical ways. Anyway, the important part is the message about the image sort view.

Have you changed the image sort view on your NG relationship? If not, then you likely made a change to the node_gallery_gallery_image_views that broke things. Try reverting that view, and point your relationship to the "Image sort" display on that view.

justintime’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Bumping to support request until we verify for sure it's not something in the view.

trotskyicepick’s picture

Hi Justin, thanks for the response and sorry for my late reply (I've been away a few days). I don't recall changing anything in particular but will have a look. TBH I'm finding it a little bit confusing being non-technical, but NG with NJcarousel and plupload is just so damn fab looking I really want to use it instead of a standard Lightbox. Will post back later.

trotskyicepick’s picture

Have now reverted both node_gallery_gallery_image_views and node_gallery_blocks views back to their original state. However, if a choose to preview any of the available view settings for node_gallery_gallery_image_views it comes back stating "no query was run", if I do the same for node_gallery_blocks it runs a query and produces the expected list of images.

scroogie’s picture

If you want to preview this view you need to enter a node id of a valid gallery in the Argument box.

trotskyicepick’s picture

Thanks Scroogie, didn't see the really obvious box for an argument, doh.

Well I now know that the node_gallery_gallery_image_views view does work. But still the Gallery List and My Galleries pages are blank.

scroogie’s picture

Do you have access to your php.ini? If so, please enable error_reporting E_ALL and set display_errors to "1". Are there any error messages after these modifications? Is anything in your Drupal dblog? We need some kind of error message to help you here.

trotskyicepick’s picture

Sorry, can't seem to be of much help here. I have enabled error reporting etc in my PHP.INI and no errors are given. Also, no errors are shown in my dblog (by which I assume you mean my mysql log files). The log files just tell me a query has been executed, no errors at all.

scroogie’s picture

DBLog is the module that logs drupal events to the database: /admin/reports/dblog
It's called "Database logging" in the modules page. In php.ini, did you also enable "display_errors"? This is the important part.

justintime’s picture

@trotskyicepick - first, see @scroogie's post.

When you've updated us there, are you the webhost here (ie VPS)? If you're paying a webhost for your account, perhaps you can file a support ticket with them and refer them to this issue? We'd be more than happy to work with them to ensure the module works on Aegir, but I don't have the free time to set up a development instance of it right now.

trotskyicepick’s picture

Hi Justin, I had all the necessary logging/error reporting set up but got nothing (even though other modules reported PHP errors). Also, in Drupal I have Database Logging set up, but there is no DBLog report on the reports page, just a report of recent log entries, of which there was nothing relating to NG.

Anyways, I have redone my site as a standalone Drupal 6.20 site now, will have to learn more about Aegir before going back to that. I am the webhost, and now I have managed to solve the WSOD problem when viewing the gallery pages. I now have an issue (probably caused by severe lack of time and/or patience) where on both the "My Galleries" and "Gallery List" pages, it shows my one gallery, and under there the title of each image with just a small vertical line for the image. If you click on the line or title it takes you into the gallery itself, but this does not display any image at all. I think it has something to do with the node_gallery_blocks view as previewing this produces the same result. I haven't made any particular config changes at all just quickly followed the documentation (which I will go through properly again this morning).

I know this is just something I've missed in configuration, but I had so much to do yesterday, I'm a bit lost.

Thanks both for your time and patience, it is much appreciated.

trotskyicepick’s picture

Status: Fixed » Postponed (maintainer needs more info)

Success!!!.....on top of everything else, I'd gotten myself confused with conflicting advice regarding the setting up of Apache for clean urls, now I have figured that out and got clean urls working NG is doing exactly what it should. So it seems NG "needs" clean urls before it will work (don't "think" that was in the documentation).

Time to back up before I start playing with NJCarousel and Lightbox2 integration with NG.

Thanks again.

trotskyicepick’s picture

Status: Postponed (maintainer needs more info) » Fixed
trotskyicepick’s picture

Sorry, just one more little bit of help. Even though anonymous users have the "view node gallery", "access content" permissions, and all "Access Control" settings for the various content types involved have been set to allow access to anonymous users, they don't see any images in my gallery, not even a place holder. Have rebuilt perms to no avail.

Please feel free to move this to a new post. And huge thanks again your patience.

scroogie’s picture

Status: Postponed (maintainer needs more info) » Active

Anonymous users also need the according imagecache permissions. Can you check if they are unchecked for any reason? They are

view imagecache node-gallery-cover
view imagecache node-gallery-display
view imagecache node-gallery-thumbnail

trotskyicepick’s picture

Hi, they are all checked for anonymous users. This particular site is a non-community site, so only content authors and drupal admins ever need to login. So, basically, as far as the ability to view any type of content is concerned anonymous users have all "content view" type permissions set. I forgot to mention (don't think it's important), but anonymous users do get shown the image titles?

Thanks for the quick response.

PS. Have tried changing the views access settings to role rather than permissions, but this made no difference.

trotskyicepick’s picture

You are going to laugh (or maybe cry)....I found my problem. Under "content_permissions module" I had not selected "view field_node_gallery_image".....now I have and it works fine.

Pesky Drupal permissions ;D

scroogie’s picture

Title: WSOD when viewing gallery » Aegir compatability
Status: Active » Postponed (maintainer needs more info)

Ok, great that you found a solution. Let's leave this for the original issue then. Perhaps someone else using Aegir will chime in and report.

zengenuity’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

At this point, I won't be adding new features to the D6 version. If features are wanted for D7, please post a new issue.