Zen Follower
- Join Date:
- Sep 2004
- Posts:
- 245
- Plugin Contributions:
- 0
Chemo's Ultimate URL's
I am having a little problem with the mod, ultimate seo. I am getting an error code, 404 everytime i click on the lick of a product put in the shopping cart.
Views: 493,233
Zen Follower
I am having a little problem with the mod, ultimate seo. I am getting an error code, 404 everytime i click on the lick of a product put in the shopping cart.
Zen Follower
I installed SEO and also made the "Paypal Fix" editing.
How do I do a "Credit Card Fix" , there were 2 mentions of this same problem on this thread but no solution to that , anybody ?
Sensei
BlessIsaacola:
Please note that the above IPN patch may have been included in DrByte's fix but I did not check it.Yes, it was already included.
Zen Follower
What about the "Credit Card" fix, the payment gateway does not return to the "Checkout_Success" page it returns to some "Checktout_Process" page.
Zen Follower
I'm about to try installing this Ultimate SEO - but actually do not understand how.
The installation manual does not consider the 1.3.0.2 version, but older ones...
Can any provide an install manual for 1.3.0.2 ?
Thanks!
the old READ ME:
http://www.dream-scape.com/pub/zencart/Ultimate_SEO_URLs/install.html
it says in the very beginning:
"Open your Zen Cart file includes/application_top.php and find the following code around line 355:"
and
" require(DIR_WS_LANGUAGES . $template_dir_select . $_SESSION['language'] . '.php');
// include the extra language translations
include(DIR_WS_MODULES . 'extra_definitions.php');"
-I mean:
There is no require function, or no line 355... Line 247 is the last line...
But the old one (ver 1.2.7) had 962 lines...
Zen Follower
hmm...
I found this suddenly:
http://www.zen-cart.com/forum/showthread.php?t=35034&page=10
Post #98
How could I have missed it...?
I'll try that one!
Totally Zenned
I don't know if everyone is still having the 404 vs 200 problem, or if someone posted a fix, but this is what I did. This was done on a 1.3.0.2 store, with seo_urls v. 2.102.
go to "Configuration", "My Store" then find "Missing Page Check" and change to "Page Not Found". this will cause wrong pages to go to the page_not_found sitemap page instead of the index.
open up includes/init_includes/init_sanitize.php and change this:
if (!is_dir(DIR_WS_MODULES . 'pages/' . $_GET['main_page'])) {
if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
$_GET['main_page'] = 'index';
} elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
$_GET['main_page'] = 'page_not_found';
}
to this:
if (!is_dir(DIR_WS_MODULES . 'pages/' . $_GET['main_page'])) {
if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
$_GET['main_page'] = 'index';
} elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
header('HTTP/1.1 404 Not Found');
$_SERVER["REDIRECT_STATUS"] = 404;
$_GET['main_page'] = 'page_not_found';
}
This method seems to give the 404 header for all wrong links, like below:
mydomain.com/notreallyapage
mydomain.com/notreallyapage.htm
mydomain.com/notreallyapage.html
If anyone sees an error in my way, let me know!
Totally Zenned
I have an issue myself though.
On a new 1.3.0.2 store, the urls when hovered over are still the old URLs.
Checkout https://www.zencart13.jadetrue.com
So when you hover over Shipping Info, you get
index.php?main_page=shippinginfo
instead of
shippinginfo.html
Yet when you click on it, it first goes to index.php?main_page=shippinginfo, then forwards to shippinginfo.html. All pages, all products, all links do this.
When I used this mod on a 1.2.7 store, it would show the links as shippinginfo.html. There was no refreshing or anything like that. They were just ALL the SEO URL links. I prefer it that way. Am I doing something wrong, or is this the way it works with 1.3.0.2?
Thanks!
Zen Follower
That's odd. I have just installed the 1.3.0.2 and the Ultimate SEO - with no error like that. Sure you have updated all files you need to?
First time I tried, I got to a non SEF url at all. Then I tried once more, and it behaved just like you said...
Zen Follower
I am using Ultimate SEO on zc 1.3.0.2
and have caracters in my language that do not show in a nice way in the url.
How do I use the "Enter special character conversions" ?
(in Admin/Configuration/SEO urls )
ø=>o doesn't work
Totally Zenned
jettrue:
I don't know if everyone is still having the 404 vs 200 problem, or if someone posted a fix, but this is what I did. This was done on a 1.3.0.2 store, with seo_urls v. 2.102.
go to "Configuration", "My Store" then find "Missing Page Check" and change to "Page Not Found". this will cause wrong pages to go to the page_not_found sitemap page instead of the index.
open up includes/init_includes/init_sanitize.php and change this:
if (!is_dir(DIR_WS_MODULES . 'pages/' . $_GET['main_page'])) {
if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
$_GET['main_page'] = 'index';
} elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
$_GET['main_page'] = 'page_not_found';
}
>
> to this:
>
> ```
if (!is_dir(DIR_WS_MODULES . 'pages/' . $_GET['main_page'])) {
if (MISSING_PAGE_CHECK == 'On' || MISSING_PAGE_CHECK == 'true') {
$_GET['main_page'] = 'index';
} elseif (MISSING_PAGE_CHECK == 'Page Not Found') {
header('HTTP/1.1 404 Not Found');
$_SERVER["REDIRECT_STATUS"] = 404;
$_GET['main_page'] = 'page_not_found';
}
- open up .htacces and add this line:
ErrorDocument 404 /index.php?main_page=page_not_found
That will give you the page_not_found for non zen cart pages.This method seems to give the 404 header for all wrong links, like below:
mydomain.com/notreallyapage
mydomain.com/notreallyapage.htm
mydomain.com/notreallyapage.htmlIf anyone sees an error in my way, let me know!
For a simpler way to achieve the same goal use the first post on this page: http://www.zen-cart.com/forum/showthread.php?t=35034&page=11
New Zenner
I am running:
ZC 1.3.0.2
Image Handler 2 1.3x
I tried installing this URL contribution but Image Handler would not work after that. So I uninstalled it and now I cna not access my admin area.
Has anyone had this problem??
Rob
Totally Zenned
BlessIsaacola:
For a simpler way to achieve the same goal use the first post on this page: http://www.zen-cart.com/forum/showthread.php?t=35034&page=11
That's basically what I did, but changing the missing page check to Page Not Found gives the sitemap instead of the home page (some people were wondering why it just went to the home page when there was a missing page). This way people can choose to show a page not found with a 404, OR have no 404's and instead have it just go to the home page. Some people may prefer that method. Also, the way you suggest shows a 404 for a missing page whether or not people have missing page check set to off in the admin. My way only shows the 404 if they have missing page set to "page not found". Don't know if that would be important to anyone or not, but thought I'd share my rationalization. :smartass:
Also, adding the 404 Error Document to the .htaccess, will give the page_not_found for pages like this:
mydomain.com/notapage. Without it you just get the standard 404 page.
Totally Zenned
Preben:
That's odd. I have just installed the 1.3.0.2 and the Ultimate SEO - with no error like that. Sure you have updated all files you need to?
First time I tried, I got to a non SEF url at all. Then I tried once more, and it behaved just like you said...
Figured it out. I had mixed up the admin's html_output.php with the regular html_output.php. DOH! :lamo:
Totally Zenned
jettrue:
That's basically what I did, but changing the missing page check to Page Not Found gives the sitemap instead of the home page (some people were wondering why it just went to the home page when there was a missing page). This way people can choose to show a page not found with a 404, OR have no 404's and instead have it just go to the home page. Some people may prefer that method. Also, the way you suggest shows a 404 for a missing page whether or not people have missing page check set to off in the admin. My way only shows the 404 if they have missing page set to "page not found". Don't know if that would be important to anyone or not, but thought I'd share my rationalization. :smartass:
Also, adding the 404 Error Document to the .htaccess, will give the page_not_found for pages like this:
mydomain.com/notapage. Without it you just get the standard 404 page.
You also know that you can set your missing page in Admin - Configurations - My Store to display page_not_found instead of index?
Totally Zenned
offnetrob:
I am running:
ZC 1.3.0.2
Image Handler 2 1.3xI tried installing this URL contribution but Image Handler would not work after that. So I uninstalled it and now I cna not access my admin area.
Has anyone had this problem??
Rob
It's probably that you have some files messed up. Pasted below are the files that IH updated which are core files:
Image Handler 2.0: FILES TO OVER-RIDE (6 files)
/includes/modules/additional_images.php
/includes/functions/html_output.php
/includes/modules/main_product_image.php
/includes/modules/pages/popup_image/header_php.php
/includes/modules/pages/popup_image_additional/header_php.php
/admin//includes/modules/category_product_listing.php
IF Ultimate SEO URL mod touches any of these files (I know for a fact it touched html_output.php) you want to make sure that you do a file comparison to make sure you did not remove the IH codes from any of these files while uninstalling SEO URL.
Totally Zenned
BlessIsaacola:
You also know that you can set your missing page in Admin - Configurations - My Store to display page_not_found instead of index?
Yes, that is what I did, and that is what I said to do in the instructions (Step 1) in my first post. All you have to do is read it to see. :laugh:
Then, in init_sanitize.php, I put the
header('HTTP/1.1 404 Not Found');
under the code for "Page Not Found" so that the 404 error is only returned when I choose "page not found" in the admin. In your example, the 404 error is returned whether or not the person chooses "on" or "off" or "page_not_found" for the missing page check in the admin. What if someone choose "off" for the missing page check? They still get a 404 error returned with the way your example shows. In my example, as far as I can tell by looking at the php code, the 404 error is returned only if they choose "page not found" for the missing page check in the admin. I'm not trying to prove you wrong here, just trying to explain my reasoning. I could be totally wrong (has happened before) but it just makes sense to me.
Zen Follower
is no one getting this same problem
"I am having a little problem with the mod, ultimate seo. I am getting an error code, 404 everytime i click on the lick of a product put in the shopping cart."
Sensei
lucianman:
is no one getting this same problem
"I am having a little problem with the mod, ultimate seo. I am getting an error code, 404 everytime i click on the lick of a product put in the shopping cart."
That would sound like a misconfigured set of rules in your .htaccess ... but that's just a guess.
New Zenner
BlessIsaacola:
It's probably that you have some files messed up. Pasted below are the files that IH updated which are core files:
Image Handler 2.0: FILES TO OVER-RIDE (6 files)
/includes/modules/additional_images.php
/includes/functions/html_output.php
/includes/modules/main_product_image.php
/includes/modules/pages/popup_image/header_php.php
/includes/modules/pages/popup_image_additional/header_php.php
/admin//includes/modules/category_product_listing.phpIF Ultimate SEO URL mod touches any of these files (I know for a fact it touched html_output.php) you want to make sure that you do a file comparison to make sure you did not remove the IH codes from any of these files while uninstalling SEO URL.
I reinstalled IH and nothing happens. If someone could take a look at my files or something...anything! Please private message me and i can provide hosting/admin details.
Fields marked required must be completed.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.