Forums / Install & configuration / "Error on page" when loading in IE [Solved]

"Error on page" when loading in IE [Solved]

Author Message

Vidar Østevik

Tuesday 25 April 2006 11:18:54 am

Hi everyone!
I've fiddeled around for a bit with eZ publish, and are a very happy user!
But, I have a problem that I cant find any solution for.
Down in the left corner of IE, there are a field telling you if the page is fully loaded.
Every page I load, I get the text "Error on page". When I doule click on the error mark, I'm told that "document.getElementByld(...) is null or not an object" (Direct translated from Norwegian.. May not be exact the phrase in english) in line 3 and 17.
I'm using IE explorer 6.0.2900.2180 SP2.
Nothing is displayed in the error log.

This problem does not show up in Mozilla.

Any suggestions?

Regards,
Vidar

Łukasz Serwatka

Wednesday 26 April 2006 12:09:31 am

Hi Vidar,

Do you use any custom JavaScript scripts in your website?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Vidar Østevik

Wednesday 26 April 2006 8:39:13 am

Hi Lukasz!

I have no custom javascript in my webpage, but I'm running suckerfish as menu.
I guess the error is caused by "script_suckerfish.js", because the java file contains the command "getElementsById".

In line 2 there is

var sfEls = document.getElementById("nav").getElementsByTagName("LI");

And in line 16 there is

var sfEls = document.getElementById("tache_menu").getElementsByTagName("LI");

Maybe this is the problem?I'm not a skilled java programmer, so if anybody have suggestions, I would appreciate it!

I also tried to access the web page via my laptop, running XP Pro and IE 6.0.2900.2180 SP2.
And the error message did not appear here!?

Regards
Vidar

Vidar Østevik

Tuesday 16 May 2006 1:15:34 pm

If anybody have the same problem, the solution that worked for me was to remove the following lines in script_suckerfish.js

sfHover = function() {
          var sfEls = document.getElementById("tache_menu").getElementsByTagName("LI");
          for (var i=0; i<sfEls.length; i++) {
             		sfEls[i].onmouseover=function() {
                this.className+=" sfhover";
             }
             sfEls[i].onmouseout=function() {
                this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
             }
          }
       }
       if (window.attachEvent) window.attachEvent("onload", sfHover);

If you read the double_top.tpl that suckerfish uses as an override, you will find that there are not created any div called tache_menu, so the original script will return the mentioned error ("document.getElementById is null or not an oject") because there does not exist an Element called "tache_menu". So commenting this out would fix the problem!

Vidar

eZ debug

Timing: Jan 18 2025 16:17:11
Script start
Timing: Jan 18 2025 16:17:11
Module start 'content'
Timing: Jan 18 2025 16:17:11
Module end 'content'
Timing: Jan 18 2025 16:17:11
Script end

Main resources:

Total runtime0.1487 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.8516180.8203
Module start 'content' 0.00600.0054 768.671998.0859
Module end 'content' 0.01150.1366 866.7578527.1563
Script end 0.1480  1,393.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00382.5418200.0002
Check MTime0.00161.0724200.0001
Mysql Total
Database connection0.00070.488210.0007
Mysqli_queries0.102969.19791410.0007
Looping result0.00130.89251390.0000
Template Total0.136391.610.1363
Template load0.00090.582310.0009
Template processing0.135491.046010.1354
Override
Cache load0.00060.420810.0006
Sytem overhead
Fetch class attribute can translate value0.00090.627310.0009
XML
Image XML parsing0.00030.197010.0003
General
dbfile0.00161.0946200.0001
String conversion0.00000.004030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs