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,488

Results 961 to 980 of 1,706
11 Nov 2015, 2:06 PM
#961
lhungil avatar

lhungil

Totally Zenned

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

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

Hmm, isn't 13107200 bytes ~ 13Mb? And the products cache is loading 25Mb of product URLs into memory on that line.... Seems a bit low for a PHP to complain at 13 + 25 = 38Mb... Typos? One may want to verify the amount of memory the hosting plan includes for PHP... And check the configured limit in php.ini...

If there are alot of products and limited memory on the server (25Mb of URL data is a fair amount), one can disable the product cache to save memory. When the product cache is enabled, all product URLs are preloaded into memory. When disabled, the generated URLs for products are added on demand into the global cache. When the global cache is disabled, no generated URLs are cached in memory.

11 Nov 2015, 4:15 PM
#962
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

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

lhungil, thanks for the quick response (and other than some URL editing, the numbers were all as present in the log itself)! It's a self-hosted site and I'll check with the owner on the settings.

11 Nov 2015, 4:22 PM
#963
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

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

When I go to the site's Configuration->Ultimate SEOs, there are many radio-button selections ... where none of the radio buttons are selected! Have you seen this before?

11 Nov 2015, 4:51 PM
#964
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]

lat9:

When I go to the site's Configuration->Ultimate SEOs, there are many radio-button selections ... where none of the radio buttons are selected! Have you seen this before?

Are any Numinex modules installed (which may have altered Zen Cart's stock "/admin/configuration.php")?

11 Nov 2015, 7:10 PM
#965
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

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

There sure are! It's the Numinix-branded Configuration menu that I'm presented with.

11 Nov 2015, 8:03 PM
#966
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]

lat9:

There sure are! It's the Numinix-branded Configuration menu that I'm presented with.
Numinex (at the time Ultimate URLs 2.215 was released) alters the workflow of the standard Zen Cart configuration options. This breaks any 3rd party module (such as Ultimate URLS) relying upon the standard Zen Cart workflow for configuration options.

I would recommend starting by upgrading to the latest version of Ultimate URLs (2.215 at the time of writing). Make sure to review the "Recommended Patches" in the readme. There are instructions for Numinex users on how to patch the Numinex version of "/admin/configuration.php". Once applied, the patches will restore the stock Zen Cart workflow for Zen Cart configuration options (leaving the Numinex functionality intact).

Finally, be sure to apply the previously posted bugfix for Ultimate URLs 2.215.

13 Nov 2015, 8:19 PM
#967
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

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

One more question (right now): Is there a "good" way to flush the contents of the seo_cache table? I think (?) that what I want to do is null-out the products' entries to reduce the size of the database (cache_name = 'seo_urls_vs_products'), besides disabling the products' cache.

I think I found it: Is that what the Configuration->Ultimate SEO->Reset SEO Cache does?

14 Nov 2015, 4:18 AM
#968
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]

That is correct (was added to allow manual clearing of the DB cache via the Zen Cart administrative interface). The DB cache entries are also cleared automatically (when older than 30 days, when products / categories change, and when some settings are changed).

15 Nov 2015, 6:12 AM
#969
fcutler4 avatar

fcutler4

New Zenner

Join Date:
Jul 2013
Location:
South Jordan, Utah
Posts:
16
Plugin Contributions:
0

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

Hey, guys, I installed Ultimate URLs today successfully, I thought. It's version 2.215 and I'm using zen cart version 1.5.1. The problem is now that NOTHING is showing up when i go to my website. Did I overlook something? Is there a section of this thread anyone can point me to for assistance?

16 Nov 2015, 5:12 AM
#971
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]

fcutler4:

Hey, guys, I installed Ultimate URLs today successfully, I thought. It's version 2.215 and I'm using zen cart version 1.5.1. The problem is now that NOTHING is showing up when i go to my website. Did I overlook something? Is there a section of this thread anyone can point me to for assistance?
When I visit your website I am seeing a a "HTTP 500 - Internal Server Error".

Most common causes:

  • The .htaccess file was placed in the wrong location
  • The .htaccess file was not modified to match the store configuration / location
  • Errors in one (or both) of the Zen Cart "/includes/configure.php" files
  • Files contained in this module were uploaded to the wrong location on the server
  • An error occurred when uploading the files to the server
  • The Hosting Provider does not allow mod_rewrite on their server
  • The Hosting Provider does not allow one or more of the directives required for mod_rewrite in a .htaccess file (such as follow symbolic links, rewrite base, etc)
  • The Hosting Provider is using some sort of internal REWRITE to access the web root (sign of a cheap host / host not following best practice)

