Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo


Recommended Posts

Hi guys

I hope you can help!

 

I have installed the contribution and now have an orderID=0 issue at my store (www.datamouse.biz/catalog)

 

Orders are not being added to order histories.

Also, if I disable the contribution, none of my urs work - they go to "datamouse.biz/catalog/index.php?catalog=index.php", regardess of what is clicked.

 

I've seen a previous post about installing an older version (?) of the store.

Is there any other way to get this fixed?

 

Thanks guys

 

Danny

I've had a hunt and have found that the function:

 

mysql_insert_id

 

Is being used to generat the order_id in the function

 

function tep_db_insert_id()

 

This function is in the includes/database.php file and is also called in the seo_class.php file from the Ultimate SEO URLs contribution.

Is it this that's causing the problem?

If it is, how do I repair it?

 

Danny

Link to comment
Share on other sites

I've had a hunt and have found that the function:

 

mysql_insert_id

 

Is being used to generat the order_id in the function

 

function tep_db_insert_id()

 

This function is in the includes/database.php file and is also called in the seo_class.php file from the Ultimate SEO URLs contribution.

Is it this that's causing the problem?

If it is, how do I repair it?

 

Danny

 

You are assuming that your problem relates to USU, I don't believe it does.

 

Uninstall USU and if the problem persists you will know it is not related.

Link to comment
Share on other sites

You are assuming that your problem relates to USU, I don't believe it does.

 

Uninstall USU and if the problem persists you will know it is not related.

It does relate.

The site worked before USU.

The downloads work if I disable USU.

But, unfortunately, it doesn't if I use USU - and that's a shame, because it's a great contrib!

Link to comment
Share on other sites

It does relate.

The site worked before USU.

The downloads work if I disable USU.

But, unfortunately, it doesn't if I use USU - and that's a shame, because it's a great contrib!

 

Ok well it may relate in your code but it is not a USU issue.

Link to comment
Share on other sites

Ok well it may relate in your code but it is not a USU issue.

 

It may well - which is why I'm asking for help.

Can you help at all, please?

 

The issue is that the orders_id field is not being populated in the orders_products_download table.

It's populated in all other order-based tables. Just not that one.

 

If I can track down where the update/insert query is, i may be able to fix myself...

 

Thanks

Link to comment
Share on other sites

I installed ultimate seo urls version 2.1d and it works wonderfully. Great contribution! One question, though.

 

Many of my products have a "-" in their name. This "-" is removed automatically by this contribution.

Is there a way to fix that? Any help or pointers is highly appreciated.

 

My site: http://bugdorm.megaview.com.tw

 

Eddy form Taiwan

Edited by Moxamint
Link to comment
Share on other sites

Hi Robert.

 

I have been having a problem with my website ever since upgrading and after much testing I have managed to repeat the problem

 

Download and install oscommerce-2.2rc2a

Download and install Ultimate_SEO_URLSv21d_UPDATED

 

Leave all settings at default

 

Open your browser and disable cookies

 

Now click Hardware > Keyboards > Buy Now

 

The item is not added to the cart because the osCsid changes

 

Any Ideas?

 

Thanks.

 

Ken

Link to comment
Share on other sites

Hi

 

I am trying to get this contribution to work with the Manufacturers2 Contribution. The contribution basically duplicates the term 'manufacturer' to create 'manufacturer2'

 

If I wanted to use Ultimate SEO Urls with the manufacturer2 names, what files would I have to edit, what SQL queries would I have to run in order to get Ultimate SEO URL's to create URL's for manufacturers2

 

Thanks, I hope someone else is using these two contributions together,

 

Ben

Link to comment
Share on other sites

  • 2 weeks later...

Hey Guys,

 

I installed this contrib yesterday, everything seems to work perfect only today I tried to get on the password_forgotten.php, that went good aswell, but when I enter my email address and pressed send it went to http://www.sex-pleasure.nl/password_forgot.../action/process and there I get a messed up design and als an IE error:

 

Line: 2

Char: 1

Error: Syntax error

Code: 0

URL: http://www,sex-pleasure.nl/password_forgot.../action/process

 

Same goes for when I try to login, making a new account works tho.

 

Anyone knows how to fix this?

Edited by Jlenting
Link to comment
Share on other sites

  • 2 weeks later...

Hello,

 

Thank you for a great contrib and great work!

 

I have installed it on a osc template and it works great, but i have a quick question.

 

After installing it I have a problem with showing a link to DATE_FORMAT_LONG in the product page, ENTRY_EMAIL_ADDRESS, ENTRY_PASSWORD at the login page, at the create_account.php all the names are gone, only ENTRY_FIRST_NAME, ENTRY_LAST_NAME aso. are left.

 

