When loading the gallery http://www.domain.com/gallery (and every page in the gallery) I receive the error message:

A runtime Error has occired.
Do you wish to Debug?

Line: 8
Error: Object required

This is what the page looks like to with "view source":

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
  <title>Gallerie | Anciens du Caire</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="all">@import "/misc/drupal.css";</style><script type="text/javascript" src="/g2/modules/search/SearchBlock.js"></script>
<link rel="stylesheet" type="text/css" href="/g2/main.php?g2_view=imageframe.CSS&amp;g2_frames=shadow%7Cflicking"/>
<link rel="stylesheet" type="text/css" href="/g2/themes/classic/theme.css"/>
<link rel="shortcut icon" href="" type="image/x-icon" />

If I disable the search module the page loads without an error. So the error is caused by this line ?

<script type="text/javascript" src="/g2/modules/search/SearchBlock.js"></script>

Thanks,
Chris

Comments

kiz_0987’s picture

Does this occur with standalone G2? You can always remove the G2 search from the sidebar and use the drupal one -- which has a gallery search also.

chrisd’s picture

It works with none-embed.

Thanks for the tip.

Chris

mindless’s picture

sounds like search_SearchBlock_init is called before the element with id="search_SearchBlock" is added.
the init call uses {g->addToTrailer} so in standalone G2 it is added at the very end of the page.. maybe in embedded the order of these gets reversed? check the source to see..

kiz_0987’s picture

I checked the source and search_SearchBlock_init is added right at the end, so it should be OK.

I checked this with IE and have not received any error with Gallery2.1 and drupal4.7. Can anyone reproduce this error.

Roi Danton’s picture

I have no error with search module enabled and browsing with IE on my embedded gallery. (I haven't enabled URL rewrite, if this counts)

barkbarkuk’s picture

Title: IE error using embed not error with none-embed... » IE error using embed not error with none-embed... when navigation block on right

I've encountered this problem when the 'Gallery Navigation' block is in the right sidebar (or disabled) when using the Drupal 'blue marine' theme and the G2 'matrix' theme.

If the gallery navigation block is put in the left sidebar, no javascript errors are thrown.

profix898’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

Is this still an issue? Please reopen if it is ...

barkbarkuk’s picture

Don't have the environment to check this against Drupal 4.7, but with Drupal 5 everything seems to be working nicely.

mindless’s picture

Version: 4.7.x-1.x-dev » 6.x-1.0
Component: Code » Code / API
Status: Closed (fixed) » Active

Seems this has reappeared with the Drupal 6 version of the plugin.
If the sidebar is on the right, the search_SearchBox_init call appears before the search_SearchBlock form.

Moosa’s picture

actually the problem solved by disabling and uninstalling the search module in the gallery...
any solution for this? it is nice to have the search appears at gallery navigation block.