Please review the link in my signature for troubleshooting "HTTP 500 - Internal Server Error". You may need to work with your hosting provider to gain access to the Apache (or other webserver) error logs for your domain. You may also want to check the Zen Cart "debug" logs for any PHP error messages.

Is your Zen Cart store installed at "/shop/"? If so, was the .htaccess file modified to reflect the store location ("/shop/")? If so, was the .htaccess file uploaded to the correct location ("/shop/")?

Are all of the paths 100% correct in both "/includes/configure.php" and "/your-admin-folder/includes/configure.php"? Can you post (wrap in code tags - press the # button) the lines from those files with: HTTP_, HTTPS_, DIR_WS_CATALOG, DIR_WS_HTTPS_CATALOG, DIR_FS_CATALOG, and DIR_FS_LOGS?

Have you tried uploading the module a second time? Ensured all files are placed in the correct location when uploaded? Verified each file was uploaded successfully (and not corrupted)?

27 Nov 2015, 5:41 PM
#972
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

I've installed this for a client after upgrading from 1.3.9. The issue is an existing directory for a point of sale system resulting in a 404. The path is https://www.STORE.com/pos/index.php

Disabling Ultimate URL does not work. But removing the htaccess file does. There is nothing else in the htaccess except this plugin info. I know it's supposed to ignore real files and directories, but it's not.

28 Nov 2015, 3:03 AM
#973
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]

jeking:

I've installed this for a client after upgrading from 1.3.9. The issue is an existing directory for a point of sale system resulting in a 404. The path is "www.STORE.com/pos/index.php". ...
Does this file (or any other file in the 3rd party "pos" code), require or include Zen Cart's "application_top.php"? In versions of Ultimate URLs <= 2.215, Zen Cart "frankenpages" placed inside sub-directories will trigger the "automatic redirects" feature. The temporary workaround is to disable "automatic redirects". This has been corrected in an upstream version (by adding code to detect and exclude "frankenpages" from the "automatic redirect" processing).

Does a file exist named "/pos.php", "/pos.html", "/pos.jpg", or anything else matching "/pos.*"? This is probably not the issue, but if a file does exist, you may need to disable Apache "MultiViews" by adding the following to your ".htaccess" file.

Options -MultiViews

jeking:

... Disabling Ultimate URL does not work. But removing the htaccess file does. There is nothing else in the htaccess except this plugin info. I know it's supposed to ignore real files and directories, but it's not.
The last generic "catch all" rule in the .htaccess will ignore directories and files which do not physically exist. This is handled by Apache directly, not Zen Cart or Ultimate URLs. Issues here would point to a server configuration issue (or issues with other Apache server directives).

However if the 3rd party "pos" code uses the same URL schemes (ending with the same "anchors" - ex: -p-123, -c-123, -ezp-123, etc), the preceding rules are applied (including to physically existing resources). If for some reason the 3rd party "pos" code does use URLs matching the same format as Ultimate URLs, you can exempt the "pos" folder from the rules added by Ultimate URLs.

###############################################################################
# Start Ultimate (SEO) URLs
###############################################################################
# Notes:
#
# You should not make any changes in this section unless you really understand
# how it will impact your web site. Mistakes can break things.
###############################################################################

[B]# Skip Ultimate URLs directives for specific requests
RewriteCond %{REQUEST_URI} ^/pos/
RewriteRule .* - [S=12][/B]

# 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 ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]

# Original (unchanged) URL formats
RewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
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]
RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]

# Rewrite all other requests (if the file / directory does not exist)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]

NOTE: The above examples are intended for the ".htaccess" file provided with Ultimate URLs 2.215. If you are running a different version, you may need to adjust the rules to correctly skip the correct number of RewriteRule directives in your ".htaccess" file.

28 Nov 2015, 4:32 AM
#974
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

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

This is version 2.215. But I overlooked an obvious cause. The htaccess on the /pos/ folder was the cause of the problem. The folder is password protected and even though it looked good, commenting out those lines fixed the problem. I'll figure out why, but the problem is not Ultimate URL.

