Zen Cart Logo
Forums / Bug Reports / [Not a Bug] EZ-Page Links IE bug when first clicking

[Not a Bug] EZ-Page Links IE bug when first clicking

Locked

Views: 3,823

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
19 Dec 2006, 11:25 AM
#1
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

[Not a Bug] EZ-Page Links IE bug when first clicking

I am using the EZ-Pages and this bug is only in IE

I have had customers come on the site and click Contact Us or any of the links in my EZ-Pages bar. The first time they click it show's a page not found. Click it again and it works. Firefox work's fine.

I am using SEO URL's but I turned off and still was a problem. Only other thing I have done is a .htaccess file used by SEO has a redirect error404 to page not found.

It sounds like some sort of rewrite error???

http://www.lionblade.com

23 Dec 2006, 4:03 PM
#2
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

Hi,

I don't use EZ-pages and don't use SEO URL's, but I noticed the bug you mentioned on someone else's shop (indeed using EZ-pages and SEO url's).

Switching off SEO url's does not help, since the switch does not really switch of the SEO mod, the switch only partly (virtually?) disables it.

Note that it's related to the url's having a "&" before the first parameter in those cases, while it should be a "?". And indeed it only happens on first click when the script tries to attach the zenid (and Firefox does not seem to bother about the incorrect "&").

(I found a fix at the time, but I forgot how I fixed it)

23 Dec 2006, 4:05 PM
#3
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

And I don't think it's a Zen bug BTW.

23 Dec 2006, 4:26 PM
#4
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

Hi

yeah, i think it's a bug with EZ-pages. Because once you click it and get the Page not found, the second time it has changed the "&" into a "?" which let's it work. I'm thinking it's in the ez pages code when it is first initilaised. Any idea where the ez page files are located??

Obv it will be good if you remember how it was fixed ;)

23 Dec 2006, 6:27 PM
#5
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

Some of it comes back:

  1. The fix was done in the SEO code, certainly not the EZ pages code.

  2. Not sure about this one, but I think it only happened because the shopowner wanted SEO url's for the EZ pages as well (it did not happen when the EZ pages where not "optimized"). I don't know about the current version, but at the time the SEO url's mod did not really support EZ-pages.

24 Dec 2006, 3:49 PM
#6
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

This is a bug on EZ Pages. I don't have SEO's url on any of my sites and the error is always there (on the first click). It only happens if you insert a relative address but not when you insert the complete url.

24 Dec 2006, 7:21 PM
#7
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

**includes/modules/ezpages_bar_header.php

I believe the error maybe in the above file

**Line #51 : zen_href_link(FILENAME_EZPAGES, 'id=' . $page_query->fields['pages_id'] . '&chapter=' . $page_query->fields['toc_chapter'], ($page_query->fields['page_is_ssl']=='0' ? 'NONSSL' : 'SSL')) :

This is the line where the header is written. It seems when you try to link to an existing file it won't work. Like a Contact Us link pointing to a Contact Us file. But if it's something you wrote using EZ pages links then it's ok. Hope someone knows the coding better than me

25 Dec 2006, 3:02 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

I add a new EZ-Pages ...

I set the name to: Contact Us

I add a Sort Order to Header: 60

I enter into the Internal Link URL:

index.php?main_page=contact_us

Seems to work fine ...

How are you adding it?

25 Dec 2006, 3:10 AM
#9
ideasgirl avatar

ideasgirl

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,437
Plugin Contributions:
3

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

There's no problem with ZC pages, but if you have a website in the same domain, then it comes the problem.

For example, if you go to my store and click on "Gallery" which is a relative page (../Site/gallery.htm) then it will come with "page cannot be displayed" (only if is the first click). Doesn't happen if it's not the first click (look how the url changes to see the problem).

25 Dec 2006, 3:31 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

Instead of using a Zen Cart Internal Link ...

Use the External Link so you can use the full URL to that link ... that is why it is there ... :smile:

25 Dec 2006, 1:19 PM
#11
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

I found the little fix I added.

In the seo.url.php class file look for:

      // clean up the link before processing
      while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);
      while (strstr($link, '&&')) $link = str_replace('&&', '&', $link);

And after that add:

			
      // bof quickfix for SEO combined with internal EZ-pages links
      if (!(strstr($link, '?'))) $separator = '?';    
      // eof quickfix for SEO combined with internal EZ-pages links

Note: I guess the current version of the SEO mod hasn't changed at this point, but I am not sure about that.

25 Dec 2006, 2:40 PM
#12
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: [Not a Bug] EZ-Page Links IE bug when first clicking

Yep Ajeh

Helps if I read what it say's when your creating the link

I had put in contact_us.html

and now have changed it to

		 				index.php?main_page=contact_us

What a plonker!!! All bugs fixed now! Thank you :D