Jump to content

FrostyFred

Members
  • Content count

    20
  • Joined

  • Last visited

  1. FrostyFred

    Notice: Constant HTTP_SERVER already defined

    No, it appears the code in application top on line 373 was out of date and line 98 in classes/shopping cart needs to be commented out. HTH FF
  2. Notice: Constant HTTP_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 13 Notice: Constant HTTP_CATALOG_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 14 Notice: Constant HTTPS_CATALOG_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 15 Notice: Constant ENABLE_SSL_CATALOG already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 16 Notice: Constant DIR_FS_DOCUMENT_ROOT already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 17 If you get the above error change application top // Set the local configuration parameters - mainly for developers if (file_exists('includes/local/configure.php')) include('includes/local/configure.php'); // include server parameters require('includes/configure.php'); to // Set the local configuration parameters - mainly for developers if (file_exists('includes/local/configure.php')) { include('includes/local/configure.php'); } else { // include server parameters require('includes/configure.php'); } Now I need to find out why I get Notice: Undefined index: id in /hsphere/local/home/xxx/commerce/catalog/includes/application_top.php on line 373 Notice: Undefined index: qty in /hsphere/local/home/xxx/commerce/catalog/includes/classes/shopping_cart.php on line 142 Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/xxx/commerce/catalog/includes/application_top.php:373) in /hsphere/local/home/commerce/catalog/includes/functions/general.php on line 29 When clicking on the buy button in product_info commerce/catalog/product_info.php?cPath=23&products_id=180&action=add_product Have I lost some indexes on my data? TIA FF
  3. FrostyFred

    SiteMonitor

    Thanks for the link but I am on 2.2. I'll try replacing the code anyway. FF
  4. FrostyFred

    SiteMonitor

    Thanks for the tip, I was using the latest. I have just taken out os sec but still get Error 403: Forbidden Your PHP settings have been disabled by an H-Sphere administrator. Your current PHP configuration: This configuration was changed: Mon Dec 5 02:00:10 UTC 2011 Please bring your PHP configuration in compliance with admin settings or request your administrator to re-enable support of your settings. I can only find 1 reference to Notice: Constant HTTP_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 13 coopco made a reference to "Methinks that you have to use the absolute path instead of the DOCUMENT_ROOT" in http://forums.oscommerce.com/topic/326933-my-store-is-broken-please-help/page__view__findpost__p__1362012 But I can't see a fault. Midnight here will look again tomorrow. FF
  5. FrostyFred

    SiteMonitor

    Is this the clash between site monitor and os sec?
  6. FrostyFred

    SiteMonitor

    Sorry, cut and paste fever. Error message is not preceded by half of my config file, it should read I turned on error messaes in applic top to error_reporting ( E_ALL | E_STRICT ); and got this Notice: Constant HTTP_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 13 Notice: Constant HTTP_CATALOG_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 14 Notice: Constant HTTPS_CATALOG_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 15 Notice: Constant ENABLE_SSL_CATALOG already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 16 Notice: Constant DIR_FS_DOCUMENT_ROOT already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 17 Notice: Constant DIR_WS_ADMIN already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 18 Notice: Constant DIR_FS_ADMIN already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 19 Notice: Constant DIR_WS_CATALOG already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 20 Notice: Constant DIR_FS_CATALOG already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 21 Notice: Constant DIR_WS_IMAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 22 Notice: Constant DIR_WS_ICONS already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 23 Notice: Constant DIR_WS_CATALOG_IMAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 24 Notice: Constant DIR_WS_INCLUDES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 25 Notice: Constant DIR_WS_BOXES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 26 Notice: Constant DIR_WS_FUNCTIONS already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 27 Notice: Constant DIR_WS_CLASSES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 28 Notice: Constant DIR_WS_MODULES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 29 Notice: Constant DIR_WS_LANGUAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 30 Notice: Constant DIR_WS_CATALOG_LANGUAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 31 Notice: Constant DIR_FS_CATALOG_LANGUAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 32 Notice: Constant DIR_FS_CATALOG_IMAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 33 Notice: Constant DIR_FS_CATALOG_MODULES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 34 Notice: Constant DIR_FS_BACKUP already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 35 Notice: Constant DB_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 38 Notice: Constant DB_SERVER_USERNAME already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 39 Notice: Constant DB_SERVER_PASSWORD already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 40 Notice: Constant DB_DATABASE already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 41 Notice: Constant USE_PCONNECT already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 42 Notice: Constant STORE_SESSIONS already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 43 Notice: Constant MODULE_PAYMENT_INVOICE_SORT_ORDER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/application_top.php on line 75 Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php:13) in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/includes/osc_sec.php on line 18 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php:13) in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/functions/sessions.php on line 67 I have checked config.php and deleted the first line and replaced it by <?php Same result Admin configure is set to ( with admin directory and site name replaced ) <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://xxxxxxxx.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://xxxxxxxx.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/commerce/catalog/admindir/'); // absolute path required define('DIR_FS_ADMIN', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admindir/'); // absolute pate required define('DIR_WS_CATALOG', '/commerce/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); ....... ?> and yes it should read commerce/catalog Thanks again
  7. FrostyFred

    SiteMonitor

    I downloaded and installed the latest site monitor unfortunately when going to the admin section the screen remains blank. Following the instructions in the readme http://YOUR_DOMAIN_N....php?override=1 got me to the config page. No error messages at the top of the screen but the "Exclude Selector:" did not have any content. After clicking on update got this message Error 403: Forbidden Your PHP settings have been disabled by an H-Sphere administrator. Your current PHP configuration: This configuration was changed: Mon Dec 5 02:00:10 UTC 2011 Please bring your PHP configuration in compliance with admin settings or request your administrator to re-enable support of your settings. I turned on error messaes in applic top to error_reporting ( E_ALL | E_STRICT ); and got this Admin configure is set to ( with admin directory and site name replaced ) <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://xxxxxxxx.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://xxxxxxxx.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/commerce/catalog/admindir/'); // absolute path required define('DIR_FS_ADMIN', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admindir/'); // absolute pate required define('DIR_WS_CATALOG', '/commerce/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');[code] Notice: Constant HTTP_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 13 Notice: Constant HTTP_CATALOG_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 14 Notice: Constant HTTPS_CATALOG_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 15 Notice: Constant ENABLE_SSL_CATALOG already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 16 Notice: Constant DIR_FS_DOCUMENT_ROOT already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 17 Notice: Constant DIR_WS_ADMIN already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 18 Notice: Constant DIR_FS_ADMIN already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 19 Notice: Constant DIR_WS_CATALOG already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 20 Notice: Constant DIR_FS_CATALOG already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 21 Notice: Constant DIR_WS_IMAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 22 Notice: Constant DIR_WS_ICONS already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 23 Notice: Constant DIR_WS_CATALOG_IMAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 24 Notice: Constant DIR_WS_INCLUDES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 25 Notice: Constant DIR_WS_BOXES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 26 Notice: Constant DIR_WS_FUNCTIONS already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 27 Notice: Constant DIR_WS_CLASSES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 28 Notice: Constant DIR_WS_MODULES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 29 Notice: Constant DIR_WS_LANGUAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 30 Notice: Constant DIR_WS_CATALOG_LANGUAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 31 Notice: Constant DIR_FS_CATALOG_LANGUAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 32 Notice: Constant DIR_FS_CATALOG_IMAGES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 33 Notice: Constant DIR_FS_CATALOG_MODULES already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 34 Notice: Constant DIR_FS_BACKUP already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 35 Notice: Constant DB_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 38 Notice: Constant DB_SERVER_USERNAME already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 39 Notice: Constant DB_SERVER_PASSWORD already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 40 Notice: Constant DB_DATABASE already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 41 Notice: Constant USE_PCONNECT already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 42 Notice: Constant STORE_SESSIONS already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 43 Notice: Constant MODULE_PAYMENT_INVOICE_SORT_ORDER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/application_top.php on line 75 Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php:13) in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/includes/osc_sec.php on line 18 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php:13) in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/functions/sessions.php on line 67 I have checked config.php and deleted the first line and replaced it by <?php Same result <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://xxxxxxxx.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://xxxxxxxx.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/commerce/catalog/admindir/'); // absolute path required define('DIR_FS_ADMIN', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admindir/'); // absolute pate required define('DIR_WS_CATALOG', '/commerce/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); ....... ?> Can you cast any light on this? Thanks FF
  8. FrostyFred

    ULTIMATE Seo Urls 5 - by FWR Media

    Thanks, have spent a few hours tracking it down and thought it was at the bottom of header.php <?php $path_parts=getCurrPathName(); echo $path_parts['basename']; if(strpos($path_parts['basename'], "php") == false) { print("<script type='text/javascript'>window.location='index.php';</script>"); } if(($path_parts['basename'] != "index.php") && ($path_parts['basename'] != "") && ($path_parts['basename'] != "index.php?language=en") && ($path_parts['basename'] != "index.php?language=de") && ($path_parts['basename'] != "index.php?language=es") && ($path_parts['basename'] != "index.php?currency=EUR") && ($path_parts['basename'] != "index.php?currency=USD") && ($path_parts['basename'] != "index.php?currency=USD&language=en") && ($path_parts['basename'] != "index.php?currency=USD&language=de") && ($path_parts['basename'] != "index.php?currency=USD&language=es") && ($path_parts['basename'] != "index.php?currency=EUR&language=en") && ($path_parts['basename'] != "index.php?currency=EUR&language=de") && ($path_parts['basename'] != "index.php?currency=EUR&language=es")) { }else{ require(DIR_WS_BOXES . 'panel_top2.php'); } ?> because the url has ........product_info.php/xxx/...... the basename returned is not the filename. function selfURL() { $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } function getCurrPathName() { $path=selfURL(); $path_parts = pathinfo($path); return $path_parts; } But I can't prove it is this, in fact it still happens when I remove it, so back to the drawing board. Found this code in column left so removed it from both. $path_parts=getCurrPathName(); if(strpos($path_parts['basename'], "php") == false) { print("<script type='text/javascript'>window.location='index.php';</script>"); } Now product info is displayed but what does it do and if it is required how can it be replaced to work with urls ?
  9. FrostyFred

    ULTIMATE Seo Urls 5 - by FWR Media

    Robert I have installed Version 1.0 [sTABLE] r141 [FULL PACKAGE]. I am running this on an xampp server but get the same on a live site. The code was originally this $p_details = '<a href="' . tep_href_link('product_info.php?products_id='.$p_id) . '">'.tep_image_button('button_details.gif', '', ' class="btn1"').'</a>'; $p_buy_now = '<a href="'.tep_href_link("products_new.php","action=buy_now&products_id=".$p_id).'">'.tep_image_button('button_add_to_cart1.gif', '', ' class="btn2"').'</a>'; [/code] During installation I changed it to this $p_details = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO , tep_get_all_get_params(array('products_id')) . 'products_id=' . $p_id) . '">' . tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS) . '</a> '; $p_buy_now = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' .$p_id) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; With seo urls turned off I get <tr><td class="button2_padd button2_marg"> <a href="http://localhost/FatCow/product_info.php?products_id=6">'>http://localhost/FatCow/product_info.php?products_id=6"> <img src="includes/languages/english/images/buttons/button_details.gif" border="0" alt="Details" title=" Details " width="58" height="19"></a> <br /> <a href="http://localhost/FatCow/index.php?action=buy_now&products_id=6"> <img src="includes/languages/english/images/buttons/button_buy_now.gif" border="0" alt="Buy Now" title=" Buy Now " width="67" height="19"></a> </td></tr> Clicking on both links work, product details are displayed and buy now works. Turned on, in standard mode it becomes <tr><td class="button2_padd button2_marg"> <a href="http://localhost/FatCow/product_info.php/chocolate-covered-cremes-p-6"> <img src="includes/languages/english/images/buttons/button_details.gif" border="0" alt="Details" title=" Details " width="58" height="19"></a> <br /> <a href="http://localhost/FatCow/index.php?action=buy_now&products_id=6"> <img src="includes/languages/english/images/buttons/button_buy_now.gif" border="0" alt="Buy Now" title=" Buy Now " width="67" height="19"></a> </td></tr> Buy now works but the details link goes to http://localhost/FatCow/index.php, it should go to http://localhost/FatCow/product_info.php?products_id=6 htaccess is Options +FollowSymLinks RewriteEngine On RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) RewriteRule ^(.*)$ index_error.php [F,L] RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] php parameter are arg_separator.input & & arg_separator.output & & Anyone got any idea? And thanks for reading this far.
  10. Hi Is it possible to run a cron job to import a csv file from the temp directory on an rc2a instalation that has user name and password access protection but no .htaccess file? Thanks FF
×