Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Contact Us give "Page not Found" after sent message, but ONLY in Firefox

Contact Us give "Page not Found" after sent message, but ONLY in Firefox

19 Dec 2012, 3:37 AM
#1
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #1 by coreyalderin

My contact us page gives a "page not found" after sending a message with Firefox and message does not go thru. I have tested in Chrome and IE and it all works just fine though.

Any ideas what could be going on?

Thanks
Corey

19 Dec 2012, 4:30 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

Is the "page not found" coming from your webserver? ie: shows as a white page with a 403 page not found message?
Or is it pointing to your Zen Cart index.php?main_page=page_not_found which looks like your store but has a friendly message and maybe a site map on it?

What's the URL in the browser when this "page not found" appears?
Is the URL different in the other browsers?

What rewrite rules are active on your site?
Do you have any so-called "SEO" mods/plugins installed? If so, which one? Does the problem persist if you turn it off?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Dec 2012, 2:31 PM
#3
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #3 by coreyalderin

Coming from Zen-cart

Here is the **Firefox **URL that appears after sending: http://www.toolsforchrist.com/index.php?main_page=page_not_found

IE is not working now (at the time I started this thread it was working though): http://www.toolsforchrist.com/index.php?main_page=contact_us&action=success

Chrome does work: http://www.toolsforchrist.com/index.php?main_page=contact_us&action=success

No rewrite rules and no SEO add-ons.

Thanks

20 Dec 2012, 4:04 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

In several other forum threads you've posted a bunch of times about many changes you've been making to the contact-us page.

If you're not using original code, then we're looking at a moving target and can't really help you.

When I use a fresh install of Zen Cart, I can use the contact-us page in every browser I've heard of, and it works consistently correctly. I can only imagine your problems must be caused by differences between your site's code and original Zen Cart code.

I believe I listed several files involved in the contact us page, when you asked about those in one of your many other threads on the topic.

I'm not sure why you keep starting new threads when the topic isn't really that much different, especially when thing are related to each other.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Dec 2012, 2:15 PM
#5
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #5 by coreyalderin

Yes, this seems to be a reacurring problem. But I guess I think they are different issues because in previous cases it did not work in all browsers but now it works in some. The other thing is that I have not touched the contact us page since the time I fixed it all. I thought maybe there was a slight chance that by stating it was not working in specific browsers that someone may have known the issue. I did not intend to annoy or innapropriately use this forum. I will continue to investigate and maybe I will just start from scratch.

20 Dec 2012, 10:52 PM
#6
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #6 by coreyalderin

I restored the tpl_contact_us_default.php file to its original contents and I am having the same problem. Is there anything outside of this file that I should be checking that could be causing the problem?

20 Dec 2012, 11:01 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

As I said in the other thread, there are 3 files involved:
/includes/modules/pages/contact_us/header_php.php -- this does the processing and tells it to redirect to main_page=contact_us&action=success
/includes/languages/english/contact_us.php
/includes/templates/name_of_the_template/templates/tpl_contact_us_default.php

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Dec 2012, 3:03 AM
#8
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #8 by coreyalderin

Yes, thanks. The only thing that I changed in any of these files though is a phrase that I changed in the english file. Everything else is unchanged.

Thanks for the responses.

21 Dec 2012, 4:38 AM
#9
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #9 by rodg

coreyalderin:

Yes, thanks. The only thing that I changed in any of these files though is a phrase that I changed in the english file. Everything else is unchanged.

Logically, if this IS the only thing you've changed, then this must also be the cause of the problem (knowing that the unchanged files work OK).
As DrByte says "If you're not using original code, then we're looking at a moving target and can't really help you".

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

21 Dec 2012, 2:40 PM
#10
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #10 by coreyalderin

OK. I changed everything in the the tpl_contact_us_default.php and contact_us.php files back to the template contents. I don't remember ever touching the header_php.php and its not in a custom folder. And I am still having the same problem. So if these are the only files that can affect how the Contact Us page works then I guess the only explanation could be the header_php.php file. But since this is the only file I have of this, is there a place I can find what the original contents are so I can compare?

Thanks again for the help

21 Dec 2012, 2:56 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #11 by schoolboy

What happens when you revert to CLASSIC template?

20 years a Zencart User

21 Dec 2012, 3:04 PM
#12
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #12 by coreyalderin

schoolboy:

What happens when you revert to CLASSIC template?

I have the same problem

21 Dec 2012, 5:42 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #13 by drbyte

Does this happen only on your computer, or on 10 others you've tested it on?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Dec 2012, 5:51 PM
#14
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #14 by coreyalderin

I have not tested it on another computer but it came to my attention from a customer and then I tested it on my computer. So it has happened on at least 2 computers.

