Galleria seems to be working fine on my system, but it gives the above error on the top of the page where I use it. I can suppress the error message by un-checking the Galleria warnings in the configuration screen, but I'd like to know what this error means and if I should take some action. I've looked through the ReadMe but I don't have a clue. Could you explain more about this error message and what it means? Thanks!

CommentFileSizeAuthor
#13 GalleriaFullNode.png67.25 KBIKN
#13 GalleriaTeaser.png51.34 KBIKN
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mark Theunissen’s picture

Sure, it means that you are trying to display a Galleria node as a teaser. This message is there to warn you that you need to display the node on a page of it's own to get the Galleria to show up.

So for example, if a Galleria is promoted to the front page with a whole bunch of other teaser nodes, you will see this.

steve02476’s picture

Sorry to be a bit dense here, but I don't understand. I don't use teasers anywhere on my site, and nothing is promoted to the front page - in fact virtually all the nodes on my site are page nodes. We don't use the typical "story" content type that many sites use.

Also, you say the warning is there because I need to do something to get the gallery to show up - but the gallery shows up fine, just with the warning on top of it.

When we create the Galleria gallery page, we just go to "create content" and select Photo Gallery, which is a content type we created. Then we populate it with pictures and add it in as a menu item.

Is there something wrong about this process? Could this be a problem with our Photo Gallery content type, or with our theme?

Thanks.

Mark Theunissen’s picture

What you are describing sounds correct.

Can you give me more info, or a link to the site if it's live?

I assume you're using the Upload module to attach images, rather than the CCK Imagefield?

Basically, the conditions that trigger this message are:

1) You're asking Drupal to view a node.
2) The node you're asking for is configured to be a Galleria.
3) The node is not by itself on a page (the $page variable == FALSE).

Now, this could be happening through a block's functionality. For example, do you have a display of nodes in a block, through a view maybe?

The main Galleria is showing up, but then you're making a second request to view the Galleria again, this time in a block or footer or something...

steve02476’s picture

Yes, I'm using Upload to attach images.

Here's my complete step by step:
(1) I do create content >> add gallery
(2) I give the gallery a name, and choose & attach a couple files
(3) I click "save"
(4) After a few seconds it says Photo Gallery "name" has been created, and shows it to me - looks fine but it has the warning "Gallerias only display when viewing a node by itself on the page. See README.txt for help." above it.
(5) I go to content management >> list and click on the gallery I just created
(6) Again, it looks fine but it shows the warning

So in terms of your conditions, yes, I'm asking Drupal to view a node and the node is configured to be a Galleria. I don't understand your last condition. There are certainly other things on the page, like header and footer blocks, navigation, etc. And I have no idea what the $page variable is set to - how does it get set, and how do I check its current setting?

Thanks for your help.

steve02476’s picture

Some more info:

I tried changing out of my custom theme to use the standard Garland theme - the error message is still displayed.

And, here is my field definitions exported from CCK, maybe this will help?

$content['type'] = array ( 'name' => 'Photo Gallery', 'type' => 'gallery', 'description' => 'Add a photo gallery using this content type. It displays as a javascript gallery using Galleria.', 'title_label' => 'Title', 'body_label' => '', 'min_word_count' => '0', 'help' => '', 'node_options' => array ( 'status' => true, 'promote' => false, 'sticky' => false, 'revision' => false, 'revision_moderation' => false, ), 'upload' => '1', 'file_path' => '', 'file_path_pathauto' => 0, 'file_path_tolower' => 0, 'file_path_transliterate' => 0, 'file_name' => '[filefield-onlyname-original].[filefield-extension-original]', 'file_name_pathauto' => 0, 'file_name_tolower' => 0, 'file_name_transliterate' => 0, 'retroactive_update' => '', 'show_preview_changes' => true, 'show_diff_inline' => false, 'galleria' => '1', 'nodewords' => 1, 'old_type' => 'gallery', 'orig_type' => '', 'module' => 'node', 'custom' => '1', 'modified' => '1', 'locked' => '0', 'comment' => '0', 'comment_default_mode' => '4', 'comment_default_order' => '1', 'comment_default_per_page' => '50', 'comment_controls' => '3', 'comment_anonymous' => '0', 'comment_subject_field' => '1', 'comment_preview' => '1', 'comment_form_location' => '0', );

Again, thanks for helping me out with this. -Steve

Mark Theunissen’s picture

Hmm I am stumped.

The $page variable is passed to the Galleria module from Drupal. Basically, whenever you are viewing a node on your site, someone or something has specified whether the node is going to be displayed by itself on the page.

