Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Recommended Posts

Hi everyone, I got the following warning message on the catalog, every time I create, remove, update or delete a category in the Admin.

Warning: implode() [function.implode]: Bad arguments. in /home/perfect/public_html/oscbase/includes/classes/seo.class.php on line 1579

 

I have this lab site installed at http://perfectillusion.net/oscbase/ the admin is at http://perfectillusion.net/oscbase/admin (if you are interested in, use admin@localhost and password admin to login).

 

There have many contributions installed, so it is a heavy modified OSC. But I installed all the contributions very carefully, so I think there should no major problem. After check the seo.class.php file on line 1579, it seems that it is the stater of the function parse_parameters($page, $params, &$separator).

 

I do enabled all the cache of the SEO links under the configuration section.

 

Do any of you have the same problem?

 

 

Never mind. I have find the problem and solved!

Link to comment
Share on other sites

Hey Skittles:

 

Thanx for taking the time to help me out here. I checked my general.php file in admin and yes, I had installed the supplemental code, but forgot to put step 4 from the install file. I had rebuilt my site recently from scratch, and in my haste to get back up and going, skipped the step. Anyway, put in the code, everything looks like it should now.

 

On another point. Where is the switch for persistent connections. I think I may have selected this in this latest install, and read something about it causing a problem. Never looked to change it on an install before, so just wondering where it is.

 

Thanx again,

 

Ed :thumbsup:

 

I found the persisitent connections switch in admin/includes/configure.php

 

Thanx anyway,

 

Ed

Link to comment
Share on other sites

I have an interesting problem - forgive me if somebody has already raised this one, but I did search and couldn't find it anywhere.

I have installed Chemo's SEO contribution into a heavily modified site - and thought I had tested it thoughly - but alas, 1 week later, I have found an error I missed in testing. The contribution 'compare side-by-side' was implemented into the site over a year ago and worked pretty good. Now, when you select a category or a manufacturer, you are displayed a product list where you can select either 2 or 3 checkboxes to compare. On doing this the site either goes into a loop or we get an error - page not found and my address bar shows: compare.phphttp://xxx.com.au/bluetooth-c-328.html&columns_777=777&columns_1741=1741. As you can see the compare.php is being added to the front of the address. Now, even stranger, if I sort the correctly displayed product list page, or do a search to get a product list page, the compare function works fine.

Further investigation found that the other functions worked because they added the '?' after html (ie http://xxx.com.au/bluetooth-c-328.html?sort=2a&page=1). My question is does anybody know how I can manipulate the code to add this '?' after the html or to get the compare not to need this '?' When I manually add the '?' to the address bar (ie http://xxx.com.au/bluetooth-c-328.html?) - it works fine as well.

Any help would be fantastic as everything else seems to work perfectly.

Link to comment
Share on other sites

First sorry for my English. I have clear Oscommerce2.2. And now I instaled Ultimate SEO Urls.

It works very well. All options is working. BUT :)

If I instaled this contribution and take in Configuration " ENABLE SEO URLS - FALSE"

I dont have a problem. This nontribution is not working, and I may normal registerin users. But if I take "ENABLE SEO URLS - TRUE" this contribution starts workig. Very wall. but...

I try to registering user. I write all information. Click "REGISTER" and I have this information

0 -

insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('0', '0', now())

[TEP STOP]

 

Next what I see. In Administration if I want to see CUSTOMMERS first I hane this info:

 

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/customers.php on line 733

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/customers.php on line 733

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/customers.php on line 735

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/includes/classes/object_info.php on line 18
Last Name 	First Name 	Account Created 	Action 
514231241 	13144 		Info 
dfgdfsgd 	rgsdfgd 	03/03/2007 	Info 
dfgsdfgdfsg 	dfgsdfgdf 	02/28/2007 	Info 
doe 	John 	02/28/2007 	Info 
sssss 	aaaaa 	02/28/2007 	Info

 

I try to find a porblem. And this is what I know.

1. If contribition is swith Off registerin working well

