mJULESY Posted January 24, 2005 Posted January 24, 2005 index.php showing <base href=""> which means the line below is failing. (from index.php) base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> my configure.php reads define('HTTP_SERVER', 'http://www.yourwirelessworld.co.uk'); define('HTTP_CATALOG_SERVER', 'http://www.yourwirelessworld.co.uk'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home/worl3454/public_html/catalog/'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', '/home/worl3454/public_html/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', 'catalog/'); // absolute path required so you can see that HTTP_SERVER should return = http://www.yourwirelessworld.co.uk and DIR_WS_CATALOG should be /catalog/ but if you look at http://www.yourwirelessworld.co.uk/catalog it has lost all of its formatting because the base href is not being returned, anyone know what the hell is going on? you can view source to see that the base href in not there. its driving me mad! cheers
mJULESY Posted January 24, 2005 Author Posted January 24, 2005 Also i do not have DIR_WS_CATALOG defined in my catalog/includes/configure.php only in my catalog/admin/includes should it be? i did add it manually and it changed the base href=/catalog/ which means that it did not pick up my HTTP_SERVER constant. WHY? when it is defined as define('HTTP_SERVER', 'http://www.yourwirelessworld.co.uk'); can anyone help?
stevel Posted January 24, 2005 Posted January 24, 2005 Looks as if you've mixed up the configure.php files for the catalog and admin. They are not the same. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
mJULESY Posted January 24, 2005 Author Posted January 24, 2005 Looks as if you've mixed up the configure.php files for the catalog and admin. They are not the same. <{POST_SNAPBACK}> Should they be the same? But i do have this defined in my configure.php under catalog/includes so the base href should at least read 'http://www.yourwirelessworld.co.uk'. define('HTTP_SERVER', 'http://www.yourwirelessworld.co.uk'); Could there be a problem with my server? there seems not to be a 'DIR_WS_CATALOG' defined in my configure.php under the catalog/includes!! Please help
stevel Posted January 24, 2005 Posted January 24, 2005 No, they should not be the same, but it looks as if you have them mixed up. catalog/includes/configure.php starts as: define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? 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', ''); while admin/includes/configure.php starts as: define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
mJULESY Posted January 24, 2005 Author Posted January 24, 2005 Hi there, i have not moved or edited them my self, both my files read: catalog/includes/configure.php define('HTTP_SERVER', 'http://www.yourwirelessworld.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.yourwirelessworld.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); and my admin/includes/configure.php define('HTTP_SERVER', 'http://www.yourwirelessworld.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.yourwirelessworld.co.uk'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/worl3454/public_html/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/worl3454/public_html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/worl3454/public_html/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); so all looks ok yeh. i have just reinstalled and started from scratch and the 'base href' is missing and all the images are lost again? what i cant understand it that if the main site uses the catalog/includes/configure.php 'DIR_WS_CATALOG' is not defined in that file, but the index.php requires this constant. (<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">) the constant is only defined in the admin/includes/configure.php what can be wrong? i have just reinstall from scratch? please can anyone point me in the right direction?
stevel Posted January 25, 2005 Posted January 25, 2005 See this code in includes/application_top.php: if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); } You might want to make sure that the code is there. It should be at around line 46. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
mJULESY Posted January 25, 2005 Author Posted January 25, 2005 Hi steve, thanks for your help, infact i have just reinstalled again from scratch and i still get the same results, i have all the correct code that you have placed above as it is a new installation. One thing that i have noticed is that the admin tool works fine!? but the main site does not. Also in the bottom left hand corner of the main admin screen it says 'You are protected by a unknown secure SSL connection.' do you think that this is the prolem with my site. where as we think that the cart is looking for the constant 'DIR_WS_CATALOG' infact for some reason it is reading the 'DIR_WS_HTTPS_CATALOG'. i cant understand where this - 'you are protected by a unknown secure SSL connection' is coming from as i do not have SSL configured for my site. What do you think? i might try my hand at php and write a file the displays the type of connection that is being established... once again, many thanks steve
stevel Posted January 25, 2005 Posted January 25, 2005 It's interesting. When I visit your catalog site in Firefox, it warns me that an unknown SSL certificate is being presented, one that matches your host's domain name, not yours. But if I accept the certificate for the session, and proceed to your site, the page shows as non-secure. All I can think of is that your site is somehow misconfigured on the server. Your experience with the admin panel reinforces that. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
boxtel Posted January 25, 2005 Posted January 25, 2005 index.php showing <base href=""> which means the line below is failing. (from index.php) base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> my configure.php reads define('HTTP_SERVER', 'http://www.yourwirelessworld.co.uk'); define('HTTP_CATALOG_SERVER', 'http://www.yourwirelessworld.co.uk'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home/worl3454/public_html/catalog/'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', '/home/worl3454/public_html/catalog/admin/'); define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', 'catalog/'); // absolute path required so you can see that HTTP_SERVER should return = http://www.yourwirelessworld.co.uk and DIR_WS_CATALOG should be /catalog/ but if you look at http://www.yourwirelessworld.co.uk/catalog it has lost all of its formatting because the base href is not being returned, anyone know what the hell is going on? you can view source to see that the base href in not there. its driving me mad! cheers <{POST_SNAPBACK}> I deleted ALL <base href statements without any problems. As far as I know, you don't need it and it only causes problems. But please correct me if I am mistaken because I could never figure out why it is there in the first place and really would like to know. Treasurer MFC
stevel Posted January 25, 2005 Posted January 25, 2005 It's there so that images on your page are loaded properly in all circumstances. If you don't put pages in a subfolder of your "catalog" folder, it may not be needed. One workaround to the problem here would be to define HTTPS_SERVER the same as HTTP_SERVER. But I think you should investigate the strange SSL issue with the help of your host. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
mJULESY Posted January 26, 2005 Author Posted January 26, 2005 Hi Stevel i have defined HTTPS_SERVER the same as HTTP_SERVER. and all is running as normal now, thank you sooooo much for your support for the last few weeks. I will conact my ISP and see what is going on, as they have cost me a lot of down time, it must of been something that they have changed as i had my site up and running. Once again many thanks Mark P.s i am going to install firefox to help with things like this in future. Cheers
stevel Posted January 26, 2005 Posted January 26, 2005 I'm glad that I was able to help. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
Recommended Posts
Archived
This topic is now archived and is closed to further replies.