Zen Cart Logo
Forums / All Other Contributions/Addons / Ultimate SEO v3 (and v2.200) [Support Thread]

Ultimate SEO v3 (and v2.200) [Support Thread]

Views: 427,449

Results 161 to 180 of 1,706
21 Nov 2012, 2:48 AM
#161
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Ultimate SEO v3 (and v2.200) [Support Thread]

Apologies... I wonder if it has to do w/what my .htaccess already had from my server - I have to idea what it says/does, but with the new code it would be:

suPHP_ConfigPath /hsphere/local/home/heteromo/heteromorphic.com

-FrontPage-

RewriteEngine on
Options -Indexes

<Files shtml.dll> order allow,deny deny from all </Files> <Files _vti_inf.html> order allow,deny deny from all </Files> <Files postinfo.html> order allow,deny deny from all </Files>

IndexIgnore .htaccess /.?? *~ *# /HEADER /README /_vti

<Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName <https://www.heteromorphic.com> AuthUserFile /hsphere/local/home/heteromo/heteromorphic.com/_vti_pvt/service.pwd AuthGroupFile /hsphere/local/home/heteromo/heteromorphic.com/_vti_pvt/service.grp

Redirect 301 /Merchant2/merchant.mvc http://heteromorphic.com/mm5/merchant.mvc

RewriteEngine on
RewriteRule ^is_working/$ ./Merchant2/4.16/features/timeline.php?check_script=1
RewriteRule ^(yqqftco)(.)/(.).html$ ./Merchant2/4.16/features/timeline.php?name=$3&word=$2&indx=$1 [L]

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

###############################################################################

Start Ultimate SEO URLs

###############################################################################

Handles the new URL formats

RewriteRule ^(.)-c-([0-9_]+)/(.)-p-([0-9]+)(.)$ index.php?main_page=product_info&products_id=$4&cpath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-p-([0-9]+)(.)$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-c-([0-9_]+)(.*)$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

Original (unchanged) URL formats

RewriteRule ^(.)-m-([0-9]+)(.)$ index.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-pi-([0-9]+)(.)$ index.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-pr-([0-9]+)(.)$ index.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-pri-([0-9]+)(.)$ index.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-ezp-([0-9]+)(.)$ index.php?main_page=page&id=$2&%{QUERY_STRING} [L]

All other pages

Don't rewrite real files or directories

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?main_page=$1&%{QUERY_STRING} [L]

21 Nov 2012, 4:10 AM
#162
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

heteromorphic:

And I'm not sure I understand this if I try to install again:

  1. Log into the admin side of your Zen Cart installation using a web browser. Yes, log into your admin interface now before continuing. Copy over the file from "4 install/your_admin_folder" to your Zen Cart installation under your admin folder.

Where do you copy anything from the admin panel? Or is it still via FTP (which is what I did originally).

The idea here is that you log in to admin panel THEN ftp over those last 4 install files. Then click on any admin page, such as the admin home, and you should see a "success" message in your admin...or an error msg with hopefully an indication of the problem. I've never seen the error msg.

If you didn't ftp up those final files during our install, that may be some of the problem.

Another issue is that I'm using zc 1.5.1 so am not certain how 1.3.9h works. You didn't try uploading the 1.5.0/1.5.1 files, did you?

EDIT: Just saw your htaccess code. Don't know how that may affect Ultimate SEO. Ihungil is now leading the support for this plugin and he should be around soon and may have some thoughts.

21 Nov 2012, 4:24 AM
#163
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

EDIT: I just recalled that the Ultimate SEO URL support here is really for zc versions 1.5.0/1.5.1, which I believe is the Ultimate SEO URL version support Ihungil is providing. So didn't want to volunteer him for something outside of his area.

I must say that your extra htaccess code looks strange to my eye for a top-level htaccess. Some of it looks to me more like an interior htaccess file. Did you put everything in the proper htaccess file?

The rest of your code I haven't seen before. Who or what is your server?

21 Nov 2012, 12:54 PM
#164
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

I have websitesource and I know they added code when I switched from MivaMerchant to Zen to make sure old links were redirected but I didn't do so I don't know how to edit.
I only installed the file for the 3.9 version...
The blank issue / website gone occurred after I added the .htacess code as instructed and never came back even when I deleted the new code and then restored to my backup that I did earlier when the site did run? Is that common once you run the new .htaccess file that it won't come back even when switched?

