Jump to content
spidometrs

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

Recommended Posts

i sent u pm with site url. i have tried it without

Options +FollowSymLinks

 

one of the other sites is based on 2.2 and has over 100 k and that works fine with this addon..

 

 

I just tried with cahcing off and it work.Wont cache off slow down the site..i ams also getting this error.. Undefined variable: actaulID includes/classes/seo.class.php on line 2641

Edited by nafri

Share this post


Link to post
Share on other sites

I took a look at your site and see it is working. It is a little sluggish but that is more because of how your site is setup than this addon, I think. You can check that by disabling this addon in admin and see if there is much difference.

 

The error you are getting is because there is a type in the current version. The actaulID at that location should be actualID. This has been fixed in the latest version but I haven't had time to prepare the package and upload it.

 

As for the cache, yes, not using it might cause a slow down, though I don't think much. You can enable the performance checking option to be sure. For some reason, the original author coded it to check all of the products when looking up a cache value and that causes a problem when there is a large number of them. You can play around with the various cache options to see if just having some enabled will help or not.

Share this post


Link to post
Share on other sites

hi

with mysql_* functions soon to be removed from PHP i wonder if anyone has made an effort of converting the seo.class over to use mysqli_* (and is willing to share)?

 

i must admit i didnt read the entire thread but i did search this topic for 'mysqli' and didnt get much. i tried editing the class myself but failed miserably. but it looks like only a few lines actually need changing. help is much appreciated. cheers,

Share this post


Link to post
Share on other sites

.....This has been fixed in the latest version but I haven't had time to prepare the package and upload it.

 

Hi Jack,

 

Will your new version be compatible with 2.3.3.4? as This is a great contribution - and is one of my "Must Have" mods for my development store

 

Many Thanks


Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Share this post


Link to post
Share on other sites

Hi,

 

Have been having a weird problem recently where on various sites the include/classes/seo.class.php just disappears possibly server related a simple new upload solves the problem.

 

Been thinking of first changing the file permissions

 

any ideas??

 

regards

Joli

Edited by joli1811

To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

Heather: I have it installed and working in a 2.3.3.4 shop here locally as well as in a live shop - no problems. What problems are you having? Any errors?

Share this post


Link to post
Share on other sites

John: There isn't any code in place to cause the file to be deleted. Someone else mentioned a problem like this but I don't remember if it was with this addon or not. I don't recall the fix or even if the person found the cause.

Share this post


Link to post
Share on other sites

Heather: I have it installed and working in a 2.3.3.4 shop here locally as well as in a live shop - no problems. What problems are you having? Any errors?

 

Hi Jack,

 

The problem manifests itself as blank pages - looking at the error logs I can see that the error is caused by

 Options +FollowSymLinks

in the .htaccess file - I also tried amending this to

Options +SymLinksIfOwnerMatch

without any change. Is the +FollowSymLinks code a security risk and being blocked by my server config?


Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Share this post


Link to post
Share on other sites

John: There isn't any code in place to cause the file to be deleted. Someone else mentioned a problem like this but I don't remember if it was with this addon or not. I don't recall the fix or even if the person found the cause.

 

Thanks for the info Jack it is a strange one does not seem to be happening on rc2 shops just 2.3.....so tracking now in my error logs will try changing file permissions a bit I am using your version from Jack_mcs 15 Jan 2011 maybe try replacing the file with another version.

I get the feeling this is somehow server related so will ask them as well.

 

Regards

John


To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

Hi Jack,

 

The problem manifests itself as blank pages - looking at the error logs I can see that the error is caused by

 Options +FollowSymLinks

in the .htaccess file - I also tried amending this to

Options +SymLinksIfOwnerMatch

without any change. Is the +FollowSymLinks code a security risk and being blocked by my server config?

 

Ok - Found that this works in my .htaccess file

Options +SymLinksIfOwnerMatch -Indexes

 

So all is good - Thanks Jack


Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Thanks for the info Jack it is a strange one does not seem to be happening on rc2 shops just 2.3.....so tracking now in my error logs will try changing file permissions a bit I am using your version from Jack_mcs 15 Jan 2011 maybe try replacing the file with another version.

I get the feeling this is somehow server related so will ask them as well.

 

Regards

John

FOr the disappearing file problem, see Heathers post here.

Share this post


Link to post
Share on other sites

FOr the disappearing file problem, see Heathers post here.

 

Yes Jack thought so going to confirm with my server have written a support ticket x 2 instances of Base64 in the seo.class.php which may trigger the sweep

 

will report back the answer from my server

 

Thanks for the info

 

Regards

Joli


To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

I installed the contribution and urls out perfect but I have two problems when Access to admin:

 

1- before login :

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /xxx/xxx/public_html/tienda/admin/includes/functions/general.php:2642) in /xxx/xxx/public_html/tienda/admin/includes/functions/sessions.php on line 102

 

