jhande Posted August 27, 2010 Posted August 27, 2010 This has been bugging me for sometime now and I can't figure it out. Everything seems to work just fine on my PC's localhost test site. I can click from page to page just fine. BUT... Type in the Search Box or use the Advanced Search and it redirects me to my live online site. Any ideas why? includes\configure.php define('HTTP_SERVER', '127.0.0.1'); define('HTTPS_SERVER', 'http://localhost'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'http://localhost'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/hobbies/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/hobbies/'); define('DIR_WS_HTTPS_CATALOG', '/hobbies/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', 'C:/xampp/htdocs/hobbies/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); admin\includes\configure.php define('HTTP_SERVER', 'http://127.0.0.1'); define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'C:/xampp/htdocs/hobbies/admin/'); define('DIR_WS_ADMIN', '/hobbies/admin/'); define('DIR_FS_ADMIN', 'C:/xampp/htdocs/hobbies/admin/'); define('DIR_WS_CATALOG', '/hobbies/'); define('DIR_FS_CATALOG', 'C:/xampp/htdocs/hobbies/'); define('DIR_WS_IMAGES', '/hobbies/admin/images/'); define('DIR_WS_ICONS', '/hobbies/admin/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/'); - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
roya.k Posted August 27, 2010 Posted August 27, 2010 This has been bugging me for sometime now and I can't figure it out. Everything seems to work just fine on my PC's localhost test site. I can click from page to page just fine. BUT... Type in the Search Box or use the Advanced Search and it redirects me to my live online site. Any ideas why? includes\configure.php define('HTTP_SERVER', '127.0.0.1'); define('HTTPS_SERVER', 'http://localhost'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'http://localhost'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/hobbies/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/hobbies/'); define('DIR_WS_HTTPS_CATALOG', '/hobbies/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', 'C:/xampp/htdocs/hobbies/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); admin\includes\configure.php define('HTTP_SERVER', 'http://127.0.0.1'); define('HTTP_CATALOG_SERVER', 'http://localhost'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'C:/xampp/htdocs/hobbies/admin/'); define('DIR_WS_ADMIN', '/hobbies/admin/'); define('DIR_FS_ADMIN', 'C:/xampp/htdocs/hobbies/admin/'); define('DIR_WS_CATALOG', '/hobbies/'); define('DIR_FS_CATALOG', 'C:/xampp/htdocs/hobbies/'); define('DIR_WS_IMAGES', '/hobbies/admin/images/'); define('DIR_WS_ICONS', '/hobbies/admin/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/'); Just a little test, add something like this to the beginning of application_top file to see if the bug persists $HTTP_GET_VARS = &$_GET; $HTTP_POST_VARS = &$_POST; $HTTP_ENV_VARS = &$_ENV; $HTTP_SERVER_VARS = &$_SERVER; $HTTP_COOKIE_VARS = &$_COOKIE; Open source n'est pas un échange à sens unique ... La plupart du temps un simple merci ou quelques mots d'encouragement suffisent...
jhande Posted August 27, 2010 Author Posted August 27, 2010 Just a little test, add something like this to the beginning of application_top file to see if the bug persists $HTTP_GET_VARS = &$_GET; $HTTP_POST_VARS = &$_POST; $HTTP_ENV_VARS = &$_ENV; $HTTP_SERVER_VARS = &$_SERVER; $HTTP_COOKIE_VARS = &$_COOKIE; I already have that snippet of code in the file. Thank you for trying. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Mort-lemur Posted August 27, 2010 Posted August 27, 2010 Hi, Just a guess, but do you have 2 other Config files in includes/local/ and admin/includes/local ? If you do then these will override your other config files so will need amending as well. Thanks Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.
jhande Posted August 27, 2010 Author Posted August 27, 2010 Just the one in each folder. Thanks for trying. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Mort-lemur Posted August 27, 2010 Posted August 27, 2010 Ok, Then as your site is on your desktop pc - use a text search programe like Examine 32 to search through your htdocs folder for all instances of www.yoursite.com Then you may be able to determine where the direct is coming from. Thanks Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.
roya.k Posted August 27, 2010 Posted August 27, 2010 Replace define('HTTP_SERVER', '127.0.0.1'); with define('HTTP_SERVER', 'http://localhost'); in /includes/configure.php Open source n'est pas un échange à sens unique ... La plupart du temps un simple merci ou quelques mots d'encouragement suffisent...
jhande Posted August 27, 2010 Author Posted August 27, 2010 Ok, Then as your site is on your desktop pc - use a text search programe like Examine 32 to search through your htdocs folder for all instances of www.yoursite.com Then you may be able to determine where the direct is coming from. Thanks My .htaccess files are ok, nothing pointing to my live site. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
jhande Posted August 27, 2010 Author Posted August 27, 2010 Replace define('HTTP_SERVER', '127.0.0.1'); with define('HTTP_SERVER', 'http://localhost'); in /includes/configure.php Already tried that, still no good. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
jhande Posted August 27, 2010 Author Posted August 27, 2010 Just checked some log files - XAMPP\apache\logs In the error.log file similar to this is listed everywhere: [Fri Aug 27 08:12:22 2010] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/stylesheet.css, referer: [url="http://localhost/hobbies/"]http://localhost/hobbies/[/url] In the access.log file there are these lines listed everywhere: 127.0.0.1 - - [27/Aug/2010:09:22:01 -0400] "GET /hobbies/stylesheet.css HTTP/1.1" 304 - 127.0.0.1 - - [27/Aug/2010:09:22:01 -0400] "GET /stylesheet.css HTTP/1.1" 404 1380 The folder structure is - C:\\XAMPP\htdocs\hobbies\ So something is pointing back to the htdocs folder. It might not be a related problem, I don't know. I'm guessing something isn't set right in my configure.php file? - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
roya.k Posted August 27, 2010 Posted August 27, 2010 Just checked some log files - XAMPP\apache\logs In the error.log file similar to this is listed everywhere: [Fri Aug 27 08:12:22 2010] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/stylesheet.css, referer: [url="http://localhost/hobbies/"]http://localhost/hobbies/[/url] In the access.log file there are these lines listed everywhere: 127.0.0.1 - - [27/Aug/2010:09:22:01 -0400] "GET /hobbies/stylesheet.css HTTP/1.1" 304 - 127.0.0.1 - - [27/Aug/2010:09:22:01 -0400] "GET /stylesheet.css HTTP/1.1" 404 1380 The folder structure is - C:\\XAMPP\htdocs\hobbies\ So something is pointing back to the htdocs folder. It might not be a related problem, I don't know. I'm guessing something isn't set right in my configure.php file? try this : define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'http://localhost'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); define('HTTP_COOKIE_PATH', '/hobbies/'); define('HTTPS_COOKIE_PATH', '/hobbies/'); define('DIR_WS_HTTP_CATALOG', '/hobbies/'); define('DIR_WS_HTTPS_CATALOG', '/hobbies/'); Open source n'est pas un échange à sens unique ... La plupart du temps un simple merci ou quelques mots d'encouragement suffisent...
jhande Posted August 27, 2010 Author Posted August 27, 2010 try this : define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'http://localhost'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', 'localhost'); define('HTTP_COOKIE_PATH', '/hobbies/'); define('HTTPS_COOKIE_PATH', '/hobbies/'); define('DIR_WS_HTTP_CATALOG', '/hobbies/'); define('DIR_WS_HTTPS_CATALOG', '/hobbies/'); Still no good. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Mort-lemur Posted August 27, 2010 Posted August 27, 2010 Hi, This is my XAMPP config file which works fine : define('HTTP_SERVER', 'http://localhost'); define('HTTPS_SERVER', 'http://localhost'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', 'c:/Program Files/xampp/htdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); In my earlier post I was suggesting that you look through your htdocs folder in XAMPP not your .htaccess file to see if a link to your "Live" site is hard coded in somewhere - some contributions require this to be done, a good tool to do a search through the text of all files in a folder is Examine 32 text search. Thanks Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.
germ Posted August 27, 2010 Posted August 27, 2010 Just checked some log files - XAMPP\apache\logs In the error.log file similar to this is listed everywhere: [Fri Aug 27 08:12:22 2010] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/stylesheet.css, referer: [url="http://localhost/hobbies/"]http://localhost/hobbies/[/url] In the access.log file there are these lines listed everywhere: 127.0.0.1 - - [27/Aug/2010:09:22:01 -0400] "GET /hobbies/stylesheet.css HTTP/1.1" 304 - 127.0.0.1 - - [27/Aug/2010:09:22:01 -0400] "GET /stylesheet.css HTTP/1.1" 404 1380 The folder structure is - C:\\XAMPP\htdocs\hobbies\ So something is pointing back to the htdocs folder. It might not be a related problem, I don't know. I'm guessing something isn't set right in my configure.php file? Looking at the source from the online shop: <!-- EOF: Header Tags SEO Generated Meta Tags --> <base href="http://YOUR_DOMAIN.com/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body> <!-- header //--> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-image: url(../images/CarbonFiber_BKG.gif); } --> </style> <link href="../stylesheet.css" rel="stylesheet" type="text/css" /> You have two references to the stylesheet. The last one in the code I posted doesn't exist and needs removed (online and local). That should fix the 404 error. The search box is in the /includes/header.php file. Maybe there's something amiss in it. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
jhande Posted August 28, 2010 Author Posted August 28, 2010 A big thank you Jim I'm cleaning up the style and stylesheet mess. Forgot that bit of code while testing. I got the searchbox and advanced search working now. Sorry everyone, my mistake (stupidity) and thank you all for helping. I forgot when I installed FWR Security Pro that it broke my search functions. When playing with it trying to fix it I hardcoded the full path. I'll go hide my head in shame now. Again, thank you all for your assistance! - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Recommended Posts
Archived
This topic is now archived and is closed to further replies.