Active
Project:
Gallery
Version:
6.x-1.0
Component:
Code / API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2006 at 00:32 UTC
Updated:
7 May 2010 at 23:13 UTC
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&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
Comment #1
kiz_0987 commentedDoes 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.
Comment #2
chrisd commentedIt works with none-embed.
Thanks for the tip.
Chris
Comment #3
mindless commentedsounds 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..
Comment #4
kiz_0987 commentedI 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.
Comment #5
Roi Danton commentedI have no error with search module enabled and browsing with IE on my embedded gallery. (I haven't enabled URL rewrite, if this counts)
Comment #6
barkbarkuk commentedI'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.
Comment #7
profix898 commentedIs this still an issue? Please reopen if it is ...
Comment #8
barkbarkuk commentedDon't have the environment to check this against Drupal 4.7, but with Drupal 5 everything seems to be working nicely.
Comment #9
mindless commentedSeems 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.
Comment #10
Moosa commentedactually 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.