Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by harperk

  1. harperk

    ULTIMATE Seo Urls 5 - by FWR Media

    Rob, SUCCESS! after your expert help made it possible to complete the 'base install'. Just to clarify in case any other users want to upgrade their OS 2.3 version to USU5 the changes were simple as you stated and given below.... Only 2 file changes.. catalog/includes/application_top.php Find // set php_self in the local scope $PHP_SELF = (((strlen(ini_get('cgi.fix_pathinfo')) > 0) && ((bool)ini_get('cgi.fix_pathinfo') == false)) || !isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) ? basename($HTTP_SERVER_VARS['PHP_SELF']) : basename($HTTP_SERVER_VARS['SCRIPT_NAME']); replace with code as per install instructions... /** * USU5 function to return the base filename */ function usu5_base_filename() { // Probably won't get past SCRIPT_NAME unless this is reporting cgi location $base = new ArrayIterator( array( 'SCRIPT_NAME', 'PHP_SELF', 'REQUEST_URI', 'ORIG_PATH_INFO', 'HTTP_X_ORIGINAL_URL', 'HTTP_X_REWRITE_URL' ) ); while ( $base->valid() ) { if ( array_key_exists( $base->current(), $_SERVER ) && !empty( $_SERVER[$base->current()] ) ) { if ( false !== strpos( $_SERVER[$base->current()], '.php' ) ) { preg_match( '@[a-z0-9_]+\.php@i', $_SERVER[$base->current()], $matches ); if ( is_array( $matches ) && ( array_key_exists( 0, $matches ) ) && ( substr( $matches[0], -4, 4 ) == '.php' ) && ( is_readable( $matches[0] ) || ( false !== strpos( $_SERVER[$base->current()], 'ext/modules/' ) ) ) ) { return $matches[0]; } } } $base->next(); } // Some odd server set ups return / for SCRIPT_NAME and PHP_SELF when accessed as mysite.com (no index.php) where they usually return /index.php if ( ( $_SERVER['SCRIPT_NAME'] == '/' ) || ( $_SERVER['PHP_SELF'] == '/' ) ) { return 'index.php'; } trigger_error( 'USU5 could not find a valid base filename, please inform the developer.', E_USER_WARNING ); } // End function // set php_self in the local scope $PHP_SELF = usu5_base_filename(); catalog/includes/modules/product_listing.php Replace... tep_get_all_get_params(array('action')) with... tep_get_all_get_params(array('action', 'products_id')) ALL other files and instructions are exactly as per original instructions to get a BASE INSTALL Thanks Rob!
  2. harperk

    ULTIMATE Seo Urls 5 - by FWR Media

    OK thanks Rob, I will try as you have stated. If I can not get this to work I will wait for USU5 PRO! Many thanks for your kind help. Cheers!
  3. harperk

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi Rob, Just checking the files again ready to do a manual install on a clean OS install and found some differences to what I need to change the file from to what I have...basically can not find the fcode to 'replace'. Here are the files... catalog/includes/application_top.php 2- Find ... // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; My file in OS 2.3 is // set php_self in the local scope $PHP_SELF = (((strlen(ini_get('cgi.fix_pathinfo')) > 0) && ((bool)ini_get('cgi.fix_pathinfo') == false)) || !isset($HTTP_SERVER_VARS['SCRIPT_NAME'])) ? basename($HTTP_SERVER_VARS['PHP_SELF']) : basename($HTTP_SERVER_VARS['SCRIPT_NAME']); catalog/includes/modules/product_listing.php 5- Find ... $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; My file in OS 2.3 is..... case 'PRODUCT_LIST_BUY_NOW': $prod_list_contents .= ' <td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>'; break; How do I 'replace' if I can not find this code in the files? Thanks
  4. harperk

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi Rob, Thanks a lot for your reply. I did try manual install also but this produced errors. User pdcelec mentioned a file change for OScom 2.3 in functions/general.php. Is this correct? and if so what are the changes needed? In your opinion shoudl I wait and install USU5 PRO when released? Thanks in advance for your help.
  5. harperk

    ULTIMATE Seo Urls 5 - by FWR Media

    Thanks for the quick response Pdcelec! I uploaded the files correctly as per the installation instructions. Where is this 'upgrade version of functions/general.php? Thanks!
  6. harperk

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi I so want this contrib SEO 5 to work on my fresh OS install but it just aint happening! I have spent many hours looking through the forum for a post with the same errors I'm having but no luck. As I said I have a fresh install of OS 2.3.1 and I have tried a 'drop on top' install and 'manual' install but keep getting errors. Error when trying to access store is: Fatal error: Call to a member function add_current_page() on a non-object in /mounted-storage/home2/sub001/sc17958-FIWR/my-store.co.uk/shop/includes/application_top.php on line 344 When trying to access to admin is: Fatal error: Call to undefined function tep_get_version() in /mounted-storage/home2/sub001/sc17958-FIWR/my-store.co.uk/shop/backoff/includes/header.php on line 20 I have read and re-read the instructions. I have tried 4 times with no luck and each time re-installing OS. Any help appreciated. thank you! Ps. Sorry in advance for my stupidity if a user error! (ps. I'm not such a newbie either!)
  7. Hi I have trawled through the many posts on this topic and can not get ccgv(trad) mod working due to this error. I have carefully gone back through re-installing this mod the second time but with the same problem. I use shared SSL and have this shop folder copied into my ssl folder. When I have the shop as a basic osComm files the shop works although not the ccgv mod. Please any hel would be gratefull as I've spent three days & long nights trying to fix this :( Fatal error: Cannot redeclare tep_show_category() (previously declared in /mounted-storage/home16a/sub001/sc17958-FIWR/ssl/shop_malley/includes/header.php:182) in /mounted-storage/home16a/sub001/sc17958-FIWR/ssl/shop_malley/includes/boxes/categories.php on line 13