Page 404 Error on Currency Selection
I'm getting a Page 404 Error when the customer selects an alternative currency on my site - can anyone give me guidance as to how to fix the problem, or as to what the cause might be/is, please?
Ditto if they select an alternative language.
The site is here
Re: Page 404 Error on Currency Selection
Which Zen Cart version are you using ?
What template was it developed based on ?
What happens if you turn off your SEFU module ?
Re: Page 404 Error on Currency Selection
Quote:
Originally Posted by
DrByte
Which Zen Cart version are you using ?
What template was it developed based on ?
What happens if you turn off your SEFU module ?
Thanks Dr Byte.
ZC 1.3.7.1, and my Template was absed upon Barebones (unsupported) and heavily modded by me, because I can handle CSS)
I'll try turning off the SEFU module (if it's relatively easy to disable it) and report back.
Re: Page 404 Error on Currency Selection
Quote:
Originally Posted by
DrByte
Which Zen Cart version are you using ?
What template was it developed based on ?
What happens if you turn off your SEFU module ?
Hi, I'm back, and yes, disabling SEFU mod (Ultimate_SEO_URLs_v2.105) does allow the currency to be set without problems, but unfortunately, the Google Language translator in the sidebox below the currency selector still results in a Page 404 error.
BTW I have now set up a redirect so that a different domain 'points' at the site
Can you assist me in sorting out how to make the currency selector work when Ultimate_SEO_URLs_v2.105 is enabled?
Re: Page 404 Error on Currency Selection
Quote:
Originally Posted by
blag
unfortunately, the Google Language translator in the sidebox below the currency selector still results in a Page 404 error.
You'll have to rewrite the currency-selector sidebox to use the same logic that the built-in one normally uses. Right now it's passing parameters to the URL incorrectly.
Quote:
Originally Posted by
blag
Can you assist me in sorting out how to make the currency selector work when Ultimate_SEO_URLs_v2.105 is enabled?
You will find some discussion by various folks in that module's support thread for things you might try.
Re: Page 404 Error on Currency Selection
Quote:
Originally Posted by
DrByte
Quote:
Originally Posted by
blag
unfortunately, the Google Language translator in the sidebox below the currency selector still results in a Page 404 error.
You'll have to rewrite the currency-selector sidebox to use the same logic that the built-in one normally uses. Right now it's passing parameters to the URL incorrectly.
Quote:
Originally Posted by
blag
Can you assist me in sorting out how to make the currency selector work when Ultimate_SEO_URLs_v2.105 is enabled?
You will find some discussion by various folks in that module's support thread for things you might try.
DrByte
Thanks for the speedy response.
I am not sure as to which module's support thread you refer. Is it the Google or the SEO mod?
Re: Page 404 Error on Currency Selection
Where did your currencies sidebox code come from?
Is it the one built-in to Zen Cart, or is it part of another mod?
Re: Page 404 Error on Currency Selection
Quote:
Originally Posted by
DrByte
Where did your currencies sidebox code come from?
Is it the one built-in to Zen Cart, or is it part of another mod?
AFAIK, the currencies side box is the one that is built into Zen Cart. I don't see any other installed mods that might affect this.
I have now disabled the Google Languages; the Yahoo Menu Tree; the Testimonial Side Box; the Links Side Box.
I do have No_Account_No_Login installed, and User Currency. I have previously disabled the User Currency mod, and found it has no effect on the problem with Currencies.
The status quo after all the removals/disabling above is that my Index page is now HTML error-free, and, I believe that it is also free of JS errors, but still the user cannot change the currency. I see that you are in Canada - when you visit my site, what currency is set as the default?
Re: Page 404 Error on Currency Selection
Quote:
Originally Posted by
blag
I see that you are in Canada - when you visit my
site, what currency is set as the default?
It auto-selects GBP.
And if I try to change it, the page refreshes without any error, but doesn't change the currency either.
Something's affecting how the URL inside the form's action tag is built.
What do you have in your /.htaccess file, and also in your /store/.htaccess file?
Something's redirecting the page to a non-www address when the currency box is used.
Re: Page 404 Error on Currency Selection
Dr Byte I REALLY appreciate your intervention/assistance.
If you navigate to a product (not so easy without the sidebox menu - but via the category links on the home page), you will find that changing the currency takes you back to the Home page.
I don't know how relevant this is but, I'll throw it in for good measure. The database is MySQL 4.1.22-standard; PHP version is 4.4.4 (Zend: 1.3.0). The HTTP server info is: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b. I am using ZC 1.3.7.1
BTW What currency is offered to you by default?
Here are the settiing is my .htaccess file for the store subdirectory:
Quote:
# secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# disable directory browsing
Options All -Indexes
# prevent folder listing
IndexIgnore *
Options +FollowSymLinks
RewriteEngine On
RewriteBase /store/
# set the server timezone
SetEnv TZ Etc/Greenwich
# pass the default character set
AddDefaultCharset utf-8
# preserve bandwidth for PHP enabled servers
<ifmodule mod_php4.c>
php_value zlib.output_compression 16386
</ifmodule>
# disable the server signature
ServerSignature Off
# automatically correct simple spelling errors
<IfModule mod_speling.c>
CheckSpelling On
</IfModule>
# EZ Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteRule ^page.html$ index\.php?main_page=page&%{QUERY_STRING} [L,R=301]
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php?seo_url=$1&%{QUERY_STRING} [L]
ErrorDocument 404 /store/index.php?main_page=page_not_found.php
I don't know whether any other .htacces files at higher levels have an effect, but I can supply these if necessary.