Strange 404 error

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tigal
Beginner
Beginner
Posts: 8
Joined: Wed Oct 10, 2007 3:06 pm

Strange 404 error

Post by tigal »

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...
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Strange 404 error

Post by Andy »

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
tigal
Beginner
Beginner
Posts: 8
Joined: Wed Oct 10, 2007 3:06 pm

Re: Strange 404 error

Post by tigal »

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
Last edited by tigal on Mon Dec 29, 2008 10:24 pm, edited 1 time in total.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Strange 404 error

Post by Andy »

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.
tigal
Beginner
Beginner
Posts: 8
Joined: Wed Oct 10, 2007 3:06 pm

Re: Strange 404 error

Post by tigal »

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!
Last edited by tigal on Mon Dec 29, 2008 10:23 pm, edited 1 time in total.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Strange 404 error

Post by Andy »

Hi,

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

Code: Select all

		$details="";
		while(list($key, $val)=each($_SERVER)){
			$details.="$key - $val \n";
		}
		mail("temp7621@milonic.com","404 Error from ".$_SERVER['HTTP_HOST'],$details);
I'll be able to test it and see what happens
tigal
Beginner
Beginner
Posts: 8
Joined: Wed Oct 10, 2007 3:06 pm

Re: Strange 404 error

Post by tigal »

Andy wrote:Hi,

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

Code: Select all

		$details="";
		while(list($key, $val)=each($_SERVER)){
			$details.="$key - $val \n";
		}
		mail("temp7621@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 :)
tigal
Beginner
Beginner
Posts: 8
Joined: Wed Oct 10, 2007 3:06 pm

Re: Strange 404 error

Post by tigal »

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).
Last edited by tigal on Fri May 30, 2008 2:36 pm, edited 2 times in total.
tigal
Beginner
Beginner
Posts: 8
Joined: Wed Oct 10, 2007 3:06 pm

Re: Strange 404 error

Post by tigal »

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
tigal
Beginner
Beginner
Posts: 8
Joined: Wed Oct 10, 2007 3:06 pm

Re: Strange 404 error

Post by tigal »

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:
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
Post Reply