2. If contribution working there is a problem with registering. I check tables in PhoMyAdmin and I see one problem.

The person who I want registering is this table "customers" but position "customers_default_address_id" has "NULL".

3. I check tables "addres book" and I dont have any information about this user.

 

In my opinion. If SEO is working, in registerig process, something dont take to databasses information to "addres book" tabel and to "custommers"

 

Can You Help me?

Link to comment
Share on other sites

Hello everyone,

 

I need your help here.

 

I have a strange problem. I installed the latest version of this contribution. URLs were generated correctly for all my products, main categories and sub-categories. However, I noticed that when I click a sub-category from the category menu, I get the right SEO URL for it. But when I go the main category page and click on the image of any sub-category, the SEO URL are not generated.

 

Any idea why this is happening?

I would appreciate any help.

 

Thank You.

Edited by Howard van der Burgt
Link to comment
Share on other sites

Hey Skittles:

 

Thanx for taking the time to help me out here. I checked my general.php file in admin and yes, I had installed the supplemental code, but forgot to put step 4 from the install file. I had rebuilt my site recently from scratch, and in my haste to get back up and going, skipped the step. Anyway, put in the code, everything looks like it should now.

 

On another point. Where is the switch for persistent connections. I think I may have selected this in this latest install, and read something about it causing a problem. Never looked to change it on an install before, so just wondering where it is.

 

Thanx again,

 

Ed :thumbsup:

Ed,

 

Persistent connections are set in your configure.php files:

[catalog/]includes/configure.php

[catalog/]admin/includes/configure.php

 

Change

define('USE_PCONNECT', 'true');

To

define('USE_PCONNECT', 'false');

 

-Skittles ;)

Link to comment
Share on other sites

First sorry for my English. I have clear Oscommerce2.2. And now I instaled Ultimate SEO Urls.

It works very well. All options is working. BUT :)

If I instaled this contribution and take in Configuration " ENABLE SEO URLS - FALSE"

I dont have a problem. This nontribution is not working, and I may normal registerin users. But if I take "ENABLE SEO URLS - TRUE" this contribution starts workig. Very wall. but...

I try to registering user. I write all information. Click "REGISTER" and I have this information

0 -

insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('0', '0', now())

[TEP STOP]

 

Next what I see. In Administration if I want to see CUSTOMMERS first I hane this info:

 

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/customers.php on line 733

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/customers.php on line 733

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/customers.php on line 735

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/includes/classes/object_info.php on line 17

Warning: Variable passed to each() is not an array or object in /home/mccembe/domains/4x4zone.co.uk/public_html/shop/admin/includes/classes/object_info.php on line 18
Last Name 	First Name 	Account Created 	Action 
514231241 	13144 		Info 
dfgdfsgd 	rgsdfgd 	03/03/2007 	Info 
dfgsdfgdfsg 	dfgsdfgdf 	02/28/2007 	Info 
doe 	John 	02/28/2007 	Info 
sssss 	aaaaa 	02/28/2007 	Info

 

I try to find a porblem. And this is what I know.

1. If contribition is swith Off registerin working well

2. If contribution working there is a problem with registering. I check tables in PhoMyAdmin and I see one problem.

The person who I want registering is this table "customers" but position "customers_default_address_id" has "NULL".

3. I check tables "addres book" and I dont have any information about this user.

 

In my opinion. If SEO is working, in registerig process, something dont take to databasses information to "addres book" tabel and to "custommers"

 

Can You Help me?

4x4zone.co.uk,

 

It sounds like your new install is with Update 060817. For some reason, the latest update and this contribution don't play nice together. Although Mikeman didn't have any problems on his local install, which uses Apache 2.2.2, PHP 5 and MySQL 5. So the real problem is probably that 060817 was updated to work with the newer versions of PHP and/or MySQL and is using code that doesn't work the same in PHP 4...

 