Does anybody have a idea what to do or where the error is?

 

Thank you.

 

EDIT:

 

I have find out that error is in includes/application_top.php file.

Edited by nenad
Link to comment
Share on other sites

Hi I recently updated my site (2.2rc2a) with Ultimate_SEO_URLSv21d_UPDATED_1_2 and I am getting the following when I try to access Category, Manufacturer or Products

 

Not Found

 

The requested URL /landnsea/index.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

I would appreciate it if someone could explain to me in simple terms how to sort out my errors.

Link to comment
Share on other sites

Hello,

 

Thank you for a great contrib and great work!

 

I have installed it on a osc template and it works great, but i have a quick question.

 

After installing it I have a problem with showing a link to DATE_FORMAT_LONG in the product page, ENTRY_EMAIL_ADDRESS, ENTRY_PASSWORD at the login page, at the create_account.php all the names are gone, only ENTRY_FIRST_NAME, ENTRY_LAST_NAME aso. are left.

 

Does anybody have a idea what to do or where the error is?

 

Thank you.

 

EDIT:

 

I have find out that error is in includes/application_top.php file.

 

Looks like you replaced incorrectly or corrupted somehow includes/languages/english.php

Link to comment
Share on other sites

Hi I recently updated my site (2.2rc2a) with Ultimate_SEO_URLSv21d_UPDATED_1_2 and I am getting the following when I try to access Category, Manufacturer or Products

 

Not Found

 

The requested URL /landnsea/index.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

I would appreciate it if someone could explain to me in simple terms how to sort out my errors.

 

Looks like a rewrite problem so it's either .htaccess or server settings .. this is well documented in this thread.

Link to comment
Share on other sites

Reposting my problem on this thread since it seems like it is an active one on the USU contribution.

Here is the web site:

www.india1imports.com

 

My old URLs were like (one of the categories): http://india1imports.com/catalog/index.php?cPath=22

If I go to that - it does not redirect to the new URL for the category. It just keeps it to the index page.

It should have gone to: http://india1imports.com/catalog/gold-collection-c-22.html (the new category URL)

But it did not.

I have spent money with a article writer who submitted articles with links to my category pages and it was doing wonders on google search, I am afraid I will lose all that advantage if the old link for categories or pages do not forward to the new respective links.

 

Thanks,

Abhay

Link to comment
Share on other sites

Reposting my problem on this thread since it seems like it is an active one on the USU contribution.

Here is the web site:

www.india1imports.com

 

My old URLs were like (one of the categories): http://india1imports.com/catalog/index.php?cPath=22

If I go to that - it does not redirect to the new URL for the category. It just keeps it to the index page.

It should have gone to: http://india1imports.com/catalog/gold-collection-c-22.html (the new category URL)

But it did not.

I have spent money with a article writer who submitted articles with links to my category pages and it was doing wonders on google search, I am afraid I will lose all that advantage if the old link for categories or pages do not forward to the new respective links.

 

Thanks,

Abhay

 

This is dual posting and will get you ignored.

 

You have some wierd redirect to catalog/index.php?catalog=index.php from that initial flash page.

 

It is not a USU issue it is an issue with your site.

Link to comment
Share on other sites

This is dual posting and will get you ignored.

 

You have some wierd redirect to catalog/index.php?catalog=index.php from that initial flash page.

 

It is not a USU issue it is an issue with your site.

 

The initial flash page is my issue and I will fix it. Also, I later found this thread to be more active, so I will continue posting on this and not duplicate the posts on another thread.

 

My question is about redirect from old style URLs to the new product and category pages.

