Author Topic: "Page Cannot Be Displayed" Crash [FIX]  (Read 3523 times)


  • Beginner
  • *
  • Posts: 14
  • Shared Hosting, Dedicated Servers & Web Dev.
    • Aboutimage Professional Web Services
"Page Cannot Be Displayed" Crash [FIX]
« on: February 27, 2009, 20:12:50 pm »
I've been getting errors on my Virtuemart pages in IE7. Looking around the forums, it seems a lot of people are. The problem I was experiencing was tied to mod_virtuemart. When I disabled that module, my page worked fine. So, digging in, I discovered that if I used LinkList or dTree for category display, the module works fine. But if I used TigraTree (the best looking one, in my opinion), I would get the error every one is complaining about.

Based on that, I started looking at the Javascript for the TirgraTree module:

I found the following code that looked funny (see line 36):

   for (var i = 0; i < a_items.length; i++)
      new tree_item(this, i);

   this.n_id = trees.length;
   trees[this.n_id] = this;

I changed it to the following (note the brackets):

   for (var i = 0; i < a_items.length; i++) {
      new tree_item(this, i);

   this.n_id = trees.length;
   trees[this.n_id] = this;

My site has been working ever since. It would appear that Safari and Firefox are a little more forgiving about the missing brackets than IE.

Dave Simpson
Aboutimage Professional Web Services

800     (800) 833-4204

Aboutimage is a Small Business (SB), Disabled Veteran Business Enterprise (DVBE), with over 30 years of information systems management (IT), web development, shared and dedicated hosting services, and business consulting.

Michael West

  • Jr. Member
  • **
  • Posts: 120
    • The Website
Re: "Page Cannot Be Displayed" Crash [FIX]
« Reply #1 on: March 06, 2009, 09:28:08 am »
Did you also notice the error that Firefox reports? Your input would be appreciated.

Error: missing ; before statement
Source File: /modules/mod_virtuemart/tigratree/tree.js
Line: 109, Column: 14

Code: [Select]

function item_upstatus (b_clear) {
 window.setTimeout('window.status="' + (b_clear ? '' : this.a_config[0] + (this.a_config[1] ? ' ('+ this.a_config[1] + ')' : '')) + '"', 10);

Is it due to double quotes inside double quotes? And could you suggest a correction as I'm not a programmer?
Try posting a link to your website in your profile, or a link to the error page if possible.

A picture is worth a thousand words. For XP get, or...

Windows Vista has a Snipping Tool in the Accessories area of the Start Button.

"We look for things that make us go, computer things."
(StarTrek NG: Pakleds Episode

Have you read the manual? I did, huh?