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

Results 561 to 580 of 1,706
01 Jan 2014, 02:01
#561
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]

slavka001:

... Yes. I am not sure if that helps but i was loading files (second time) one at a time and found that after loading I tried to load files separately. Zencart works until i load this file: ultimate_seo_urls_212\2_new_files\includes\auto_loaders\config.seo.php sites stops working. ...
Do not do this. All of the files must be uploaded or you WILL have issues. If you are getting a "blank" page (after following all the steps - and without the .htaccess), this usually means a file was uploaded to the wrong place (or a file was not correctly merged - most often this if the installer reported success)...

Not seeing any blank pages when I checked tonight (or this plugin installed)... Are you getting an HTTP 500? If so the server error logs should have more details... Is there anything in the server or php error logs? Can you give exact details of each step you took while attempting to install this module?

slavka001:

... /homepages/24/d237084380/htdocs/3rdbrakeflasherV6/ ...
"RewriteBase /" or "#RewriteBase /" would be the correct line based upon the URL provided. It appears your website is installed as an "addon" domain (and located inside another website's document root)... I'd recommend the second one (commenting out the RewriteBase rule) as many of the cheaper hosting providers use mod_rewrite to handle "addon" domains instead of configuring different document roots for each "addon" domain (RewriteBase can interfere with the internal rewrites the hosting provider uses - if they are using configured this way).

01 Jan 2014, 16:04
#562
slavka001 avatar

slavka001

New Zenner

Join Date:
Aug 2007
Posts:
14
Plugin Contributions:
0

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

I attempted again today. I compared all the files in step #1 and #2 with my files. I did not make any changes to those files in 1.5.1 so I just overplayed all of them. I found though that UltimateSEO212 query_cache.php missing ( "?>" ) at the end of the file.
#3 i moved .htacces
#4 Logged into admin
#5 Moved files and went to Admin again. Got message that SEO was installed. and site stopped working.

In the server logs I am getting 200 when try to access my page. Nothing in zencart /logs dir.

Tried different .htaccess variants with no success

02 Jan 2014, 01:23
#563
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]

slavka001:

... I found though that UltimateSEO212 query_cache.php missing ( "?>" ) at the end of the file. ...
This is done on purpose. I trust you did not add "?>" back to the file?

