php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20158 Sidebar link throws javascript exception
Submitted: 2002-10-29 18:37 UTC Modified: 2002-11-05 17:48 UTC
From: jonny at sanriowasteland dot net Assigned:
Status: Closed Package: Website problem
PHP Version: 4.3.0-pre2 OS: Win2k / Mozilla 1.2a(2002101612)
Private report: No CVE-ID: None
 [2002-10-29 18:37 UTC] jonny at sanriowasteland dot net
When clicking on the sidebar link, the following javascript exception gets thrown:

Error: uncaught exception: [Exception... "Component returned failure code: 0x80040154 (NS_ERROR_FACTORY_NOT_REGISTERED) [nsIDOMWindowInternal.sidebar]"  nsresult: "0x80040154 (NS_ERROR_FACTORY_NOT_REGISTERED)"  location: "JS frame :: http://www.php.net/sidebars.php :: addPanel :: line 70"  data: no]

If this is a mozilla bug rather than a php.net bug, please say so, so I can fill out a bug report on bugzilla instead.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-30 03:00 UTC] goba@php.net
Please try another sidebar, something like http://phpug.de/ (see the mozilla and opera icons on the left). If that also fails for you, then the error is in Mozilla.

BTW we use a simple function call documented by Mozilla, no special magic, so it should not be buggy...

<script language="JavaScript">
function addPanel()
{
    if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
        window.sidebar.addPanel("PHP.net Search Bar","http://www.php.net/searchbar.php","");
    else
        alert('Sidebar cannot be added! You must use Mozilla 0.9.4 or later!');
}
</script>

<a href="javascript:addPanel()">add
our sidebar to your set</a>

You can also try this HTML fragment out...
 [2002-10-30 03:16 UTC] toni dot viemero at iki dot fi
Mozilla sidebar works fine with Win98/Win2k/WinXP/FreeBSD / Mozilla 1.2b(Gecko/20021016).
Perhaps this is/was a bug in Mozilla 1.2a, fixed in 1.2b.
A quick search from Mozillas bugzilla didn't show up anything.
 [2002-11-05 17:48 UTC] jonny at sanriowasteland dot net
The Problem was a broken install of mozilla.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 29 07:01:31 2024 UTC