Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:19

Strange 404 error


Poster: tigal
Dated: Friday May 30 2008 - 12:14:29 BST

My (licensed) menu works fine since a long time so thats why I always upgrade it.
Yesterday I have implemented a custom 404 page that sends me an email message so that i can track and fix broken links.
I have found out that the menu generates a 404 error with the following link: http://www.mydomain.com:80/'default'
The 404 page do not show up but I gen the message, so something must be an "hidden" call. It happens every time the mouse cursor goes over a menu item that opens a submenu.

Any idea?

I hope I made myself clear...

Re: Strange 404 error


Poster: Andy
Dated: Friday May 30 2008 - 12:30:01 BST

Hi,

We are most definitely going to need to have a URL so that we can see what the problem is.

Can you provide a link to your website?

Cheers,
Andy

Re: Strange 404 error


Poster: tigal
Dated: Friday May 30 2008 - 12:37:40 BST

Andy wrote:
Hi,

We are most definitely going to need to have a URL so that we can see what the problem is.

Can you provide a link to your website?

Cheers,
Andy


please visit http://www.mydomain.com

thanks

Re: Strange 404 error


Poster: Andy
Dated: Friday May 30 2008 - 12:56:14 BST

When you get the 404 error, what is the page that can't be found.

Like, what's the menu looking for?

I've never seen this before so I can't just come up with an answer yet.

Re: Strange 404 error


Poster: tigal
Dated: Friday May 30 2008 - 13:39:48 BST

Andy wrote:
When you get the 404 error, what is the page that can't be found.

Like, what's the menu looking for?

I've never seen this before so I can't just come up with an answer yet.


Yes it is a really strange problem.

Well if you click on any wrong link (i.e. http://www.mydomain.com/fake.asp) you get the 404 custom page and I get an error message reporting the referer page and the requested link.
It happens that every time you go with the mouse cursor on any item that opens a submenu, I get the 404 error, but you do not see the error page, looks like the menu makes a call to a page that does not exist on the server.

Let's make an example: If you visit the page http://www.mydomain.com/contact.asp and you open any submenu, I ge two message for each menu you open, reporting the following:
- Referer page: http://www.mydomain.com/contact.asp
- Requested page: http://www.mydomain.com:80/'default'

The referer page changes accordingly to the page you are visiting, the requested page (http://www.mydomain.com:80/'default') remains the same.

It is driving me nut!

Re: Strange 404 error


Poster: Andy
Dated: Friday May 30 2008 - 14:10:33 BST

Hi,

Can you please add the following (temporarily) to your 404.php script:

Code:
      $details="";
      while(list($key, $val)=each($_SERVER)){
         $details.="$key - $val \n";
      }
      mail("temp7621 __at__ milonic.com","404 Error from ".$_SERVER['HTTP_HOST'],$details);


I'll be able to test it and see what happens

Re: Strange 404 error


Poster: tigal
Dated: Friday May 30 2008 - 14:18:47 BST

Andy wrote:
Hi,

Can you please add the following (temporarily) to your 404.php script:

Code:
      $details="";
      while(list($key, $val)=each($_SERVER)){
         $details.="$key - $val \n";
      }
      mail("temp7621 __at__ milonic.com","404 Error from ".$_SERVER['HTTP_HOST'],$details);


I'll be able to test it and see what happens


It is ASP not PHP :)

Re: Strange 404 error


Poster: tigal
Dated: Friday May 30 2008 - 14:30:37 BST

I have just tried using FireFox 2.0.14 and works fine, so looks like the problem is related to IE7 (Vista SP1) and IE6 (XP SP2).

Re: Strange 404 error


Poster: tigal
Dated: Friday May 30 2008 - 14:33:28 BST

Quote:
Andy, I'm just receiveng a lot of errors from UK, I think it is you doing some tests :)


Yes it's me.

I think I found it.

You have this in your menu data:

pointer='default';

And for some bizarre reason it is causing Internet Explorer to go fetch a page :roll: - Anyway, if you remove it, it should help. I think you could also try removing the quotes so that it is like this pointer=default; it's the quotes that is causing the problem.

You also have some image issues. some image setting in your data file are image=menu/ and others are image=/menu/ they should all really be image=/menu/.... - better to be safe.

let me know how it goes.

Cheers,
Andy

Re: Strange 404 error


Poster: tigal
Dated: Friday May 30 2008 - 15:04:12 BST

YOU DID IT!
It works now, just removed the quotes on the cursor and it works. BTW I have also fixed the images path.

While you are here... I still have a problem with pagematch, the following url are highlight the same:

pagematch=products.asp?cid=12
pagematch=products.asp?cid=123
pagematch=products.asp?cid=1230

I have found a workaround and I write like this:
pagematch=products.asp?cid=12&
pagematch=products.asp?cid=123&
pagematch=products.asp?cid=1230&

Just to let you know.


I'm really amazed by the prompt and professional support, really not easy to get nowadays.

Thanks


tigal wrote:
Quote:
Andy, I'm just receiveng a lot of errors from UK, I think it is you doing some tests :)


Yes it's me.

I think I found it.

You have this in your menu data:

pointer='default';

And for some bizarre reason it is causing Internet Explorer to go fetch a page :roll: - Anyway, if you remove it, it should help. I think you could also try removing the quotes so that it is like this pointer=default; it's the quotes that is causing the problem.

You also have some image issues. some image setting in your data file are image=menu/ and others are image=/menu/ they should all really be image=/menu/.... - better to be safe.

let me know how it goes.

Cheers,
Andy