This contribution is no longer supported by the wonderful coder who created it :( or this glitch would undoubtedly have been fixed by now.

 

The only way I know to get Ultimate SEO URLs working is to go back to Update 051112 or 051113, neither of which are available in the download area anymore. :(

 

If you have the earlier Update, it would probably be easiest to just reinstall osCommerce, then Ultimate SEO URLs, because this is a new install anyway.

 

Take care,

-Skittles

Link to comment
Share on other sites

I have an interesting problem - forgive me if somebody has already raised this one, but I did search and couldn't find it anywhere.

I have installed Chemo's SEO contribution into a heavily modified site - and thought I had tested it thoughly - but alas, 1 week later, I have found an error I missed in testing. The contribution 'compare side-by-side' was implemented into the site over a year ago and worked pretty good. Now, when you select a category or a manufacturer, you are displayed a product list where you can select either 2 or 3 checkboxes to compare. On doing this the site either goes into a loop or we get an error - page not found and my address bar shows: compare.phphttp://xxx.com.au/bluetooth-c-328.html&columns_777=777&columns_1741=1741. As you can see the compare.php is being added to the front of the address. Now, even stranger, if I sort the correctly displayed product list page, or do a search to get a product list page, the compare function works fine.

Further investigation found that the other functions worked because they added the '?' after html (ie http://xxx.com.au/bluetooth-c-328.html?sort=2a&page=1). My question is does anybody know how I can manipulate the code to add this '?' after the html or to get the compare not to need this '?' When I manually add the '?' to the address bar (ie http://xxx.com.au/bluetooth-c-328.html?) - it works fine as well.

Any help would be fantastic as everything else seems to work perfectly.

Kalk01,

 

This is similar to the problem xperyens is having with the manufacturer's url. I think the same solution would work here. Take a look at this post.

 

I think bypassing SEO URLs with a separate linking function is the best workaround, so far.

 

Good luck,

-Skittles

Link to comment
Share on other sites

I've been looking to add this contrib to my development site. I have a few questions though.

 

1. Will this work with the latest snapshot of OSC?

 

2. Which version should I use for this?

 

Thanks for any assistance.

MagickWomyn,

 

Hi there! We meet again!

 

I'm using ver 2.1d, some folks on this thread believe that 2.1c is better. Definitely use one or the other.

 

Talk to you soon,

-Skittles

Link to comment
Share on other sites

Kalk01,

 

This is similar to the problem xperyens is having with the manufacturer's url. I think the same solution would work here. Take a look at this post.

 

I think bypassing SEO URLs with a separate linking function is the best workaround, so far.

 

Good luck,

-Skittles

 

thanks for that - but when I tried it - it still didn't make any difference. The problem is with what the link is expected to be - not what it is changing into. When the call to the compare.php function happens (in module/product_listings) the list products page has already been displayed with the header saying http://xxx.com.au/bluetooth-c-328.html - the php has already been changed to html and there is no '?' there. I am assuming with or without the old function in html_output, the compare function looks for that silly '?' to work out its parameters etc - so I may be way off track here but I still think I need a way of putting that '?' back in when the compare function is selected. Is there a simple way of doing this - my php knowledge is limited. Is there a way I can modify what it thinks it is getting, or is there a way I can show the sort that happens automatically on every list products page (order by product_name) so that the header would show up as http://xxx.com.au/bluetooth-c-328.html?sort=3a&page=1.

Link to comment
Share on other sites

thanks for that - but when I tried it - it still didn't make any difference. The problem is with what the link is expected to be - not what it is changing into. When the call to the compare.php function happens (in module/product_listings) the list products page has already been displayed with the header saying http://xxx.com.au/bluetooth-c-328.html - the php has already been changed to html and there is no '?' there. I am assuming with or without the old function in html_output, the compare function looks for that silly '?' to work out its parameters etc - so I may be way off track here but I still think I need a way of putting that '?' back in when the compare function is selected. Is there a simple way of doing this - my php knowledge is limited. Is there a way I can modify what it thinks it is getting, or is there a way I can show the sort that happens automatically on every list products page (order by product_name) so that the header would show up as http://xxx.com.au/bluetooth-c-328.html?sort=3a&page=1.

Kalk01,

 

Perhaps you need to modify the code in the compare.php to locate the product_id from the .html url. I don't know if I can help, but I'm willing to try. PM me, if you're interested in muddling through the code together.

 

-Skittles

Link to comment
Share on other sites

I tried to install 2.1d on my test site. Site would load but couldn't get products or categories to load. I got a 404 object not found error. This is using the latest snapshot of OSC on a local install. The last version I can find by Chemo is 2.1c.

 

Several questions:

 

Can anyone help me figure out how to configure this for a local install using Xampp?

 

Will I be able to test this locally before I upload the site and go live or do I have to wait?

 

I've seen it mentioned on here about problems with the latest snapshot and this contrib. Will I have to revert to the older snapshot and re-install all my contribs to get this to work?

 

If I revert to the older snapshot, what sort of security patches will I lose? I don't want the site to be vunerable.

 

Can I use this contrib or do I need to look at another solution? If another, which one?

 

Sorry for all the questions, but I'd really like to work this out.

 

Thanks for any help you can provide!

Link to comment
Share on other sites

Just installed Ultimate SEO URL's and started to test my site. On the shopping_cart page the Continue Shopping buttone diapeared. Her is the code used to display this button:

 

$back = sizeof($navigation->path)-2;

if($navigation->path[$back]['page']=="product_info.php"){

$back = sizeof($navigation->path)-3;

}

if (isset($navigation->path[$back])) {

?>

<td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

<?php

}

 

Why isn't it working?

Link to comment
Share on other sites

Hey guys,

 

Thanks for your help I have managed to remove the oscsid from my links - it was a problem with the config of configure.php sorted now

 

Quick question

 

Google has listed all the old links i.e

 

mysite/-c-243.html

 

mysite/-p-45.html

 

now I have fixed my website so the links are :

 

mysite/cat-name-c-243.html

 

mysite/cat-name-product-p-45.html

 

but because google can still access

 

mysite/-c-243.html

 

mysite/-p-45.html

 

It wont index the new link setup (even though my sitemaps etc point to the new pages )

 

is there anyway in the .htaccess that i can set up that

 

mysite/-c-243.html redirects to mysite/cat-name-c-243.html

 

mysite/-p-45.html redirects to mysite/cat-name-product-p-45.html

 

Thus telling the Google bot to update the link ?

 

 

Thanks in advance

Link to comment
Share on other sites

Hey guys,

 

Thanks for your help I have managed to remove the oscsid from my links - it was a problem with the config of configure.php sorted now

 

Quick question

 

Google has listed all the old links i.e

 

mysite/-c-243.html

 

mysite/-p-45.html

 

now I have fixed my website so the links are :

 

mysite/cat-name-c-243.html

 

mysite/cat-name-product-p-45.html

 

but because google can still access

 

mysite/-c-243.html

 

mysite/-p-45.html

 

It wont index the new link setup (even though my sitemaps etc point to the new pages )

 

is there anyway in the .htaccess that i can set up that

 

mysite/-c-243.html redirects to mysite/cat-name-c-243.html

 

mysite/-p-45.html redirects to mysite/cat-name-product-p-45.html

 

Thus telling the Google bot to update the link ?

Thanks in advance

 

 

Try the code in this post:

http://www.oscommerce.com/forums/index.php?s=&...st&p=986319

Your online success is Paramount.

Link to comment
Share on other sites

a call for help:

i have installed this wonderful contribution, but i have been unable to fully used it. i have read through the posts and i can't seem to find the answer.

thanks in advance for your help.

 

i am hoping to have my url's be:

mysite/cat-name-product-p-25.html

 

instead i am getting:

mysite/product-p-25.html

 

any ideas how i can fix this?

 

ps - i have the "Add category parent to begining of URLs" set to true (and the category parent is larger than the short word filter).

Link to comment
Share on other sites

Hello,

 

This works very fine, thanks.

 

I had 1 problem with my .htacces, it didnt work untill i made a very small adjustment:

 

Options +FollowSymLinks

has to be:

#Options +FollowSymLinks

 

Now it works fine here. Mayby there are more people with the same problem.

 

Greets Gijs

Link to comment
Share on other sites

Hi,

 

I installed this contribution a few days ago and everything seemed to work fine. But when I checked today I cannot add items to my sites shopping cart.

 

I know what the problem is its the amp; in add cart url. But I do not know how to remove it. I have installed the amp; contribution but I think this error is a little diffrent. The url is below:

 

 

http://www.mysite.ca/product-info-p-608.html?op=list&osCsid=6431ae57e284c3b0a3740c3919e625da

 

 

This happens after I click on the Add to Cart Button

 

If someone can point me in the right direction that would be great as I have been at it all day!

Link to comment
Share on other sites

http://www.oscommerce.com/community/contributions,2823/

 

Fixed seo.class.php ----- jpweber ------ 25 Nov 2006

 

it's for "Ultimate SEO URLs - 2.1d"

mike

 

Hi everyone,

 

I have installed the lates Ultimate SEO contribution:

Ultimate SEO URLs - 2.1d with optional Admin settable Product and Category URLs (29 Nov 2006 )

 

and as my mysql version is 5 then I also installed

Fixed seo.class.php (25 Nov 2006)

 

which I can see is what is suggested.

 

and although I get URLs like this:(for instance) http://localhost/catalog/motherboards-c-1.html and not http;//localhost/catalog/-c-1.html

But it still gives me this:

 

Not Found

The requested URL /catalog/motherboards-c-1.html was not found on this server.

 

the same goes to producs and manufactures.

I am getting desperate and yet don't want to downgrade to lower version of mysql as I have to deal with this sooner or later.

I can really use your help guys here.

 

I appreciate any help.

 

Thanks

Mo

Link to comment
Share on other sites

Hi everyone,

 

I have installed the lates Ultimate SEO contribution:

Ultimate SEO URLs - 2.1d with optional Admin settable Product and Category URLs (29 Nov 2006 )

 

and as my mysql version is 5 then I also installed

Fixed seo.class.php (25 Nov 2006)

 

which I can see is what is suggested.

 

and although I get URLs like this:(for instance) http://localhost/catalog/motherboards-c-1.html and not http;//localhost/catalog/-c-1.html

But it still gives me this:

 

Not Found

The requested URL /catalog/motherboards-c-1.html was not found on this server.

 

the same goes to producs and manufactures.

I am getting desperate and yet don't want to downgrade to lower version of mysql as I have to deal with this sooner or later.

I can really use your help guys here.

 

I appreciate any help.

 

Thanks

Mo

Hi shoja,

 

It sounds like the problem is with mod_rewrite. Either your .htaccess file is not set up to rewrite the URLs, or mod_rewrite isn't set up on the server.

 

If your .htaccess file has been modified according to the install directions, then you need to get mod_rewrite working on your server. You should be able to get the tech-support guys from your web host to enable mod_rewrite for you.

 

Good luck,

-Skittles

Link to comment
Share on other sites

I'd really appreciate any help to get this working on a local install using Xampp. See post #1741.

 

Is there a version that will work with the latest snapshot or do I need to look at a different contribution?

 

Thanks!

Link to comment
Share on other sites

I've been trying to figure out a solution to a problem I've got. I've got a store I'm working on that I need to add "biography-artwork" to the the SEO URL's for the manufacturers portion of the code only, such that a URL from clicking on the manufacturer's list box would read

 

domain.com/artist-name-biography-artwork-m-15.html for example.

 

I know the technically that I could just add it into the database but then having biography-artwork tacked on to all the artists names through out the store is pretty tacky and I figure hard coding it into the SEO URL COde somehow may be the best option.

 

With my very limited php I went into the seo-class.php in includes and was able to add the text easily into the URL's in '.html' portion of the case statement although the link refused to work.

 

Is this possible to "hard code" this text string into the existing code somehow and make it work?

 

Any help would be greatly appreciated.

 

Thanks

Travis

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...