Jump to content

zipicip

Members
  • Content count

    59
  • Joined

  • Last visited

Everything posted by zipicip

  1. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Robert, I use KissER Error Handling & Debugging and memcache as cache system for seo url. I saw that information page is not stored correctly. Every time it query for page name. Can u check please.
  2. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    I use Traditional Rewrite Seo Urls ( Requires mod_rewrite and RewriteRules added to .htaccess ) www.mysite.com/category-name-c-1.html I want to remove .html from url because I want to rewrite page navigation Example www.mysite.com/category-name-c-1.html?page=5 to www.mysite.com/category-name-c-1/page-5 Another example www.mysite.com/category-name-c-1.html?page=5&filter=some_filter to www.mysite.com/category-name-c-1/page-5/filter-name-ff-filterId Is there any fast way to change that ? Your code is very well structured but it will take me some time to understand it . Can u give me a hint want to look for (function name) or what to change Thanks
  3. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    I managed to resolve this by adding #htacess condition RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] Before # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.mysite.com = RewriteBase / # http://www.mysite.com/catalog/ = RewriteBase /catalog/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ # Change RewriteBase using the instructions above RewriteBase / RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
  4. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    #htacess condition RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] First page: http://www.mysite.com/product-page-p-7896.html Remove the www: http://mysite.com/product-page-p-7896.html -> http://www.mysite.com/product_info.php - 301 moved -> http://www.mysite.com/index.php?cPath= - 301 moved Can u help debugging this FWR MEDIA ?
  5. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Hello. In my httacess I have # To redirect all users to access the site WITH the 'www.' prefix, # (http://mysite.com/... will be redirected to http://www.mysite.com/...) # adapt and uncomment the following: RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] But when I try to acces a rewrite link of an manufacturer page Ex: http://www.mysite.com/manufacturer-m-1.html it redirects to www.mysite.com I guess maybe from 301 redirect .... ? Can u help ? Another example: http://www.mysite.com/product-name-p-1.html (product page) it redirects to http://www.mysite.com/index.php?cPath=
  6. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Hello. I have a question ..... ultimate_seo_urls5/includes/usu_general_functions This is the original function function usu_cleanse( $value ) { return preg_replace( '@[^a-z0-9_]@i', '', $value ); } I need [] because I use query array like gender[]=male&gender[]=female And also I need "-" character because for example http://www.domain.com/product_info.php?products_id=6770&utm_campain=zz-cc it redirect to http://www.domain.com/products-name-p-6770.html?utm_campain=zzcc and it removes the - character from the query It is safe to change function to? function usu_cleanse( $value ) { return preg_replace( '@[^a-z0-9_ \%\+\[\]-]@i', '', $value ); } I added [], -
  7. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    and ultimate_seo_urls5/includes/usu_general_functions change function usu_cleanse( $value ) { return preg_replace( '@[^a-z0-9_]@i', '', $value ); } into function usu_cleanse( $value ) { return preg_replace( '@[^a-z0-9_\[\]]@i', '', $value ); }
  8. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    I did a hack $custom_url_allow_array = http_build_query( $_GET ); $custom_url_allow_array = preg_replace('/%5B([0-9]+)%5D/', '[]', $custom_url_allow_array ); ultimate_seo_urls5/uri_modules search for http_build_query( $_GET ) Usu_Main::i()->setVar( 'request_querystring', $custom_url_allow_array );
  9. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    I found out that this is the function that translate url setVar( 'request_querystring', http_build_query( $_GET ) ) (search for all apperences in ultimate_seo_urls5 folder ) other alternative to keep []
  10. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    how can I allow something like this http://www.domain.com/adidas-m-10.html?form_arrray_variable[]=zz because it automated translated in http://www.domain.com/adidas-m-10.html?form_arrray_variable5B05D=zz
  11. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    OK. Its seams logic but the problem I am referring is on products_listing page. I guess that are the important links. How can I debug so I can test what is caching. I need to know your algorithm. (the main idea) Thanks a lot.
  12. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    I am using KissER Error Handling & Debugging with ULTIMATE Seo Urls 5 . As cache option I use sqllite. When I first reset cache Everything is working fine. I tested with kiss error and almost no query. But after an hour when I test again for every product I get this query (I guess this is form tep_href_link function) Number: 3 Time: 0.0003 Seconds. Query: SELECT pd.products_name, m.manufacturers_name, cd.categories_name, p.products_model, p2c.categories_id FROM products_description pd INNER JOIN products_to_categories p2c ON p2c.products_id = pd.products_id INNER JOIN products p ON pd.products_id = p.products_id LEFT JOIN manufacturers m ON m.manufacturers_id = p.manufacturers_id INNER JOIN categories_description cd ON p2c.categories_id = cd.categories_id AND cd.language_id='1' WHERE pd.products_id='6548' AND pd.language_id='1' LIMIT 1 ..... Until Number: 32 ..... I checked permissions and everything is fine. (file usu_cache.db is almost 1 mb)
  13. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Hello. I use this contribution with KissER Error Handling and Debugging. I selected sqlite as cache system. When I debugg to see query executed I get on every page Number: 1 Time: 0.0001 Seconds. Query: SELECT information_title FROM information WHERE information_id='10' AND language_id='1' LIMIT 1 (in header there is a link tep_href_link(FILENAME_INFORMATION, 'info_id=10')) but this link should be cached isn't it?
  14. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Thanks a lot. I didn't understand that class name class Xxx_Page_Module extends aPage_Modules must be as the same as file name for example: if file_name is : this_is_a_test.php class must be name This_Is_A_Test_Page_Module
  15. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Call to a member function retrieveDependencies() on a non-object Hello. I am trying to create a new module using class Usu_Template.php .
  16. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/***/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php on line 51 I have this error in my error log every time a cron job is executed on some new files, not standard oscommerce, for example my_new_file.php Can u help me debugging this ?
  17. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    I am sorry for trying to make u answer faster but I saw the answer above and I thought you skipped my post because you thought that was a dumb question and no need to answer. I really appreciate your work and time you spent here to answer all questions. I am trying only to understand some things. I saw now what bcmp represent but if you try to put a print_r to $details you will see that there is no product model index set in that array Array ( [products_name] => a name [manufacturers_name] => a manufacturer [categories_name] => a category [categories_id] => a category id )
  18. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Robert please answer my question . Is it correct what I wrote above ?
  19. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Ok I saw the answer with INNER JOIN replaced with LEFT JOIN (this doesn't remove the erorr). That helped me repairing my database. I was making a debugging and I went to line 183 $text_types = array( 'p' => $details['products_name'], 'c' => $details['categories_name'], 'm' => $details['products_model'] ); The problem echo '<pre>'; print_r ($details); And the result was Array ( [products_name] => a name [manufacturers_name] => a manufacturer [categories_name] => a category [categories_id] => a category id ) that line 'm' => $details['products_model'] ... should that be 'm' => $details['manufacturers_name'] there is no index with products model Sorry if bothering u
  20. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Thanks man. I was able to find out what products caused the problem with this query. Hope will help somebody. //Get all products_id from table description $description_products_id_array = array(); $sql_query = tep_db_query ("select products_id from products_description"); while ($sql = tep_db_fetch_array($sql_query)) { array_push ($description_products_id_array, $sql['products_id']); } $sql_string = implode (',', $description_products_id_array); //Check what products id not found in products description $sql_query = tep_db_query ("select products_id from products where products_id NOT IN (" . $sql_string . ")"); while ($sql = tep_db_fetch_array($sql_query)) { echo '<Br>Product: ' . $sql['products_id'] . " not found in products description"; } //Get all products_id from table products_to_categories $products_to_categories_products_id_array = array(); $sql_query = tep_db_query ("select products_id from products_to_categories"); while ($sql = tep_db_fetch_array($sql_query)) { array_push ($products_to_categories_products_id_array, $sql['products_id']); } $sql_string = implode (',', $products_to_categories_products_id_array); //Check what products id not found in products_to_categories $sql_query = tep_db_query ("select products_id from products where products_id NOT IN (" . $sql_string . ")"); while ($sql = tep_db_fetch_array($sql_query)) { echo '<Br>Product: ' . $sql['products_id'] . " not found in products products_to_categories"; }
  21. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Date / Time: 20-01-2011 10:11:29 Error Type: [E_NOTICE] Undefined index: products_model On line 183 File includes/modules/ultimate_seo_urls5/page_modules/product_info.php How can I resolve this not to be thrown. And one important thing: Force www.mysite.com/ when www.mysite.com/index.php this is a problem for those with affiliate links like www.mysite.com/index.php?affcode=zz it will redirect to www.mysite.com/ with no affiliate parameter send.
  22. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Ok. I understand. But sometimes let's say cpath is missing for example if a product is orphan (category is deleted). I found out another strange error in error log . The strange thing is that the error happens twice an hour at the same time xx:20 or xx:40 very strange. [18-Jan-2011 20:40:02] PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/*******/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php on line 51 [18-Jan-2011 21:20:01] PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/*******/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php on line 51 [18-Jan-2011 21:40:01] PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/*******/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php on line 51 [18-Jan-2011 22:20:02] PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/*******/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php on line 51 [18-Jan-2011 22:40:01] PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/*******/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php on line 51 [18-Jan-2011 23:20:01] PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/*******/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php on line 51 [18-Jan-2011 23:40:01] PHP Fatal error: Call to a member function retrieveDependencies() on a non-object in /home/*******/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php on line 51
  23. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    But here you don't treat null case. First you ask if is_numeric( $path) so no After you ask if contain _ so no And for null you only trigger an error when it should return (int)$path (which is 0 so sql will not return an error) protected function stripPathToLastNumber( $path ) { if ( is_numeric( $path ) ) { return (int)$path; } elseif ( false !== strpos( $path, '_' ) ) { $split = explode( '_', $path ); return (int)array_pop( $split ); }else{ return 0; //so no query error } trigger_error( __CLASS__ . '::' . __FUNCTION__ . ': Incorrect path value of ' . $path . ' presented', E_USER_WARNING ); }
  24. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Ok. I also discovered this Mon Jan 17 16:40:22 2011] [error] [client 80.239.242.78] PHP Fatal error: Call to a member function store() on a non-object in **/includes/modules/ultimate_seo_urls5/main/usu5.php on line 78, referer: ***advanced_search_result.php**** I can't reproduce exactly what is causing this. Can u help pls. Or how can I help debugging this.
  25. zipicip

    ULTIMATE Seo Urls 5 - by FWR Media

    Thanks man. That resolves the problem. I guess cast is very important. If u make an update to this contribution try to add cast to every products id, path, manufactures id, categories id. Thanks.
×