♥FWR Media Posted August 14, 2012 Author Share Posted August 14, 2012 (edited) We need to find why the standard osC wrapper doesn't return . .so let's try the osC original validator 132 $new_url = htmlspecialchars_decode( tep_href_link( Usu_Main::i()->getVar( 'filename' ), Usu_Main::i()->getVar( 'request_querystring' ) ) ); Add BELOW ( log $return ) $return = $new_url . '<br />' . Usu_Main::i()->hrefLink( Usu_Main::i()->getVar( 'filename' ), Usu_Main::i()->getVar( 'request_querystring' ) ); Edited August 14, 2012 by FWR Media Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
walmslei Posted August 14, 2012 Share Posted August 14, 2012 Right, we got to the bottom of this - Thanks to Rob for his help through the day and this evening! It transpires that we had no default language set in osCommerce, English was the only language present in the admin panel but it wasn't followed by (default) on the list of languages. As the contribution (and osCommerce) rely heavily on the language for the URL formation it would appear the lack of a default returns a null string - which leads the tep_href_link function to return a null result also (hence a 404 error). So, the solution in this case was just go to languages in the admin panel, click english, details, set as default and okay it. The USU5 contribution now works exactly as intended without any modifications. As we installed (this copy) of osCommerce via the Plesk Application Manager (in Plesk 11), I'll do a default install tomorrow to see if this is the default setting. -If- it is, I'll repost and update accordingly, as clearly it could have implications for this and other contributions which rely on the osC language framework. Quote Link to comment Share on other sites More sharing options...
sammedit Posted August 19, 2012 Share Posted August 19, 2012 Hey FWR, osC 2.3.3 changes the tep_redirect($url) function in includes/functions/general.php which was modified by you for this contribution. osC's changes are very similar to the changes you already had in place. There are a couple differences in code and I was wondering if you could take a look at it and let us know how to proceed with this code if we upgrade to 2.3.3. Thank you. FWR's code: * ULTIMATE Seo Urls 5 PRO by FWR Media * Redirect to another page or site */ function tep_redirect($url) { if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } if ( false !== strpos($url, '&') ){ $url = str_replace('&', '&', $url); } session_write_close(); header('Location: ' . $url); exit; } osC 2.3.3 code: function tep_redirect($url) { if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } if ( strpos($url, '&') !== false ) { $url = str_replace('&', '&', $url); } header('Location: ' . $url); tep_exit(); } Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 19, 2012 Author Share Posted August 19, 2012 @@sammedit Up to you really, I would always save the session before a header redirect. The change isn't needed for USU5 to work. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
jedimarv Posted August 23, 2012 Share Posted August 23, 2012 hello can i ask you something you know something about Ultimate Seo Urls 5 Pro multilanguage.which files do i need to change for the language dutch in this case. It works fine in english but when i add a language box dutch it missis a lot of lines. I got ap to the part where i got rit of a lot of errors, but when i look in the source of my shop it is not showing kewords or descriptions etc. So no meta name. Can you help me Thanks Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted August 23, 2012 Author Share Posted August 23, 2012 This was the old development thread .. see my sig for the support topic. USU5 is nothing to do with keywords or descriptions. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
fgwapo Posted September 13, 2012 Share Posted September 13, 2012 Hello, i have configured the seo urls 5 pro with the following: enable cache = false enable multi language = true uri format = rewrite the remaining configuration is default For quite sometime its running well. What bothers me is the setting will just automaticaly reset itself to default. What causes to make it reset to default? any help is highly appreciated Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 13, 2012 Author Share Posted September 13, 2012 @@fgwapo The only time this could happen is incorrect installation or manual DB manipulation. When USU5 installs it sets the following constants in the admin configuration: - $constants = array( 'USU5_RESET_CACHE', 'USU5_ENABLED', 'USU5_CACHE_ON', 'USU5_URLS_TYPE', 'USU5_CHAR_CONVERT_SET', 'USU5_FILTER_SHORT_WORDS', 'USU5_REMOVE_ALL_SPEC_CHARS', 'USU5_CACHE_DAYS', 'USU5_USE_W3C_VALID', 'USU5_ADD_CPATH_TO_PRODUCT_URLS', 'USU5_OUPUT_PERFORMANCE', 'USU5_ADD_CAT_PARENT', 'USU5_DEBUG_OUPUT_VARS', 'USU5_CACHE_SYSTEM', 'USU5_PRODUCTS_LINK_TEXT_ORDER', 'USU5_MULTI_LANGUAGE_SEO_SUPPORT' ); If any of those are not defined the script will reinstall. Equally in includes/application_top.php if the standard osCommerce code defining the configuration constants is not before the USU5 code then the required constants would not be present forcing a reinstall. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
fgwapo Posted September 13, 2012 Share Posted September 13, 2012 where are these constants located? (files) or tables Its driving me crazy. Search engines will penalized me for duplicate contents any help is highly appreciated Quote Link to comment Share on other sites More sharing options...
fgwapo Posted September 13, 2012 Share Posted September 13, 2012 I have successfuly installed the language pack spanish and french I am on the process of installing chinese language pack. My problem is it seems chinese characters in the url are not redirecting properly. my htaccess rewrite entry is RewriteRule ^(.*)-p-(.*).html$ product_info.php [NC,L,QSA] RewriteRule ^(.*)-c-(.*).html$ index.php [NC,L,QSA] any help is highly appreciated Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 13, 2012 Author Share Posted September 13, 2012 @@fgwapo The URL standards only allow ASCII characters therefore USU5 only supports ASCII characters in the URI Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 13, 2012 Author Share Posted September 13, 2012 where are these constants located? (files) or tables Its driving me crazy. Search engines will penalized me for duplicate contents any help is highly appreciated The constants are in the USU5 files initially but they are entered into the database configuration table on install. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
fgwapo Posted September 13, 2012 Share Posted September 13, 2012 is it possible to convert any none URL standards into hex code form ex. %E9 and so on. Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted September 13, 2012 Author Share Posted September 13, 2012 @@fgwapo USU5 supports the RFC recomendation: - ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;= It does not support % encoded hexadecimals. Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
fgwapo Posted September 13, 2012 Share Posted September 13, 2012 Hello, How do i setup so that the link for multi language will be like this espanol http://www.mydomain.com/es/english_category.html french http://www.mydomain.com/fr/english_category.html instead using the translated category/products name i will use the default language english to be used in urls? any help is highly appreciated Quote Link to comment Share on other sites More sharing options...
fgwapo Posted September 13, 2012 Share Posted September 13, 2012 Hello, how do i implement if there are no conversion pack for that language, the urls will use the default english language names to be used in url. ex http://www.mydomain.com/ch/english_categoryname.html http://www.mydomain.com/ja/english_productname.html I think this is the best workaround to implement languages for japanese, korean and chinese any help is highly appreciated fgwapo Quote Link to comment Share on other sites More sharing options...
owan Posted March 22, 2013 Share Posted March 22, 2013 Hi Robert ,I very like this contribution, when i find it before,I want to codeing some contribution like this by my self, multi-language Urls Seo by osc or creloaded. So I searching about oscommerce SEO urls,then i found your contribution,I am so happy to see it that is what I need.I am download it and testing it on oscommerce ,it working so perfect. but for my histroy reason,i using the creloaded as my shop about 6 year ago,now my website grow up,but only the seo no good by support multi-language. I am not good at PHP,but i very like this contribution,So i install it on Creloaded,and anything see good,but only when i click the link. it can't direct to correct page. click categories link ,the url changed and do direct action ,but only direct to home page.when i clink the product link and article link,it show me "not found product" and "not found article". I make the configure Turn variable reporting on to True in admin section. I am still testing now,i think the problem is the requst_querystring can't get the value,so it can't direct to correct page,but i can't find the way to solve issue about requst_querystring is null. I leave the debug array in below,if you know,i hope you can help me,thank you so much. Array ( [languages_id] => 1 [request_type] => NONSSL [session_started] => 1 [sid] => osCsid=b10e19623a513af3c5aa58b7b4648ab9 [language] => english [filename] => /songhuacn/index.php [request_querystring] => [original_request_uri] => /songhuacn/teachers-flowers-c-52_108.html [request_uri] => songhuacn/teachers-flowers-c-52_108.html [real_path] => D:\AppServ\www\songhuacn/ [usu_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/ [db_install_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/database_install/ [abstracts_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/abstracts/ [includes_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/includes/ [cache_system_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/cache_system/ [interfaces_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/interfaces/ [page_modules_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/page_modules/ [uri_modules_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/uri_modules/ [cache_path] => D:\AppServ\www\songhuacn/includes/modules/ultimate_seo_urls5/cache/ [base_url] => http://localhost/songhuacn/ [base_url_ssl] => [config_settings] => Array ( [0] => USU5_RESET_CACHE [1] => USU5_ENABLED [2] => USU5_CACHE_ON [3] => USU5_URLS_TYPE [4] => USU5_CHAR_CONVERT_SET [5] => USU5_FILTER_SHORT_WORDS [6] => USU5_REMOVE_ALL_SPEC_CHARS [7] => USU5_CACHE_DAYS [8] => USU5_USE_W3C_VALID [9] => USU5_ADD_CPATH_TO_PRODUCT_URLS [10] => USU5_OUPUT_PERFORMANCE [11] => USU5_ADD_CAT_PARENT [12] => USU5_DEBUG_OUPUT_VARS [13] => USU5_CACHE_SYSTEM [14] => USU5_PRODUCTS_LINK_TEXT_ORDER [15] => USU5_MULTI_LANGUAGE_SEO_SUPPORT ) [enabled] => true [catalog_languages] => Array ( [cn] => Array ( [id] => 2 [name] => schinese [image] => icon.gif [directory] => schinese ) [en] => Array ( [id] => 1 [name] => English [image] => icon.gif [directory] => english ) ) [current_language] => Array ( [id] => 1 [name] => English [image] => icon.gif [directory] => english [code] => en ) [character_conversion] => [page_modules] => Array ( [articles] => Articles_Page_Module Object ( [dependencies:protected] => Array ( [tPath] => Array ( [marker] => -t- [query] => SELECT topics_name FROM :TABLE_TOPICS_DESCRIPTION WHERE topics_id=':tPath' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_TOPICS_DESCRIPTION [1] => :tPath [2] => :languages_id ) ) [authors_id] => Array ( [marker] => -au- [query] => SELECT authors_name FROM :TABLE_AUTHORS WHERE authors_id=':authors_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_AUTHORS [1] => :authors_id ) ) ) [key:protected] => tPath [cache_name_builder:protected] => Array ( [tPath] => 1 [authors_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [article_info] => Article_Info_Page_Module Object ( [dependencies:protected] => Array ( [articles_id] => Array ( [marker] => -a- [query] => SELECT articles_name FROM :TABLE_ARTICLES_DESCRIPTION WHERE articles_id=':articles_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_ARTICLES_DESCRIPTION [1] => :articles_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [articles_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [index] => Index_Page_Module Object ( [dependencies:protected] => Array ( [cPath] => Array ( [marker] => -c- [query] => SELECT cd2.categories_name AS pName, cd.categories_name AS cName FROM :TABLE_CATEGORIES c LEFT JOIN :TABLE_CATEGORIES_DESCRIPTION cd2 ON c.parent_id = cd2.categories_id AND c.parent_id = cd2.categories_id AND cd2.language_id = :languages_id, :TABLE_CATEGORIES_DESCRIPTION cd WHERE c.categories_id = cd.categories_id AND c.categories_id = :cid AND cd.language_id = :languages_id [to_replace] => Array ( [0] => :TABLE_CATEGORIES_DESCRIPTION [1] => :TABLE_CATEGORIES [2] => :languages_id [3] => :cid ) ) [manufacturers_id] => Array ( [marker] => -m- [query] => SELECT manufacturers_name FROM :TABLE_MANUFACTURERS WHERE manufacturers_id=':manufacturers_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_MANUFACTURERS [1] => :manufacturers_id ) ) ) [key:protected] => cPath [cache_name_builder:protected] => Array ( [cPath] => 1 [manufacturers_id] => 1 => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [information] => Information_Page_Module Object ( [dependencies:protected] => Array ( [info_id] => Array ( [marker] => -i- [query] => SELECT information_title FROM :TABLE_INFORMATION WHERE information_id=':info_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_INFORMATION [1] => :info_id [2] => :languages_id ) ) ) [key:protected] => info_id [cache_name_builder:protected] => Array ( [info_id] => 1 ) [urlInitial:protected] => http://localhost/songhuacn/ [parameters:protected] => Array ( [0] => info_id=22 ) [add_session_id:protected] => 1 [_sid:protected] => osCsid=b10e19623a513af3c5aa58b7b4648ab9 [cache_name:protected] => [query:protected] => SELECT information_title FROM information WHERE information_id='22' AND language_id='1' LIMIT 1 [keys_index:protected] => Array ( [info_id] => 22 ) [page:protected] => information.php [extract:private] => Array ( [0] => info_id ) ) [links] => Links_Page_Module Object ( [dependencies:protected] => Array ( [lPath] => Array ( [marker] => -links- [query] => SELECT link_categories_name FROM :TABLE_LINK_CATEGORIES_DESCRIPTION WHERE link_categories_id=':lPath' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_LINK_CATEGORIES_DESCRIPTION [1] => :lPath [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [lPath] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [newsdesk_index] => Newsdesk_Index_Page_Module Object ( [dependencies:protected] => Array ( [newspath] => Array ( [marker] => -nc- [query] => SELECT categories_name FROM :TABLE_NEWSDESK_CATEGORIES_DESCRIPTION WHERE categories_id=':newspath' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_NEWSDESK_CATEGORIES_DESCRIPTION [1] => :newspath [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [newspath] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [newsdesk_info] => Newsdesk_Info_Page_Module Object ( [dependencies:protected] => Array ( [newsdesk_id] => Array ( [marker] => -n- [query] => SELECT newsdesk_article_name FROM :TABLE_NEWSDESK_DESCRIPTION WHERE newsdesk_id=':newsdesk_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_NEWSDESK_DESCRIPTION [1] => :newsdesk_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [newsdesk_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [newsdesk_reviews_article] => Newsdesk_Reviews_Article_Page_Module Object ( [dependencies:protected] => Array ( [newsdesk_id] => Array ( [marker] => -nra- [query] => SELECT newsdesk_article_name FROM :TABLE_NEWSDESK_DESCRIPTION WHERE newsdesk_id=':newsdesk_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_NEWSDESK_DESCRIPTION [1] => :newsdesk_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [newsdesk_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [newsdesk_reviews_info] => Newsdesk_Reviews_Info_Page_Module Object ( [dependencies:protected] => Array ( [reviews_id] => Array ( [marker] => -nri- [query] => SELECT newsdesk_article_name FROM :TABLE_NEWSDESK_DESCRIPTION WHERE newsdesk_id=':reviews_id' AND language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_NEWSDESK_DESCRIPTION [1] => :reviews_id [2] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [reviews_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [product_info] => Product_Info_Page_Module Object ( [dependencies:protected] => Array ( [products_id] => Array ( [marker] => -p- [query] => SELECT pd.products_name, m.manufacturers_name, cd.categories_name, p.products_model, p2c.categories_id FROM :TABLE_PRODUCTS_DESCRIPTION pd INNER JOIN :TABLE_PRODUCTS_TO_CATEGORIES p2c ON p2c.products_id = pd.products_id INNER JOIN :TABLE_PRODUCTS p ON pd.products_id = p.products_id LEFT JOIN :TABLE_MANUFACTURERS m ON m.manufacturers_id = p.manufacturers_id INNER JOIN :TABLE_CATEGORIES_DESCRIPTION cd ON p2c.categories_id = cd.categories_id AND cd.language_id=':languages_id' WHERE pd.products_id=':pid' AND pd.language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_PRODUCTS_DESCRIPTION [1] => :TABLE_PRODUCTS_TO_CATEGORIES [2] => :TABLE_PRODUCTS [3] => :TABLE_MANUFACTURERS [4] => :TABLE_CATEGORIES_DESCRIPTION [5] => :languages_id [6] => :pid ) ) ) [key:protected] => products_id [cache_name_builder:protected] => Array ( [products_id] => 1 => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [product_reviews] => Product_Reviews_Page_Module Object ( [dependencies:protected] => Array ( [products_id] => Array ( [marker] => -pr- [query] => SELECT pd.products_name FROM :TABLE_PRODUCTS_DESCRIPTION pd INNER JOIN :TABLE_PRODUCTS p ON pd.products_id = p.products_id WHERE pd.products_id=':pid' AND pd.language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_PRODUCTS_DESCRIPTION [1] => :TABLE_PRODUCTS [2] => :pid [3] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [products_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) [product_reviews_info] => Product_Reviews_Info_Page_Module Object ( [dependencies:protected] => Array ( [products_id] => Array ( [marker] => -pri- [query] => SELECT pd.products_name FROM :TABLE_PRODUCTS_DESCRIPTION pd INNER JOIN :TABLE_PRODUCTS p ON pd.products_id = p.products_id WHERE pd.products_id=':pid' AND pd.language_id=':languages_id' LIMIT 1 [to_replace] => Array ( [0] => :TABLE_PRODUCTS_DESCRIPTION [1] => :TABLE_PRODUCTS [2] => :pid [3] => :languages_id ) ) ) [key:protected] => [cache_name_builder:protected] => Array ( [products_id] => 1 [reviews_id] => 1 ) [urlInitial:protected] => [parameters:protected] => Array ( ) [add_session_id:protected] => [_sid:protected] => [cache_name:protected] => [query:protected] => [keys_index:protected] => Array ( ) [page:protected] => [extract:private] => ) ) [uri_modules] => Array ( [osc_experimental] => Osc_Experimental_Uri_Module Object ( ) [path_rewrite] => Path_Rewrite_Uri_Module Object ( ) [path_standard] => Path_Standard_Uri_Module Object ( ) [rewrite] => Rewrite_Uri_Module Object ( ) [standard] => Standard_Uri_Module Object ( ) ) [cache] => Sqlite_Cache_Module Object ( [extract_query] => SELECT * FROM usu_cache WHERE cache_name = ':cache_name' [insert_query:private] => INSERT INTO usu_cache (cache_name, cache_data, cache_date) VALUES (':cache_name', ':cache_data', ':cache_date') [insert:private] => ) [registry] => Data_Registry Object ( [vars:private] => Array ( [cPath] => Array ( [_105] => Array ( [cName] => Qixi Valentines Day ) [52] => Array ( [cName] => Special Festival ) [52_105] => Array ( [cName] => Qixi Valentines Day ) [52_106] => Array ( [cName] => Chinese New Year ) [52_108] => Array ( [cName] => Teachers Day Flowers ) [52_53] => Array ( [cName] => XOXO Roses ) [52_93] => Array ( [cName] => Best of the Best ) [52_104] => Array ( [cName] => Mothers Day Flowers ) [52_107] => Array ( [cName] => Mid-autumn Gifts ) [52_110] => Array ( [cName] => Womens Day Flowers ) [52_131] => Array ( [cName] => Fathers Day Flowers ) [52_109] => Array ( [cName] => Christmas Hampers ) [52_132] => Array ( [cName] => Valentines Day ) [22] => Array ( [cName] => By Occasion ) [22_36] => Array ( [cName] => Birthday ) [22_39] => Array ( [cName] => Love ) [22_37] => Array ( [cName] => Opening Stands ) [22_35] => Array ( [cName] => New Baby ) [22_38] => Array ( [cName] => Get Well ) [22_118] => Array ( [cName] => Thank You ) [22_119] => Array ( [cName] => Anniversary Flowers ) [22_120] => Array ( [cName] => I am Sorry ) [22_116] => Array ( [cName] => Wedding ) [22_40] => Array ( [cName] => Sympathy ) [65] => Array ( [cName] => Gourmet Baskets ) [65_100] => Array ( [cName] => New Year Hampers ) [65_67] => Array ( [cName] => Fruit Baskets ) [65_75] => Array ( [cName] => Chocolate Baskets ) [65_74] => Array ( [cName] => Wine Baskets ) [65_117] => Array ( [cName] => Birthday Cake ) [24] => Array ( [cName] => By Variety ) [24_47] => Array ( [cName] => Roses ) [24_49] => Array ( [cName] => Carnation ) [24_44] => Array ( [cName] => Gerberas ) [24_48] => Array ( [cName] => Tulips ) [24_46] => Array ( [cName] => Calla Lily ) [24_45] => Array ( [cName] => Lilies ) [24_43] => Array ( [cName] => Anthurium ) [24_42] => Array ( [cName] => Potted Plant ) [24_111] => Array ( [cName] => 11 Roses ) [24_115] => Array ( [cName] => 99 Roses ) [24_112] => Array ( [cName] => 24 Roses ) [24_113] => Array ( [cName] => 33 Roses ) [24_114] => Array ( [cName] => 48 roses ) [21] => Array ( [cName] => By Color ) [21_28] => Array ( [cName] => Orange ) [21_29] => Array ( [cName] => Pink ) [21_27] => Array ( [cName] => Rainbow ) [21_30] => Array ( [cName] => Red ) [21_31] => Array ( [cName] => Violet ) [21_34] => Array ( [cName] => Violet and White ) [21_32] => Array ( [cName] => White ) [21_33] => Array ( [cName] => Yellow ) [26] => Array ( [cName] => By People ) [26_54] => Array ( [cName] => Lovers ) [26_88] => Array ( [cName] => Firends ) [26_87] => Array ( [cName] => Parents ) [26_90] => Array ( [cName] => Teacher ) [26_89] => Array ( [cName] => A Patient ) [26_91] => Array ( [cName] => Clients ) [26_92] => Array ( [cName] => New Baby ) [121] => Array ( [cName] => Oversea Delivery ) [121_122] => Array ( [cName] => USA ) [121_123] => Array ( [cName] => UK ) [121_124] => Array ( [cName] => Canada Florists ) [121_125] => Array ( [cName] => Australia Florists ) [121_126] => Array ( [cName] => Singapore ) [121_127] => Array ( [cName] => Japan Florists ) [121_128] => Array ( [cName] => Hongkong-Macau ) [121_129] => Array ( [cName] => Taiwan Florist ) [121_130] => Array ( [cName] => Other Country ) [109] => Array ( [cName] => Christmas Hampers ) [106] => Array ( [cName] => Chinese New Year ) [105] => Array ( [cName] => Qixi Valentines Day ) [107] => Array ( [cName] => Mid-autumn Gifts ) [36] => Array ( [cName] => Birthday ) [37] => Array ( [cName] => Opening Stands ) [39] => Array ( [cName] => Love ) [35] => Array ( [cName] => New Baby ) [38] => Array ( [cName] => Get Well ) [116] => Array ( [cName] => Wedding ) [40] => Array ( [cName] => Sympathy ) [100] => Array ( [cName] => New Year Hampers ) [67] => Array ( [cName] => Fruit Baskets ) [75] => Array ( [cName] => Chocolate Baskets ) [74] => Array ( [cName] => Wine Baskets ) [108] => Array ( [cName] => Teachers Day Flowers ) [53] => Array ( [cName] => XOXO Roses ) [110] => Array ( [cName] => Womens Day Flowers ) [104] => Array ( [cName] => Mothers Day Flowers ) [111] => Array ( [cName] => 11 Roses ) [113] => Array ( [cName] => 33 Roses ) [115] => Array ( [cName] => 99 Roses ) ) [products_id] => Array ( [983] => Array ( [products_name] => You Are Nice [categories_name] => Red [categories_id] => 30 ) [778] => Array ( [products_name] => I love you [categories_name] => Birthday [categories_id] => 36 ) [825] => Array ( [products_name] => Christmas Fruit [categories_name] => Fruit Baskets [products_model] => CMS-10 [categories_id] => 67 ) [442] => Array ( [products_name] => My Heart Will Go On [categories_name] => Birthday [categories_id] => 36 ) [887] => Array ( [products_name] => Alway Be With You [categories_name] => Qixi Valentines Day [categories_id] => 105 ) [880] => Array ( [products_name] => Burn Heart [categories_name] => Qixi Valentines Day [categories_id] => 105 ) [984] => Array ( [products_name] => Only You [categories_name] => Red [categories_id] => 30 ) [771] => Array ( [products_name] => Thanks my mama [categories_name] => Mothers Day Flowers [products_model] => YXQ-002 [categories_id] => 104 ) [1026] => Array ( [products_name] => Tianjin Chocolate Basket [categories_name] => Christmas Hampers [products_model] => Tianjin-WINE-01 [categories_id] => 109 ) [889] => Array ( [products_name] => DOVE Chocolate [categories_name] => Chocolate Baskets [categories_id] => 75 ) ) [manufacturers_id] => Array ( [4] => Array ( [manufacturers_name] => CQ-重庆花店(Chongqing Florist) ) [1] => Array ( [manufacturers_name] => TJ-天津花店(Tianjin Florist) ) [20] => Array ( [manufacturers_name] => QD-青岛花店(Qingdao Florist) ) [8] => Array ( [manufacturers_name] => DL-大连花店(Dalian Florist) ) [2] => Array ( [manufacturers_name] => NJ-南京花店(Nanjing Florist) ) [27] => Array ( [manufacturers_name] => SZ-苏州花店(Suzhou Florist) ) [3] => Array ( [manufacturers_name] => HZ-杭州花店(Hangzhou Florist) ) [21] => Array ( [manufacturers_name] => CD-成都花店(Chengdu Florist) ) [33] => Array ( [manufacturers_name] => XM-厦门花店(Xiamen Florist) ) [37] => Array ( [manufacturers_name] => NN-南宁花店(Nanning Florist) ) [46] => Array ( [manufacturers_name] => SY-三亚花店(Sanya Florist) ) [7] => Array ( [manufacturers_name] => SY-沈阳花店(Shenyang Florist) ) [17] => Array ( [manufacturers_name] => XA-西安花店(Xian Florist) ) [23] => Array ( [manufacturers_name] => KM-昆明花店(Kunming Florist) ) [29] => Array ( [manufacturers_name] => WZ-温州花店(Wenzhou Florist) ) [25] => Array ( [manufacturers_name] => WH-武汉花店(Wuhan Florist) ) [40] => Array ( [manufacturers_name] => ZH-珠海花店(Zhuhai Florist) ) [26] => Array ( [manufacturers_name] => CS-长沙花店(Changsha Florist) ) [19] => Array ( [manufacturers_name] => JN-济南花店(Jinan Florist) ) [24] => Array ( [manufacturers_name] => HF-合肥花店(Hefei Florist) ) [30] => Array ( [manufacturers_name] => ZZ-郑州花店(Zhengzhou Florist) ) [11] => Array ( [manufacturers_name] => LZ-兰州花店(Lanzhou Floirst) ) [12] => Array ( [manufacturers_name] => YC-银川花店(Yinchuan Florist) ) [13] => Array ( [manufacturers_name] => XN-西宁花店(Xining Florist) ) [14] => Array ( [manufacturers_name] => WLMQ-乌鲁木齐花店(Wulumuqi Florist) ) [15] => Array ( [manufacturers_name] => LS-拉萨花店(Lasa Florist) ) [22] => Array ( [manufacturers_name] => GY-贵阳花店(Guiyang Florist) ) [32] => Array ( [manufacturers_name] => FZ-福州花店(Fuzhou Florist) ) [34] => Array ( [manufacturers_name] => NC-南昌花店(Nanchang Florist) ) [45] => Array ( [manufacturers_name] => HK-海口花店(Haikou Floirst) ) [41] => Array ( [manufacturers_name] => ST-汕头花店(Shantou Florist) ) [5] => Array ( [manufacturers_name] => HEB-哈尔滨花店(Haerbin Florist) ) [6] => Array ( [manufacturers_name] => CC-长春花店(Changchun Florist) ) [9] => Array ( [manufacturers_name] => BT-包头花店(Baotou Florist) ) [10] => Array ( [manufacturers_name] => HHHT-呼和浩特花店(Huhehaote Florist) ) [16] => Array ( [manufacturers_name] => SJZ-石家庄花店(Shijiazhuang Florist) ) [18] => Array ( [manufacturers_name] => TY-太原花店(Taiyuan Florist) ) ) ) ) [initiated] => 1 [page_not_found] => ) Quote Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2013 Share Posted May 4, 2013 Robert, McAfee PCI services discovered a severe PCI concern that I believe is rooted in this modification. When a page is accessed by modifying the link within the browser to include new parameters such that it contains a space the page automatically redirects to the homepage. Behind the scenes, the server throws a fatal error and redirects the page (302) to the homepage before the error screen is actually seen. URL: http://www.13thgreen.com/shop-by-size-c-148.html?osCsid=x ls- RESPONSE: <br /> <b>Fatal error</b>: Call to a member function store() on a non-object in <b>/home/cnr/public_html/includes/modules/ultimate_seo_urls5/main/usu5.php</b> on line <b>78</b><br /> Thoughts? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 5, 2013 Share Posted May 5, 2013 It is not a good idea to hack the code as there is no current issue with the code base. It looks like there is a quirk in your code that is causing the registry to destruct before the Usu_Main class. The following should eradicate the error you are seeing but it should not be necessary .. I can't however debug your local code. open the following file: - catalog/includes/modules/ultimate_seo_urls5/main/usu5.php Replace the entire __destruct() method with the following: - /** * Class destructor * * Stores the cache and outputs and performance data requested * * @[member='access'] public * @[member='Return'] void */ public function __destruct() { if ( defined( 'USU5_ENABLED' ) && ( USU5_ENABLED == 'true' ) ) { $registry = $this->getVar( 'registry' ); $cache = $this->getVar( 'cache' ); if ( $registry instanceof Data_Registry && $cache instanceof iCache_System ) { $cache->store( $registry->store() ); } if ( defined( 'USU5_OUPUT_PERFORMANCE' ) && ( USU5_OUPUT_PERFORMANCE == 'true' ) ) { performance(); } if ( defined( 'USU5_DEBUG_OUPUT_VARS' ) && ( USU5_DEBUG_OUPUT_VARS == 'true' ) ) { usu5_show_vars( $this->vars ); } } } // end destructor Searching the forum for a second time I came upon this fix for the security problem McAfee discovered. After implementing the new code I no longer see errors in my error log. PCI compliance is is very important. I hope this helps other people. McAfee and myself were able to recreate the problem at will anytime with relative ease. McAfee tested this query string to produce the error. osCsid=x%20 %20ls%20-l%20= %20dir%20= I was able to produce the same error with this query string "osCsid=x ls-". I hope this helps! Quote Link to comment Share on other sites More sharing options...
CosmicA Posted June 3, 2013 Share Posted June 3, 2013 Hi there. Just been testing this module. It's great. There's one thing I would like to edit if possible, and pardon me if this question has been answered already in the forum.. I couldn't find it anywhere. Your 'filter short words' option doesn't allow me to display say, http://www.mysite.com/mycategory/fantastic-t-shirt ...etc It's filtered to.. http://www.mysite.com/mycategory/fantastic-shirt ....etc I imagine this might be a problem for t-shirt sites etc. Or will this not matter to search engines? Where can I edit this to ignore certain letters from filtering? Quote Link to comment Share on other sites More sharing options...
CosmicA Posted June 3, 2013 Share Posted June 3, 2013 Hi there. Just been testing this module. It's great. There's one thing I would like to edit if possible, and pardon me if this question has been answered already in the forum.. I couldn't find it anywhere. Your 'filter short words' option doesn't allow me to display say, http://www.mysite.com/mycategory/fantastic-t-shirt ...etc It's filtered to.. http://www.mysite.com/mycategory/fantastic-shirt ....etc I imagine this might be a problem for t-shirt sites etc. Or will this not matter to search engines? Where can I edit this to ignore certain letters from filtering? I just found some info in this thread a couple of pages back here - http://www.oscommerce.com/forums/topic/349814-ultimate-seo-urls-5-pro/page__st__460 But still wasn't to remedy sorting out the issue 't'. I set 'all non-alphanumeric characters' to false, no cigar. But I'm probably worrying over nothing anyway. Quote Link to comment Share on other sites More sharing options...
-=Rain=- Posted June 30, 2013 Share Posted June 30, 2013 Hi First, I want to thank you for the wonderful module. But I have a problem when working on the subdomain. In the first, the module does not work if the main page is not the index.php (I need the name such shop.php or store.php) If change the name to index.php, the links are converted, but when you go to them there is a permanent redirect (link to the converted url), eventually redirect error. In what may be the problem? P.S. .htaccess modified, the catalog of subdomain is correct. Quote Link to comment Share on other sites More sharing options...
kpreddy Posted July 1, 2013 Share Posted July 1, 2013 in Ultimate Seo Urls 5 Pro how to remove numerical values in urls plz reply thanks in advance Quote Link to comment Share on other sites More sharing options...
MountainMan Posted October 9, 2013 Share Posted October 9, 2013 I rebuilt my website website using OSC 2.3 on a test domain. SEO 5 works fine. Now moving the rebuilt OSC to the live website. The links SEO 5 creates are not working, I get 404 messages. I can turn off SEO 5 in OSC Admin, and the non-SEO links work as expected. Could use any hints.....! Thx Quote Link to comment Share on other sites More sharing options...
MountainMan Posted October 10, 2013 Share Posted October 10, 2013 Fixed my issue above. What was missing was the Rewrites in .htaccess Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.