21 Dec 2012, 6:08 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #15 by drbyte

Quite puzzling.

Zen Cart does a very simple redirect. Something it does on most pages.

You could try turning off the "missing page check" feature in Admin->Configuration->My Store
Then trigger the problem and see what the URL becomes instead of the main_page=page_not_found.
Also check your debug logs as per http://www.zen-cart.com/content.php?124-blank-page

When you've fixed the problem, put the Missing-page-check setting back to page-not-found, else customers will see information they ought not to.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Dec 2012, 4:10 AM
#17
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #17 by rodg

coreyalderin:

OK. I changed everything in the the tpl_contact_us_default.php and contact_us.php files back to the template contents.

Hmmm, I hope you realise that "changing everything back" is NOT the same as 'restoring the original files', don't you?

Unlike the other latest suggestions and ideas, I'm not happy to speculate on other possibilities until I'm 100% certain you are working with the original zencart files. Your comments tell me that this still isn't the case.

I'm theorising this simple scenario:

Things were working until you changed something in one or more of these files. The change itself may be seemingly harmless, but what if in doing this you accidentally deleted a delimiter character, or added a blank line to the end of the file, introduced an illegal character or something very similar, and this has caused the problem.

Our suggestion to restore the original would/should get you back to where things were working again, but, instead of this, you have opted to re-edit the same file(s) that caused the problem. Sure you may well have restored the text you changed, but what about the other things? Did you also remove that blank line at the end of the file? Did you restore the delimiter that you accidently deleted?

I/we/you can't be sure of any of these things, so before any further speculation, RESTORE FROM THE ORIGINAL FILES, and THEN let us know if the problem still exists or not.

coreyalderin:

is there a place I can find what the original contents are so I can compare?

I take this as further acknowledgement that you never actually restored the original files, and have simply been editing and re-editing the same ones.

The original files can be extracted from the zencart distribution files. Make sure you use the same version numbers though (to avoid possible compatibility issues).

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

26 Dec 2012, 4:28 AM
#18
coreyalderin avatar

coreyalderin

Zen Follower

Join Date:
May 2012
Posts:
137
Plugin Contributions:
0

Post #18 by coreyalderin

I copied and pasted the exact contents of the template files. The only thing that I am not 100% sure of is the header_php.php file since it is still in the template folder and there is a small chance that I edited it without moving it into my custom folder. That is why I was asking about where to find the original contents so I could make sure it was the same. I did a search of "zencart distribution files" and could not find anything. Can you provide a link of where these files are?

Thanks for all the help
Corey

26 Dec 2012, 12:56 PM
#20
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #20 by rodg

coreyalderin:

I copied and pasted the exact contents of the template files.

Again, this is NOT the same thing as restoring from the original files. Not only that, it is actually more difficult to do, which makes me wonder where you are coming from and what the heck you are really doing.

This is especially true since you then went on to ask where to find the original files, I can't help but wonder exactly where you copied from if you don't have the originals?

coreyalderin:

The only thing that I am not 100% sure of is the header_php

This is another of the files you should have restored from the originals... This was clearly spelt out way back in post#7 on Dec 21st.

We are now almost a week later, and we haven't made any advances in solving this problem at all. For some reason you wish to keep fighting what you are being told to do, and submitting your own ideas to us. This is fruitless, if you are so confident what you have, or haven't done, you should be just as confident at solving your own problem and wouldn't be asking for help. The fact is, you don't know with 100% certainty what you have or haven't done, so therefore WE can't be certain of anything you say you did or didn't do either.

In order to progress we MUST ALL BE SHARING COMMON GROUND. We cannot trust your 'cut n paste methods' because we have no way of assuring ourselves you didn't cut one line too short, or added one line to many. Surely this must make sense to you? I'm not saying you cut n paste is invalid, just that WE have no way to be sure, and for our own sanity we need to assume human error is the cause of your problems, because we know the original files don't have a problem.

Anyway, to repeat post#7 ... The following 3 files ALL need to be restored to their original state, which means COPY the originals, don't try to recreate them. It is a pointless waste of time.


/includes/modules/pages/contact_us/header_php.php -- this does the processing and tells it to redirect to main_page=contact_us&action=success
/includes/languages/english/contact_us.php
/includes/templates/name_of_the_template/templates/tpl_contact_us_default.php

WHEN you restore these, then IF you still have a problem, THEN we can proceed onto far less likely causes (not that I can think of anything offhand).
Not sure if you modified a file or not? Restore it anyway. It is the only way to eliminate the doubt and ensure we all have the same code. If you are unwilling to do this, then I, and I'm sure several others will be equally unwilling to try to help you further... Again, you need to work with us, not against us.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.