Question: If my old category page (http://india1imports.com/catalog/index.php?cPath=22 ) is accessed, should it not be redirected to the new page ( http://india1imports.com/catalog/gold-collection-c-22.html)? But, it is not. For category pages, it is redirected to: http://india1imports.com/catalog/index.php?catalog=index.php

 

For products, the old page: http://india1imports.com/catalog/product_i...products_id=112 is redirected to a 'Product not found" page for which the URL is: http://india1imports.com/catalog/product_i...roduct_info.php

 

Similarity between the two redirects:

1. Stays as the old style dynamic page with index.php? or product_info.php?

2. Passes on this new variable called catalog=index.php or catalog=product_info.php

 

Do you think it is something different in my code or it has something to do with my .htaccess file?

I had posted my .htaccess file at the old post (in case you can take a quick look at that): see the last post at: http://www.oscommerce.com/forums/index.php?sho...p;#entry1277956

 

Thanks.

Link to comment
Share on other sites

Sounds like an .htaccess issue to me - and when I looked at your link to your post with your .htaccess file it showed "two" files, but they both should be in one file. The first file should be the top half of your .htaccess file, the second file should be underneath of that.

 

 

The initial flash page is my issue and I will fix it. Also, I later found this thread to be more active, so I will continue posting on this and not duplicate the posts on another thread.

 

My question is about redirect from old style URLs to the new product and category pages.

Question: If my old category page (http://india1imports.com/catalog/index.php?cPath=22 ) is accessed, should it not be redirected to the new page ( http://india1imports.com/catalog/gold-collection-c-22.html)? But, it is not. For category pages, it is redirected to: http://india1imports.com/catalog/index.php?catalog=index.php

 

For products, the old page: http://india1imports.com/catalog/product_i...products_id=112 is redirected to a 'Product not found" page for which the URL is: http://india1imports.com/catalog/product_i...roduct_info.php

 

Similarity between the two redirects:

1. Stays as the old style dynamic page with index.php? or product_info.php?

2. Passes on this new variable called catalog=index.php or catalog=product_info.php

 

Do you think it is something different in my code or it has something to do with my .htaccess file?

I had posted my .htaccess file at the old post (in case you can take a quick look at that): see the last post at: http://www.oscommerce.com/forums/index.php?sho...p;#entry1277956

 

Thanks.

~Tracy
 

Link to comment
Share on other sites

Sounds like an .htaccess issue to me - and when I looked at your link to your post with your .htaccess file it showed "two" files, but they both should be in one file. The first file should be the top half of your .htaccess file, the second file should be underneath of that.

 

I tried merging the old and new one instead of just putting the code of new one. Nothing changed. The redirects are still getting this weird variable passed on to the URL "catalog = xxxx"

 

If I try to understand how the whole thing works:

The new tep_href_link (and new seo class file) creates the static URLs instead of the dynamic URLs.

The .htaccess redirects these new HTML URLs to the old index.php? type URLs.

And that part works since by itself the web site is totally working.

But then why if someone points directly to the old URL (which is anyways the HTML URLS are redirected to, if I understood it correctly), it does not work!!!

 

Its a long long thread of 140 pages. I am reading, and had one more person with this problem but he never got the resolution. Has anyone else faced the same problem of redirects from old URL to new ones not working?

 

Thanks,

Abhay

Link to comment
Share on other sites

Well - the only difference between my .htaccess and the two files you posted are that both files are together as one .htaccess file on my server, and the below portion of code is not commented out (doesn't have the # sign in front of it)

 

<IfModule mod_setenvif.c>
 <IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
		 nokeepalive ssl-unclean-shutdown \
		 downgrade-1.0 force-response-1.0
 </IfDefine>
</IfModule>

 

You might also double check your settings in Admin - see if changing any of those has an effect. I know I had to mess with those settings in order to get ours functioning properly the first time I set it up.

 

There is also another section of code that should be in the top half of your .htaccess file that may need to be uncommented:

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

 

 

I tried merging the old and new one instead of just putting the code of new one. Nothing changed. The redirects are still getting this weird variable passed on to the URL "catalog = xxxx"

 

If I try to understand how the whole thing works:

The new tep_href_link (and new seo class file) creates the static URLs instead of the dynamic URLs.

The .htaccess redirects these new HTML URLs to the old index.php? type URLs.

And that part works since by itself the web site is totally working.

But then why if someone points directly to the old URL (which is anyways the HTML URLS are redirected to, if I understood it correctly), it does not work!!!

 

Its a long long thread of 140 pages. I am reading, and had one more person with this problem but he never got the resolution. Has anyone else faced the same problem of redirects from old URL to new ones not working?

 

Thanks,

Abhay

~Tracy
 

Link to comment
Share on other sites

I tried merging the old and new one instead of just putting the code of new one. Nothing changed. The redirects are still getting this weird variable passed on to the URL "catalog = xxxx"

 

If I try to understand how the whole thing works:

The new tep_href_link (and new seo class file) creates the static URLs instead of the dynamic URLs.

The .htaccess redirects these new HTML URLs to the old index.php? type URLs.

And that part works since by itself the web site is totally working.

But then why if someone points directly to the old URL (which is anyways the HTML URLS are redirected to, if I understood it correctly), it does not work!!!

 

Its a long long thread of 140 pages. I am reading, and had one more person with this problem but he never got the resolution. Has anyone else faced the same problem of redirects from old URL to new ones not working?

 

Thanks,

Abhay

 

There is nothing wrong with the .htaccess you have in /catalog/

 

But what do you have in root?

Link to comment
Share on other sites

There is nothing wrong with the .htaccess you have in /catalog/

 

But what do you have in root?

 

I dont have any .htaccess in the root. am I supposed to have one?

I do have a few files and folders in the root. Here is a snapshot of my root directory:

screenshot.jpg

 

Thanks,

Abhay

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...