I never got the success or fail message once I logged into my admin panel and I never could find it in the config dropdown... I can still get in my admin panel, but that is about it :(

21 Nov 2012, 3:45 PM
#165
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

You should probably not have multiple "RewriteEngine on" in the .htaccess file. As SPH noted the .htaccess file from "Ultimate SEO URLs" should be installed in the same folder as your Zen Cart installation (what folder is Zen Cart installed in?). It looks like you merged it with a top level server config / .htaccess.

heteromorphic:

The blank issue / website gone occurred after I added the .htacess code as instructed and never came back even when I deleted the new code and then restored to my backup that I did earlier when the site did run? Is that common once you run the new .htaccess file that it won't come back even when switched?
Nope, this is very uncommon. What do you see in your log files? http://www.zen-cart.com/content.php?124-blank-page

heteromorphic:

I never got the success or fail message once I logged into my admin panel
This only shows if you log into the admin, then FTP the last file, then click a link in the admin (before the login timeout).

heteromorphic:

I never could find it in the config dropdown... I can still get in my admin panel, but that is about it :(
Try going through the installation steps again. No config usually means either the language file is missing (make sure your language in admin is set to English - I'm still waiting for people to translate) - or - the installation script is not being loaded.

21 Nov 2012, 6:38 PM
#166
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lhungil:

You should probably not have multiple "RewriteEngine on" in the .htaccess file. As SPH noted the .htaccess file from "Ultimate SEO URLs" should be installed in the same folder as your Zen Cart installation (what folder is Zen Cart installed in?). It looks like you merged it with a top level server config / .htaccess..

I apologize in advanced - slightly confused... I think that was on my top server or would you mean the /zencart folder?
And maybe dumb question.... when it said admin folder it meant that and not the "custom" folder right?

Nope, this is very uncommon. What do you see in your log files? http://www.zen-cart.com/content.php?124-blank-page
PHP Fatal error: Cannot redeclare zen_js_zone_list() (previously declared in /hsphere/local/home/heteromo/heteromorphic.com/zencart/includes/functions/functions_general.php:1408) in /hsphere/local/home/heteromo/heteromorphic.com/zencart/includes/functions/html_output.php on line 194

That is the only one I could find - would that make it blank?

This only shows if you log into the admin, then FTP the last file, then click a link in the admin (before the login timeout)..

Yes I did that, but nothing showed up.

Try going through the installation steps again. No config usually means either the language file is missing (make sure your language in admin is set to English - I'm still waiting for people to translate) - or - the installation script is not being loaded.

Thank you.

21 Nov 2012, 7:37 PM
#167
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Do you think that PHP error is the issue or shoud I try to run back up again?

21 Nov 2012, 7:39 PM
#168
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

heteromorphic:

PHP Fatal error: Cannot redeclare zen_js_zone_list() (previously declared in /hsphere/local/home/heteromo/heteromorphic.com/zencart/includes/functions/functions_general.php:1408) in /hsphere/local/home/heteromo/heteromorphic.com/zencart/includes/functions/html_output.php on line 194

That is the only one I could find - would that make it blank?
Yes - that would cause a blank page. There is no "zen_js_zone_list()" in functions_general.php from a stock Zen Cart 1.3.9h install. Are you running Zen Cart 1.3.9h? If so you may want to revert back to the one supplied in the Zen Cart 1.3.9h download.

There is no copy of functions_general.php supplied by "Ultimate SEO URLs" for Zen Cart 1.3.9h. When following step 1 in the installation instructions, did you copy over (or merge) the contents of only the "1_affected_files_139h" folder?

heteromorphic:

I think that was on my top server or would you mean the /zencart folder?
Where did you install Zen Cart? Is it on the root of the server ("http://heteromorphic.com/") or in a folder ("http://heteromorphic.com/zencart/")? Where is the .htaccess file you posted found on the server? Can you post a copy of your "includes/configure.php" and "admin/includes/configure.php" files (use CODE tags please - and remove any database user / password information)

21 Nov 2012, 7:59 PM
#169
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lhungil:

Yes - that would cause a blank page. There is no "zen_js_zone_list()" in functions_general.php from a stock Zen Cart 1.3.9h install. Are you running Zen Cart 1.3.9h? If so you may want to revert back to the one supplied in the Zen Cart 1.3.9h download.

no; i have several other modules installed. I did see another post about that error here but I'm not sure what they are talking about as a resolution: http://www.zen-cart.com/showthread.php?133778-Cannot-redeclare-zen_js_zone_list%28%29

There is no copy of functions_general.php supplied by "Ultimate SEO URLs" for Zen Cart 1.3.9h. When following step 1 in the installation instructions, did you copy over (or merge) the contents of only the "1_affected_files_139h" folder?
yes

Where did you install Zen Cart? Is it on the root of the server ("http://heteromorphic.com/") or in a folder ("http://heteromorphic.com/zencart/")? Where is the .htaccess file you posted found on the server? Can you post a copy of your "includes/configure.php" and "admin/includes/configure.php" files (use CODE tags please - and remove any database user / password information)

I believe it was installed on heteromorphic.com/zencart. The .htaccess file is on the root for sure (heteromorphic.com).
my includes/configure.php is blank?
admin/includes/configure.php isn't there? Very confused.

21 Nov 2012, 8:09 PM
#170
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Nevermind... just had to fix permissions on control panel to view. Not sure how to "code" - please advise. Thanks!

the 2nd one isn't there - just the config.seo files are there...

First one is:

<?php /** * @package Configuration Settings circa 1.3.9 * @copyright Copyright 2003-2010 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * File Built by zc_install on 2011-02-20 07:13:15 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://heteromorphic.com'); define('HTTPS_SERVER', 'http://heteromorphic.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/zencart/'); define('DIR_WS_HTTPS_CATALOG', '/zencart/'); define('DIR_WS_IMAGES', 'images/'); 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', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/hsphere/local/home/heteromo/heteromorphic.com/zencart/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'wzc_'); define('DB_SERVER', 'mysql8.websitesource.net'); define('DB_SERVER_USERNAME', REDACTED); define('DB_SERVER_PASSWORD', REDACTED'); define('DB_DATABASE', 'heterom_zencart'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'file'); define('DIR_FS_SQL_CACHE', '/hsphere/local/home/heteromo/heteromorphic.com/zencart/cache'); // EOF
21 Nov 2012, 9:31 PM
#171
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

heteromorphic:

... Not sure how to "code" - please advise ...After you click "REPLY" on the forums clicking "GO ADVANCED". This will give you extra options in the editor.

heteromorphic:

Nevermind... just had to fix permissions on control panel to view. ... the 2nd one isn't there - just the config.seo files are there...
Do not use a "control panel" to copy files to your server. This is known to cause problems including corrupted files. Zen Cart (and all Zen Cart modules) should be installed directly using a SFTP, FTPS, or FTP client.

Zen Cart requires both configuration files, so they are there somewhere. If you renamed your "admin" folder, which is recommended after installing, then replace the word "admin" with the name of your Zen Cart "admin" folder.

The configuration you posted for "includes/configure.php" is missing some quotes around the DB username / password. If you copied this from the server and did not edit to replace the username / database with dummy values you should fix the quotes. The "store" configure.php looks okay otherwise at a glance (I mostly wanted to see where you installed various Zen Cart components).

heteromorphic:

I did see another post about that error here but I'm not sure what they are talking about as a resolution
First and foremost, are you running Zen Cart 1.3.9h? I am not supporting this module on older versions.

If you are running Zen Cart 1.3.9h, I'm guessing the store has been upgraded from previous versions and some of the merges were not successful. Use a tool such as WinMerge or BeyondCompare to see what is different in your store than a stock 1.3.9h store and go from there. Your copy of "includes/functions/functions_general.php" is outdated and needs to be upgraded if you are running 1.3.9h.

heteromorphic:

I believe it was installed on heteromorphic.com/zencart. The .htaccess file is on the root for sure (heteromorphic.com).
As per the installation instructions the sample .htaccess file goes in the location you installed Zen Cart. So in your case "heteromorphic.com/zencart/.htaccess" not in the root "heteromorphic.com/.htaccess". Please adjust accordingly.

21 Nov 2012, 10:36 PM
#172
heteromorphic avatar

heteromorphic

New Zenner

Join Date:
Jul 2012
Posts:
60
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

lhungil:

After you click "REPLY" on the forums clicking "GO ADVANCED". This will give you extra options in the editor.

Do not use a "control panel" to copy files to your server. This is known to cause problems including corrupted files. Zen Cart (and all Zen Cart modules) should be installed directly using a SFTP, FTPS, or FTP client.

Zen Cart requires both configuration files, so they are there somewhere. If you renamed your "admin" folder, which is recommended after installing, then replace the word "admin" with the name of your Zen Cart "admin" folder.

The configuration you posted for "includes/configure.php" is missing some quotes around the DB username / password. If you copied this from the server and did not edit to replace the username / database with dummy values you should fix the quotes. The "store" configure.php looks okay otherwise at a glance (I mostly wanted to see where you installed various Zen Cart components).

First and foremost, are you running Zen Cart 1.3.9h? I am not supporting this module on older versions.

If you are running Zen Cart 1.3.9h, I'm guessing the store has been upgraded from previous versions and some of the merges were not successful. Use a tool such as WinMerge or BeyondCompare to see what is different in your store than a stock 1.3.9h store and go from there. Your copy of "includes/functions/functions_general.php" is outdated and needs to be upgraded if you are running 1.3.9h.

As per the installation instructions the sample .htaccess file goes in the location you installed Zen Cart. So in your case "heteromorphic.com/zencart/.htaccess" not in the root "heteromorphic.com/.htaccess". Please adjust accordingly.

My server did the install as a fresh 1.3.9.h for me but they aren't upgrading so I would have to do. Not being an expert, do you know anyone who offers that upgrading service for a decent price by chance? I would like to upgrade but make sure all my mods stay in tact too :)

I did use ftp, but I was accessing those you requested from control panel just to copy/paste the code since I was at another job at the time... but yes, always do from ftp when uploading files. The code - the quotes are there - just deleted when i redacted those fields...

I ended up restoring back from my entire site so I at least have it back online for now; but really need help with making it SEO friendly. Would you recommend not using this one until I can get upgraded or any other version that may work better with 1.3.9.h for now until I can upgrade versions?

I'm afraid to try and re-install again and have the same issue :(

Thanks for all the help!

21 Nov 2012, 11:33 PM
#173
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

I'm afraid to try and re-install again and have the same issue :(
Understandable. Merging files is not always simple. Did you try replacing the functions_general.php with the one from Zen Cart 1.3.9h? Just to see what happens?

When you have a clean Zen Cart installation (no plugins or modifications) you can literally just drag and drop the replacement files. This works well in my 1.3.9h test environment (clean install w/ DEMO database - no other plugins or modifications).

22 Nov 2012, 12:37 AM
#174
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Compatibility
Zen Cart 1.3.9h & 1.5, MySQL 5.0/5.5, PHP 5.2.17+/5.3/5.4
If running Zen Cart 1.3.9h it is not recommended to run with Zen Cart SQL Caching enabled. Support for running Zen Cart 1.3.9h with this option enabled will not be provided. It is strongly recommended to upgrade to Zen Cart 1.5 if you use this feature.

If you are running a version of this plugin prior to version 2.150 it is recommended you uninstall the old version of the plugin including all database entries prior to installing this version. While most settings will be automatically upgraded the installation scripts have not been tested against versions prior to 2.150.

New Enhancements (since the last version)

  • To ensure URLs are W3C compatible, htmlspecialchars is run over all generated URLs with mode and character set specified (PHP 5.4 compatibility).
  • Setting "Enable automatic rewrite" to true will automatically issue a 301 redirect for URLs not matching the output from zen_href_link.
  • For linked products canonical links are generated when needed by using the prodct's master category id. The generated links are passed to Zen Cart's canonical link system.
  • Added handling for copy / pasted "Internal URLs" in "EZ-Pages" to make migration to the new version easier for upgraded installations.
  • Updated README_ENGLISH with more detailed installation steps.
  • Changed the names of folders and moved some files around to make installation steps more clear.
  • Updated the English language file to clarify the usage of "Enter pages to allow rewrite".
    Bugs Addressed (since the last version)
  • Added option to disable the EZ-Page cache.
  • Page not requiring special handling of parameters will now correctly have the "extension" added to the end of the URL.
  • Cleans up some obsolete configuration options which may still be present when upgrading from a previous version.
  • New .htaccess sample handles product reviews when "Categories as directories" is enabled.
    When will the new version be available?
    I am planning to upload the new version on 21 Nov 2012. Those wishing to test the new version prior to when it appears in the plugins section of the Zen Cart website are advised to apply to be BETA testers.
23 Nov 2012, 10:45 PM
#175
matthewreece avatar

matthewreece

New Zenner

Join Date:
Aug 2008
Posts:
24
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Hi
Thanks for updating a great and useful mod.
The only way i can get this mod working is to comment out the line "Options +FollowSymLinks" in the .htaccess. I was wondering why? and whether it is safe to do this.
Thanks in advance Matt

24 Nov 2012, 2:26 AM
#176
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Hi,

I have installed this plugin on 1.5.x carts without problem. What version of zencart are you using and what other plugins are you using? Also, how much other stuff is in your htaccess file?

A link or unlinked text address to you site might also help.

25 Nov 2012, 8:11 AM
#177
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

matthewreece:

The only way i can get this mod working is to comment out the line "Options +FollowSymLinks" in the .htaccess. I was wondering why? and whether it is safe to do this.
If you need to disable this line, your hosting provider does not allow you to enable the web server to follow symbolic links. Most *nix hosting platforms support this option. Should be safe to comment out this line (unless you use symbolic links to create an "alias" to another file or directory).

26 Nov 2012, 5:26 PM
#178
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Description
If you disable the "SEO" cache in the admin configuration you are unable to re-enable the "SEO" cache.

Affected environments
Ultimate SEO URLs version 2.210 and 2.211.

Solution (until next version)
Replace the function "usu_check_cache_options" in "admin/includes/functions/extra_functions/seo.php" starting on line 104 with the following:

// Function to check the global cache settings
function usu_check_cache_options($action) {
	$temp = explode('-', $action);
	if(sizeof($temp) < 2) $temp[] = 'global';
	$temp[1] = strtoupper($temp[1]);

	switch($temp[0]) {
		case 'enable':
			$action = 'true';
			if(SEO_USE_CACHE_GLOBAL == 'false' && $temp[1] != 'GLOBAL') {
				zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => $action), 'update', '`configuration_key`=\'SEO_USE_CACHE_GLOBAL\'');
				echo '<div><span class="alert">' . sprintf(SEO_CONFIG_ADJUSTED, SEO_USE_CACHE_GLOBAL_TITLE, $action) . '</span></div>';
			}
			zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => $action), 'update', '`configuration_key`=\'SEO_USE_CACHE_' . $temp[1] . '\'');
			usu_reset_cache_data('true');
			break;

		case 'disable':
			$action = 'false';
			zen_db_perform(TABLE_CONFIGURATION, array('configuration_value' => $action), 'update', '`configuration_key`=\'SEO_USE_CACHE_' . $temp[1] . '\'');
			usu_reset_cache_data('true');
			break;

		default:
	}

	return $action;
}
26 Nov 2012, 5:47 PM
#179
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

Thanks, will look at this fix.

But a question: why would one want to disable the SEO cache in admin?

I didn't even know it was a problem.

EDIT: to answer my own question, perhaps someone will disable SEO cache just to see what it does, then cannot get it back?

26 Nov 2012, 6:58 PM
#180
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Ultimate SEO v3 (and v2.200) [Support Thread]

SPH:

But a question: why would one want to disable the SEO cache in admin?
I didn't even know it was a problem.
Mostly for those who might "accidentally" turn this feature off.

With the SEO cache enabled some processing time and SQL Query time is saved at the expense of using more memory. The majority of installations will benefit from using the SEO cache to reduce PHP processing time when generating human friendly URLs.

While rare some people may have another layer of caching (such as caching portions of entire pages). Some may use the built in Zen Cart SQL cache (when enabled Ultimate SEO URLs uses this cache as well). Performance when generating URLs will vary depending upon the hosting environment where Zen Cart is installed (and thus this option exists for those who might benefit).