Zen Cart Logo
Forums / General Questions / Click back button and page not found?

Click back button and page not found?

Views: 2,001

Results 1 to 9 of 9
18 Aug 2011, 3:38 PM
#1
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Click back button and page not found?

Hello all,
I was just wondering if anyone can help me on a small issue i have.
On the bottom of my page: http://www.cakekraft.co.uk i have an information box with About Us, Site Map, Discount Coupons etc, now if you open one of these, and click the back button, it redirects to a Page Not Found :dontgetit

This also happens with the Recipes and Gallery tpo nav buttons on the top bar, yet if you pick a recipe then click back it works.

I think it is something to do with ez pages? Not sure so any help would be appreciated.

Regards
Nic.

19 Aug 2011, 2:07 AM
#2
flamer avatar

flamer

New Zenner

Join Date:
May 2010
Posts:
44
Plugin Contributions:
0

Re: Click back button and page not found?

It works fine in firefox, however in IE there are java script errors, I would recommend removing the google addon you are running for now and see if that fixes it.

Your site is totally broken in IE 7

19 Aug 2011, 7:51 AM
#3
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Re: Click back button and page not found?

flamer:

It works fine in firefox, however in IE there are java script errors, I would recommend removing the google addon you are running for now and see if that fixes it.

Your site is totally broken in IE 7

When you say the google add on i presume you mean the google plus button at the top of the pages? If so i can remove that.
So all back buttons on my site work ok on the About Us and Terms page? Just dont work on my Firefox set up.
The Javascript errors are they just in IE7 or is it in general, can anyone else verify this for me.
Thank you
Nic

19 Aug 2011, 8:46 AM
#4
flamer avatar

flamer

New Zenner

Join Date:
May 2010
Posts:
44
Plugin Contributions:
0

Re: Click back button and page not found?

you are running google analytics, have a look at your source code and you will see the JavaScript for it.

The JS errors are only in IE7. In FF everything worked perfect for me.

24 Aug 2011, 9:45 PM
#5
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Re: Click back button and page not found?

Thought i would update this.
Seems my "Back" buttons on my website (not the back buttons on the browser) still do not "go back" to the previous page. Instead it goes to here:

http://www.cakekraft.co.uk/index.php?main_page=page_not_found

This happens on all of my pages that have a back button :dontgetit

Any help on how to get the back button to actually go back to the previuos page please?
Thank you,
Nic.

24 Aug 2011, 10:48 PM
#6
flamer avatar

flamer

New Zenner

Join Date:
May 2010
Posts:
44
Plugin Contributions:
0

Re: Click back button and page not found?

Its the SEO plugins / URL re-writes that break this.

You might want to visit the forums for whichever module you are using and see if there is a solution.

here was someone elses solution:
"
Found out that you hadn't got any text defined for
HEADER_LOGO_IMAGE, so it was building a URI of
includes/templates/template/images/
which was causing the Zen Cart 404 page (page not found page) to be loaded, which is then recorded in the Zen Cart session history, messing up the zen_back_link function.

I commented out the line which loaded in this messed up header image link in includes/templates/template/common/tpl_header.php.
"

24 Aug 2011, 11:00 PM
#7
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Re: Click back button and page not found?

flamer:

Its the SEO plugins / URL re-writes that break this.

You might want to visit the forums for whichever module you are using and see if there is a solution.

here was someone elses solution:
"
Found out that you hadn't got any text defined for
HEADER_LOGO_IMAGE, so it was building a URI of
includes/templates/template/images/
which was causing the Zen Cart 404 page (page not found page) to be loaded, which is then recorded in the Zen Cart session history, messing up the zen_back_link function.

I commented out the line which loaded in this messed up header image link in includes/templates/template/common/tpl_header.php.
"

Hi Flamer, again :)
I have SEO/URL installed, so i need to find out who made this mod and ask / look for this answer regarding the back button?
Sorry if i sound dumb....i am lol:blush:

24 Aug 2011, 11:10 PM
#8
flamer avatar

flamer

New Zenner

Join Date:
May 2010
Posts:
44
Plugin Contributions:
0

Re: Click back button and page not found?

yeah that would be the easiest way, everyone with your mod installed would have the same issue. you can try fix it yourself but its likely there is already a fix for it.

24 Aug 2011, 11:16 PM
#9
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Re: Click back button and page not found?

flamer:

yeah that would be the easiest way, everyone with your mod installed would have the same issue. you can try fix it yourself but its likely there is already a fix for it.

Just been looking here: http://www.zen-cart.com/forum/showthread.php?t=86353&page=485 post 4847 having same problem.
I will make a post there to bump it up a bit :)
Ill read the whole post tomorrow hehe.
Thanks