For example, on the URL /node/1, the node with ID 1 will be displayed with $page set to TRUE, because it's a node page. So various other things happen, like for example the breadcrumb is set, and the title is omitted from the node template because it will be shown in the page template instead as an H1.

If you are displaying a list of node teasers, then $page will be set to FALSE. If you have a node displayed anywhere else on the site, say in a block, normally this happens.

Is your site live? Can you give a link?

steve02476’s picture

Hi Mark,

Sorry to be a pain! I just emailed you our test site address via email, I didn't feel comfortable posting in here because it's a test site. Maybe we have something set wrong, or maybe there is a module conflict of some sort - but I don't know how to set the $page variable even if I wanted to do it. We don't do anything with teasers on our site, unless something is going on that I totally don't know about. Are there any general Drupal settings or any Galleria settings or module conflicts that might cause this?

I appreciate all your follow-up on this, as well as your making the module in the first place.

-Steve

steve02476’s picture

Update

I corresponded with Mark via email a little, and he helped me troubleshoot to find the problem. It looks like there is a conflict with another module I'm using called "Meta Tags" (also known as "Node Words"). If I disable this other module, the Galleria error message goes away. As soon as a enable the Meta Tags module, the error message comes back.

http://drupal.org/project/nodewords

Mark's going to check into whether Meta Tags or Galleria is doing something wrong, and I'm sure he'll post here when he has a solution or at least a better understanding.

Mark Theunissen’s picture

Title: Galleria error msg: "Gallerias only display when viewing a node by itself on the page" » "Gallerias only display when viewing a node by itself on the page" when using Node Words / Meta Tags module
Status: Active » Fixed

Ok, so this is what is happening:

1) Node words will attempt to use the teaser of the node if there are no meta tags set. There is a setting for this in the Node words module: admin/content/nodewords/global

2) If this setting is switched on, then Node words will attempt to load a Galleria's teaser data every time you visit the Galleria page.

3) Galleria complains because someone is trying to view it as a teaser.

Workaround:

1) Provide meta tags for the Galleria. Problem solved.
2) On the settings page, turn off the option to use teasers if no meta tags are provided (globally).
3) On the settings page of the Galleria content type, switch off the option to use teasers if no tags are provided (fix for just Galleria). This is under "Workflow settings"

;)

Mark Theunissen’s picture

It appears that the setting doesn't work on a per-content type basis. It's there, but I think that the Nodewords form isn't created properly and the setting is not being saved.

I suggest making an issue in the node words queue for this problem.

steve02476’s picture

I just tested workaround #1 - using the metatags. And that seems to work fine. The metatags module adds 2 fields to the node, tags and description. Leaving those fields blank seems to prompt Galleria to show the error message. Oddly, actually adding tags doesn't help, it seems like only adding a description will get rid of the error message. But, it seems reasonable if I want to have the Meta Tags modules turned on then I should actually use it for my Galleria pages. Great detective work. Thanks!!!!

Status: Fixed » Closed (fixed)

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

IKN’s picture

Title: "Gallerias only display when viewing a node by itself on the page" when using Node Words / Meta Tags module » Open Atrium: "Gallerias only display when viewing a node by itself on the page" NOT using Node Words / Meta Tags module
Status: Closed (fixed) » Needs review
FileSize
51.34 KB
67.25 KB

Hi Mark, Great module for ease-of-use.

Unfortunately, I, too, am getting this error message.

First QUESTION: Turning off the error messages is doable, but is there any danger that this error (with or without the message) will cause problems?

I don't see how to post a node without an image without getting the "no image" error (besides turning off the messages). I have been through the possible fixes and nothing seems related.

Second QUESTION: Are you saying that there is no way to show a teaser of a galleria node -- even if the image is pushed out of the teaser? That would make it useless if a list of nodes is needed, wouldn't it?

Here are some details:

*I am enabling this module for other content-types and am not creating a content-type for Galleria exclusively.

*I am not using nodewords.

*I have enabled galleria in the content-types I want it in.

*I have read and re-read the README and see nothing about teasers in it.

*I have moved the Galleria field to below the body to avoid the teaser completely. Is this what is meant by not showing galleria in a teaser? At any rate, the error appears all over the site, regardless of whether a galleria-enabled node is showing.

I still get the error with drupal 6 and also on Open Atrium. I thought that it might be the gradebook module which I am also using, but uninstalling that had no effect.

Suggested problem-solving steps welcomed.