30 Nov 2015, 5:33 PM
#976
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]

For those installing Ultimate URLs on a patched copy of Zen Cart, the installer will leave the patches alone and automatically handle merging only the required changes to "/includes/functions/html_output.php".

If one overwrites their copy of "/includes/functions/html_output.php" with a patched copy, be sure to run the Ultimate URLs installer again (to add the required changes).

For those who choose to manually merge the changes required for Ultimate URLs (not recommended), be sure to also incorporate the above security bugfix kindly posted by swguy in this thread.

27 Dec 2015, 5:23 PM
#977
manishanirula avatar

manishanirula

New Zenner

Join Date:
Dec 2015
Location:
India
Posts:
5
Plugin Contributions:
0

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

There is a search Bug in Ultimate Seo 2.15
I have added Advanced_search_result in the pages to have Seo urls. It works fine if we search for one word but if we search for 2 words the search page 1 works fine but on clicking page 2 we are taken to advanced search page. On checking the url difference I found this:
First page url: advanced_search_result.html?search_in_description=1&keyword=kelvin clean
Search page 2 url: index.php?main_page=advanced_search&search_in_description=1&keyword=kelvin clean&inc_subcat=0&sort=20a&page=2
The problem is advance_search_result has changed to advanced_search

If we disable ultimate seo everything works fine

28 Dec 2015, 9:42 AM
#978
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]

manishanirula:

... I have added Advanced_search_result in the pages to have Seo urls. It works fine if we search for one word but if we search for 2 words the search page 1 works fine but on clicking page 2 we are taken to advanced search page. ...
Correct. There are a number of things at play here, but the root cause is a double encoding of the URLs on the "search pages".

The quickest fix is to just disable generating alternative URLs for "advanced_search_result".

Upon initial installation Ultimate URLs enabled generation of alternate URLs for "index, product_info, product_music_info, document_general_info, document_product_info, product_free_shipping_info, products_new, products_all, shopping_cart, featured_products, specials, contact_us, conditions, privacy, reviews, shippinginfo, faqs_all, site_map, gv_faq, discount_coupon, page, page_2, page_3, page_4". This is the recommended setting for most sites.

A slightly more complex fix (allowing generation of alternative URLs for the search result pages) involves making changes to "/includes/classes/usu.php".

Replace:

	/**
	 * Convert an array of query parameters to a URI query string. This is safe
	 * for use under 5.2+ with optimizations for PHP 5.4+.
	 *
	 * @param array the array of query parameters
	 */
	protected function build_query($parameters) {
		if(version_compare(PHP_VERSION, '5.4.0') >= 0) {
			$parameters = http_build_query($parameters, '', '&', PHP_QUERY_RFC3986);
		}
		else {
			$compile = array();
			foreach($parameters as $key => $value) {
				if($key !== null && $key != '') {
					// Prior to PHP 5.3, tildes might be encoded per RFC 1738
					// This should not impact functionality for 99% of users.
					$compile[] = rawurlencode($key) . '=' . rawurlencode($value);
				}
			}
			$parameters = implode('&', $compile);
			unset($compile);
		}
		return $parameters;
	}

With:

	/**
	 * Convert an array of query parameters to a URI query string. This requires
	 * the code calling zen_href_link() to ensure all parameters passed to the
	 * function to be already encoded when applicable.
	 *
	 * @param array the array of query parameters
	 */
	protected function build_query($parameters) {
		$compile = array();
		foreach($parameters as $key => $value) {
			if($key !== null && $key != '') {
				$compile[] = $key . '=' . $value;
			}
		}
		return implode('&', $compile);
	}

NOTE: Those with third party code assigning arrays (as the value) for a key in the URL parameters (not recommended) will need to apply additional changes to the function.

28 Dec 2015, 6:10 PM
#979
manishanirula avatar

manishanirula

New Zenner

Join Date:
Dec 2015
Location:
India
Posts:
5
Plugin Contributions:
0

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

Thanks...Its working fine now but would you suggest making the above changes. Will it impact anything else on website.

28 Dec 2015, 6:29 PM
#980
manishanirula avatar

manishanirula

New Zenner

Join Date:
Dec 2015
Location:
India
Posts:
5
Plugin Contributions:
0

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

Also is there a way to remove the query string "advanced_search_result.html?search_in_description=1&keyword=" from the url of search. This will be really helpful in SEO