When you say "it is not working", are you still referring to getting "blank pages"? (I ask because I cannot see your site as you keep changing it before I get a chance to see things "not working")... Still sounds like something not installed correctly (as you are reporting it is crashing BEFORE Zen Cart's error log handler is loaded / initialized).

Can you try a couple things to try to capture what error is occuring? Edit your php.ini to log all errors / warnings to a file and make sure display_error is enabled (this will catch errors occurring before Zen Cart's error logging starts)? Can you also add the following line to both of your configure.php files:

define('STRICT_ERROR_REPORTING', true);
02 Jan 2014, 15:35
#564
slavka001 avatar

slavka001

New Zenner

Join Date:
Aug 2007
Posts:
14
Plugin Contributions:
0

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

SUCCESS.

lhungil, I appreciate your help very much. I felt you confidence that module should work and kept digging.
What I found is that I made a mistake when I moved the page from one domain to another. My /include/configuration.php did not have correct local path which to my surprise did not break the site. Once I fixed that site came up but with 500 response. I tried different configs for .htaccess and found that "RewriteBase /" worked.
Again. Thanks a lot for your support guys. That is why I like this forum, you can get real answers from real experts.

02 Jan 2014, 15:40
#565
jerry5763837 avatar

jerry5763837

Zen Follower

Join Date:
May 2008
Posts:
261
Plugin Contributions:
0

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

Hi, Guys,

may I ask for your favor? may I know what is the rewrite rule for multi language site?

in the past only english was available on our site, and natually https://www.mysite.com goes to default language.
now we have new Spanish and Russian, as well as english, then they go to:
https://www.mysite.com/es/
https://www.mysite.com/ru/
https://www.mysite.com/en/
for SEO purpose.

now my questoin is how to rewrite https://www.mysite.com/en/**** to https://www.mysite.com/****, as they
are actually the same page. Also all our pages so far indexed by Google are start with https://www.mysite.com/

also, is it possible to rewrite https://www.mysite.com/?language=en to https://www.mysite.com/en/?

your suggestion would be highly appreciated.

31 Jan 2014, 15:20
#566
earthenware avatar

earthenware

New Zenner

Join Date:
Dec 2011
Posts:
44
Plugin Contributions:
0

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

This looks like a great addon. I installed it yesterday and everything worked perfectly first time. Very impressed.

However, when I re-built my PRODUCTS table today (a lot of products received different product_ids) I got some strange results. Clicking a product brought up a URL for another product, although the actual page was correct.

I fixed this by running "Reset SEO URLs Cache", so I assume that there was a cache of URLs for product_ids somewhere.

I don't want to have to do this on a regular basis so would disabling caching (i.e. changing "Enable SEO cache to save queries" to false) prevent this from happening in future? Would it have any other side-effects?

31 Jan 2014, 15:47
#567
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Earthenware:

This looks like a great addon. I installed it yesterday and everything worked perfectly first time. Very impressed.

However, when I re-built my PRODUCTS table today (a lot of products received different product_ids) I got some strange results. Clicking a product brought up a URL for another product, although the actual page was correct.

I fixed this by running "Reset SEO URLs Cache", so I assume that there was a cache of URLs for product_ids somewhere.

I don't want to have to do this on a regular basis so would disabling caching (i.e. changing "Enable SEO cache to save queries" to false) prevent this from happening in future? Would it have any other side-effects?

Hopefully you don't plan to rebuild your products table on a regular basis where the product IDs will change for your products.. If not then this should be a one-off occurrence for you.. Otherwise you will need to re-set the cache everytime you re-build the products table.

31 Jan 2014, 15:56
#568
earthenware avatar

earthenware

New Zenner

Join Date:
Dec 2011
Posts:
44
Plugin Contributions:
0

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

DivaVocals:

Hopefully you don't plan to rebuild your products table on a regular basis where the product IDs will change for your products.. If not then this should be a one-off occurrence for you.. Otherwise you will need to re-set the cache everytime you re-build the products table.So switching caching off won't save me having to do it manually?

31 Jan 2014, 16:42
#569
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Earthenware:

So switching caching off won't save me having to do it manually?

Of course it will.. My point was that it's really NOT a good practice to CONTINUALLY rebuild your products table which would result in product IDs for products changing.. Are you REALLY going to do this again??? If NOT then NO you can leave the cache setting alone.. I'm curious as to why you are planning to make rebuilding your products table a regular activity..

31 Jan 2014, 16:53
#570
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Okay so I have a site which Zen Cart is in a subfolder of a WordPress site.. WordPress has it's own .htaccess file as you know.. the readme instructions say:

  If you have an existing .htaccess file in the folder
  where you installed Zen Cart merge the new .htaccess
  file with the existing file (remember rules are matched
  in order, so any custom URL transformations or
  redirects should appear before the "Start Ultimate
  SEO URLs" block. Upload the .htaccess file to the
  folder where you installed Zen Cart.

My Zen Cart folder does NOT have a .htaccess file. And I got an error AS SOON as I uploaded the .htaccess file. I am assuming that the RIGHT way to do this is to merge my .htaccess with the .htaccess from this add-on.. Could use a hand with that.. Here's the WordPress .htaccess file contents..

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
31 Jan 2014, 16:53
#571
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]

Earthenware:

... I fixed this by running "Reset SEO URLs Cache", so I assume that there was a cache of URLs for product_ids somewhere.

I don't want to have to do this on a regular basis so would disabling caching (i.e. changing "Enable SEO cache to save queries" to false) prevent this from happening in future? ...
The better question is WHY do you feel you need to change around product_id's? What business purpose does changing an internal number used to identify a product within the Zen Cart software serve?

Best practice for a website (and e-commerce site) is to NOT change the product_id (or URLs unless they are 301'ed / canonical linked - which this module does for you based upon the product_id remaining the same).

Earthenware:

Clicking a product brought up a URL for another product, although the actual page was correct.
Changing the internal id used by Zen Cart will have this effect. This holds true for Zen Cart in general as well as all of the alternative URL generation tools. It affects far more than just the "URL" and the one issue you quickly identified.

For example (even when not using a module to generate alternative URLs): when customer logs into their account on the site, pulls up their invoice, and then clicks a link to see the product details... If one has changed the product a product_id points to, the customer is sent to a completely different product from the one purchased.

I could go on with other reasons / issues caused by re-assigning product_id's to different products, but there are plenty of articles / threads on the forums here and internet in general on the subject.

When adding new products it is almost always better to not manually edit the PRODUCTS table (and let a new product_id be assigned). If one needs to import from a spreadsheet, use a tool such as "ez-populate". The first time this module see's a new product_id it will generate the appropriate URL based upon the product title / category and save the URL in the cache.

If one no longer carries a product, simply turn it off in the admin interface - or - set the quantity to zero and add a big bold colored line indicating the product has been replaced with a newer / comparable product (with link). There are a few additional ways to handle products "no longer being sold", but such a discussion would be better suited for a new thread.

Earthenware:

... Would it have any other side-effects?
Yes. For every page load Zen Cart would need to rebuild the list of URLs for every URL appearing on the page (usually every category enabled in the database, every enabled EZ-Page, and any product URL showing on the page). This list basically includes every URL on the page including in the header, footer, and menus. The cache reduces the amount of processing time by saving a copy of the URL <--> product / category / ez-page mappings.

Of course if one is not on a server with limited CPU resources... The impact might be minimal... But on most shared and VPS hosting packages the CPU usage is limited and having the cache enabled will have a significant performance impact during peak website usage.

31 Jan 2014, 16:54
#572
earthenware avatar

earthenware

New Zenner

Join Date:
Dec 2011
Posts:
44
Plugin Contributions:
0

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

DivaVocals:

Of course it will.. My point was that it's really NOT a good practice to CONTINUALLY rebuild your products table which would result in product IDs for products changing.. Are you REALLY going to do this again??? If NOT then NO you can leave the cache setting alone.. I'm curious as to why you are planning to make rebuilding your products table a regular activity..I understand your point. The periodic need for rebuilding the PRODUCTS table is administrative. It's not something that I will need to do every day but it will come up now and again.

Regarding the association between products_name and products_id, I assume you are referring to the impact that changing them would have on search engines? I had considered this and my first attempt at re-writing URLs excluded the products_id altogether. That's when I learned that Zen Cart uses GET to transfer some parameters. Actually, it worked great until adding something to the shopping cart :laugh:

31 Jan 2014, 16:56
#573
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Earthenware:

I understand your point. **The periodic need for rebuilding the PRODUCTS table is administrative. It's not something that I will need to do every day but it will come up now and again.**What BUSINESS REASON would require this???????????

31 Jan 2014, 16:57
#574
earthenware avatar

earthenware

New Zenner

Join Date:
Dec 2011
Posts:
44
Plugin Contributions:
0

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

...and thanks for the reply lhungil.

It's a great add-on, by the way.

31 Jan 2014, 17:02
#575
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

DivaVocals:

Okay so I have a site which Zen Cart is in a subfolder of a WordPress site.. WordPress has it's own .htaccess file as you know.. the readme instructions say:

If you have an existing .htaccess file in the folder
where you installed Zen Cart merge the new .htaccess
file with the existing file (remember rules are matched
in order, so any custom URL transformations or
redirects should appear before the "Start Ultimate
SEO URLs" block. Upload the .htaccess file to the
folder where you installed Zen Cart.

> 
> My Zen Cart folder does NOT have a .htaccess file. And I got an error AS SOON as I uploaded the .htaccess file. I am assuming that the RIGHT way to do this is to merge my .htaccess with the .htaccess from this add-on.. Could use a hand with that.. Here's the WordPress .htaccess file contents..
> 
> ```
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

So I made progress the site comes up, and the product links look scorrect, but they all lead to "Page Not Found" errors. So here is my .htaccess file now:

# BEGIN WordPress
#<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteRule ^index\.php$ - [L]
# Send all requests not for the store to WordPress
RewriteCond %{REQUEST_URI} !^/shop/ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#</IfModule>

# END WordPress

###############################################################################
# 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 ^(.*)-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]

# 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]

Here's a sample product page:
http://eitestsite(dot)eyeitalia(dot)com/shop/-c-2_27/acqua-di-genova-eau-de-cologne-p-105

31 Jan 2014, 17:03
#576
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]

DivaVocals:

Okay so I have a site which Zen Cart is in a subfolder of a WordPress site.. WordPress has it's own .htaccess file as you know...
You need to exclude Zen Cart URLs from being rewritten and sent to WordPress instead of Zen Cart. Change /shop/ to be the folder where Zen Cart is installed.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^/shop/ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Then place the .htaccess file for USU in the Zen Cart folder and adjust the RewriteBase (for the .htaccess file in the Zen Cart folder).

NOTE: On some servers one may need to use !^shop/ instead of !^/shop/.

31 Jan 2014, 17:30
#577
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

lhungil:

You need to exclude Zen Cart URLs from being rewritten and sent to WordPress instead of Zen Cart. Change /shop/ to be the folder where Zen Cart is installed.

BEGIN WordPress

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_URI} !^/shop/ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>

END WordPress

> 
> Then place the .htaccess file for USU in the Zen Cart folder and adjust the RewriteBase (for the .htaccess file in the Zen Cart folder).
> 
> **NOTE:** On some servers one may need to use !^shop/ instead of !^/shop/.

BOOOYAH!!!!!! That did the trick!!! My very FIRST time using this module since you took over the care and feeding of it..:cool: This is LIGHTYEARS from what it was when I first looked at this add-on.. I think I'm in love!! :)
31 Jan 2014, 17:59
#578
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Not so fast.. My URLs look ODD.. NONE of them include the product or category names.

So because Numinix likes to add a modified YOUR_ADMIN/configuration.php file to ALL of it's modules, MANY of the USU configuration options DO NOT appear in the USU configuration.

I attempted to modify the USU installer to fix the issue, but I'm not sure it's solving the issue..

Here's the changes I made:

Lines 56-74:
From:

        'USU_VERSION' => array('configuration_value' => '\'' . $version . '\'', 'use_function' => '', 'set_function' => 'zen_cfg_select_option(array(\\\'' . $version . '\\\'),'),
        'SEO_ENABLED' => array('configuration_value' => 'false', 'use_function' => '', 'set_function' => 'zen_cfg_select_option(array(\\\'true\\\', \\\'false\\\'),'),
        'SEO_URL_CPATH' => array('configuration_value' => 'auto', 'use_function' => 'usu_check_cpath_option', 'set_function' => 'zen_cfg_select_option(array(\\\'enable-auto\\\', \\\'disable\\\'),'),
        'SEO_URL_END' => array('configuration_value' => '.html', 'use_function' => '', 'set_function' => ''),
        'SEO_URL_FORMAT' => array('configuration_value' => 'original', 'use_function' => 'usu_check_url_format_option', 'set_function' => 'zen_cfg_select_option(array(\\\'enable-original\\\', \\\'enable-parent\\\'),'),
        'SEO_URL_CATEGORY_DIR' => array('configuration_value' => 'short', 'use_function' => 'usu_check_category_dir_option', 'set_function' => 'zen_cfg_select_option(array(\\\'disable\\\', \\\'enable-short\\\', \\\'enable-full\\\'),'),
        'SEO_URLS_FILTER_PCRE' => array('configuration_value' => '', 'use_function' => '', 'set_function' => ''),
        'SEO_URLS_FILTER_CHARS' => array('configuration_value' => '', 'use_function' => '', 'set_function' => ''),
        'SEO_URLS_REMOVE_CHARS' => array('configuration_value' => 'punctuation', 'use_function' => 'usu_check_remove_chars_option', 'set_function' => 'zen_cfg_select_option(array(\\\'enable-non-alphanumerical\\\', \\\'enable-punctuation\\\'),'),
        'SEO_URLS_FILTER_SHORT_WORDS' => array('configuration_value' => '0', 'use_function' => '', 'set_function' => ''),
        'SEO_URLS_ONLY_IN' => array('configuration_value' => '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', 'use_function' => '', 'set_function' => ''),
        'SEO_REWRITE_TYPE' => array('configuration_value' => 'rewrite', 'use_function' => '', 'set_function' => 'zen_cfg_select_option(array(\\\'rewrite\\\'),'),
        'SEO_USE_REDIRECT' => array('configuration_value' => 'false', 'use_function' => '', 'set_function' => 'zen_cfg_select_option(array(\\\'true\\\', \\\'false\\\'),'),
        'SEO_USE_CACHE_GLOBAL' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\\\'enable\\\', \\\'disable\\\'),'),
        'SEO_USE_CACHE_PRODUCTS' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\\\'enable-products\\\', \\\'disable-products\\\'),'),
        'SEO_USE_CACHE_CATEGORIES' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\\\'enable-categories\\\', \\\'disable-categories\\\'),'),
        'SEO_USE_CACHE_MANUFACTURERS' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\\\'enable-manufacturers\\\', \\\'disable-manufacturers\\\'),'),
        'SEO_USE_CACHE_EZ_PAGES' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\\\'enable-ez_pages\\\', \\\'disable-ez_pages\\\'),'),
        'SEO_URLS_CACHE_RESET' => array('configuration_value' => 'false', 'use_function' => 'usu_reset_cache_data', 'set_function' => 'zen_cfg_select_option(array(\\\'true\\\', \\\'false\\\'),'),

To:

        'USU_VERSION' => array('configuration_value' => '\'' . $version . '\'', 'use_function' => '', 'set_function' => 'zen_cfg_select_option(array(\'' . $version . '\'),'),
        'SEO_ENABLED' => array('configuration_value' => 'false', 'use_function' => '', 'set_function' => 'zen_cfg_select_option(array(\'true\', \'false\'),'),
        'SEO_URL_CPATH' => array('configuration_value' => 'auto', 'use_function' => 'usu_check_cpath_option', 'set_function' => 'zen_cfg_select_option(array(\'enable-auto\', \'disable\'),'),
        'SEO_URL_END' => array('configuration_value' => '.html', 'use_function' => '', 'set_function' => ''),
        'SEO_URL_FORMAT' => array('configuration_value' => 'original', 'use_function' => 'usu_check_url_format_option', 'set_function' => 'zen_cfg_select_option(array(\'enable-original\', \'enable-parent\'),'),
        'SEO_URL_CATEGORY_DIR' => array('configuration_value' => 'short', 'use_function' => 'usu_check_category_dir_option', 'set_function' => 'zen_cfg_select_option(array(\'disable\', \'enable-short\', \'enable-full\'),'),
        'SEO_URLS_FILTER_PCRE' => array('configuration_value' => '', 'use_function' => '', 'set_function' => ''),
        'SEO_URLS_FILTER_CHARS' => array('configuration_value' => '', 'use_function' => '', 'set_function' => ''),
        'SEO_URLS_REMOVE_CHARS' => array('configuration_value' => 'punctuation', 'use_function' => 'usu_check_remove_chars_option', 'set_function' => 'zen_cfg_select_option(array(\'enable-non-alphanumerical\', \'enable-punctuation\'),'),
        'SEO_URLS_FILTER_SHORT_WORDS' => array('configuration_value' => '0', 'use_function' => '', 'set_function' => ''),
        'SEO_URLS_ONLY_IN' => array('configuration_value' => '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', 'use_function' => '', 'set_function' => ''),
        'SEO_REWRITE_TYPE' => array('configuration_value' => 'rewrite', 'use_function' => '', 'set_function' => 'zen_cfg_select_option(array(\'rewrite\'),'),
        'SEO_USE_REDIRECT' => array('configuration_value' => 'false', 'use_function' => '', 'set_function' => 'zen_cfg_select_option(array(\'true\', \'false\'),'),
        'SEO_USE_CACHE_GLOBAL' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\'enable\', \'disable\'),'),
        'SEO_USE_CACHE_PRODUCTS' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\'enable-products\', \'disable-products\'),'),
        'SEO_USE_CACHE_CATEGORIES' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\'enable-categories\', \'disable-categories\'),'),
        'SEO_USE_CACHE_MANUFACTURERS' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\'enable-manufacturers\', \'disable-manufacturers\'),'),
        'SEO_USE_CACHE_EZ_PAGES' => array('configuration_value' => 'true', 'use_function' => 'usu_check_cache_options', 'set_function' => 'zen_cfg_select_option(array(\'enable-ez_pages\', \'disable-ez_pages\'),'),
        'SEO_URLS_CACHE_RESET' => array('configuration_value' => 'false', 'use_function' => 'usu_reset_cache_data', 'set_function' => 'zen_cfg_select_option(array(\'true\', \'false\'),'),

Line 196
From:

            'set_function' => 'zen_cfg_select_option(array(\\\'' . $version . '\\\'),'

To:

            'set_function' => 'zen_cfg_select_option(array(\'' . $version . '\'),'
31 Jan 2014, 19:28
#579
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

lhungil:

Not in my test environments (PHP 5.3, 5.4.12 - I did have some other unrelated issues with 5.4 less than 5.4.12, 5.5)

This appears to be something other people are randomly encountering as well under PHP 5.4 (not specific to this module). You may want to drop down to PHP 5.3 at this time. The code you referenced is used in both the stock Zen Cart and this module. I know the Zen Cart team is actively looking into a solution.

So I am getting a memory exhausted issue in PHP 5.4 with this module.

[31-Jan-2014 12:21:36 America/Denver] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 2547580697 bytes) in /home4/mysite/public_html/shop/includes/classes/seo.url.php on line 201

The login pages goes blank after all the user name password stuff. In the log folder, I can find the above error log. Not sure what to do to resolve..

31 Jan 2014, 19:36
#580
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]

DivaVocals:

... So because Numinix likes to add a modified YOUR_ADMIN/configuration.php file to ALL of it's modules, MANY of the USU configuration options DO NOT appear in the USU configuration. ...
Yup, the modifications Numinix makes to the admin configuration.php file do not play well with 2.212.

DivaVocals:

So I am getting a memory exhausted issue in PHP 5.4 with this module.
Not directly related to this module (the code block is identical to the one used by the internal Zen Cart code).