2- After login:

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /xxx/xxx/public_html/tienda/admin/includes/functions/general.php:2642) in /xxx/xxx/public_html/tienda/admin/includes/functions/sessions.php on line 102

 

Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxx/public_html/tienda/admin/includes/functions/general.php:2642) in /xxx/xxx/public_html/tienda/admin/includes/functions/general.php on line 43

 

Can help me?

Thanks in advance for your help.

 

Share this post


Link to post
Share on other sites

When you made the change to the admin/includes/functions/general.php, an extra space or two was added to the end of the file, probably due to the editor you are using. You need to edit that file and make sure the very last line in the file is ?>

Share this post


Link to post
Share on other sites

Thank you very much, that solved the error but there are two problems:

 

1 - When entering from the manager to the SEO URLs configuration option I get the following message:

Deprecated: Function ereg() is deprecated in /public_html/tienda/admin/configuration.php on line 80

2 - On the urls Store now showing no special characters out in Spanish example:ñ, í, ó.. etc.. any advice?

Share this post


Link to post
Share on other sites

The first problem doesn't have anything to do with this addon. See the various threads in these forums about handling ereg problems. The second problem is because you haven't filled in the cross reference option in the settings.

Share this post


Link to post
Share on other sites

Hi, I have setup Ultimate SEO 2-2.2d on http://thinkingbooks.co.uk/bookshop/ and the SEO frielndly URLs are displaying ok but they all resolve to error 404.

I have checked both configue.php files and cannot see any issues. the site (early days) runs fine with Enable SEO URLs set to false.

 

configure files (edited for privacy): admin\includes

 

define('HTTP_SERVER', 'http://thinkingbooks.co.uk');

define('HTTP_CATALOG_SERVER', 'http://thinkingbooks.co.uk/bookshop/');

define('HTTPS_CATALOG_SERVER', 'http://thinkingbooks.co.uk/bookshop/');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/content/*****/html/thinkingbooks/bookshop/');

define('DIR_WS_ADMIN', '/bookshop/admin/');

define('DIR_FS_ADMIN', '/home/content/****/html/thinkingbooks/bookshop/admin/');

define('DIR_WS_CATALOG', '/bookshop/');

define('DIR_FS_CATALOG', '/home/content/****/html/thinkingbooks/bookshop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', '*****');

define('DB_SERVER_USERNAME', '*****');

define('DB_SERVER_PASSWORD', '*****');

define('DB_DATABASE', '*****');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

\Includes\

 

define('HTTP_SERVER', 'http://thinkingbooks.co.uk');

define('HTTPS_SERVER', 'http://thinkingbooks.co.uk');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/bookshop/');

define('HTTPS_COOKIE_PATH', '/bookshop/');

define('DIR_WS_HTTP_CATALOG', '/bookshop/');

define('DIR_WS_HTTPS_CATALOG', '/bookshop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/content/*****/html/thinkingbooks/bookshop/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', '*****');

define('DB_SERVER_USERNAME', '*****');

define('DB_SERVER_PASSWORD', '*****');

define('DB_DATABASE', '*****');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

Share this post


Link to post
Share on other sites

Please post the contents of your .htaccess file, or just the part that deals with this addon if it is large.

Share this post


Link to post
Share on other sites

Aha. I discovered that I had a catalogue folder duplicated inside my bookshop and I edited the duplicate .htaccess file. duplicated files removed and editied the correct file.

 

all working a treat now. Thanks.

Share this post


Link to post
Share on other sites

Hello All,

 

I have upgrade my shop to 2.3.3.4 and then found out that the special character conversion didn't work. Instead of converting the special characters, it just removed them from the URL.

ie. Category /mydomain/Sportausrüstung ü=>ue should produce /mydomain/Sportausruestung

Anywhere else on my site all special characters are displayed correctly.

My Database is UTF-8 with uft8_unicode_ci

My list of conversion in the admin Ü=>Ue,ü=>ue,Ö=>Oe,ö=>oe,Ä=>Ae,ä=>ae,ß=>ss

I've re-instaled this addon, but if didn't help.

 

In this topic I've read people facing same problem but no solution was mentioned.

Any advise for me where to look for a solution.

 

Wish all a happy 2014.

Share this post


Link to post
Share on other sites

This has been fixed in the next version which should be uploaded today or tomorrow.

Share this post


Link to post
Share on other sites

Dear Experts!

 

Is there any way to leave slash '/' in the product name? I cannot find the place in the script seo.class.php where the slashes are removed. Thank you.

Share this post


Link to post
Share on other sites

The code doesn't remove it. That is the basic operation of oscommerce, as I recall.

Share this post


Link to post
Share on other sites

A new version has been uploaded with these changes:

 

- Changed code so that it works with the new Header Tags SEO url field

- Corrected spelling mistake in options (permormance) as found by user 14steve14)

- Corrected mistake for get_topic_name function for Article Manager

- Corrected a typeo for the category=0 code that caused a failure for some shops

- Removed type definition from table for MYSQL compatibility

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×