Guest Posted November 19, 2015 Posted November 19, 2015 Hi Really didn't know what to put as topic. Problem After placing an order,then click on the order number link in the confirmation Order Process email, which then goes to web site and log in is requested . However I keep getting asked to log in. What I have found is that if I delete cookies then the link will work, until I place a new order, click the clickable link in the Order Process email, try to log in, won't work, So again I delete the cookie and all works until I place another order, and start the process all over again. I suspect that when clicking the link in the Order Process email I should be taken straigh to the Order Information page without having to log in. My suspicion is that its something not setup quite right in a config file. As I have a "test" site which is just a standard install no shared SSL or anything and that works a treat. define('HTTP_SERVER', 'http://www.grandpas.co.nz'); define('HTTPS_SERVER', 'https://grandpas.co.nz'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'grandpas.co.nz'); define('HTTPS_COOKIE_DOMAIN', 'grandpas.co.nz/'); 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_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', '/home/grandp/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('HTTP_SERVER', 'https://grandpas.co.nz'); define('HTTPS_SERVER', 'https://grandpas.co.nz'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', '.grandpas.co.nz'); define('HTTPS_COOKIE_DOMAIN', '.grandpas.co.nz'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('HTTP_CATALOG_SERVER', 'http://www.grandpas.co.nz'); define('HTTPS_CATALOG_SERVER', 'https://grandpas.co.nz'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/home/grandp/public_html/'); define('DIR_WS_ADMIN', '/RENAMED ADMIN/'); define('DIR_WS_HTTPS_ADMIN', '/RENAMED ADMIN/'); define('DIR_FS_ADMIN', '/home/grandp/public_html/RENAMED ADMIN/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/grandp/public_html/'); 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/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); We have our own SSL cert, not shared anymore. Many thanks. Cheers Grandpa
♥John W Posted November 19, 2015 Posted November 19, 2015 I don't think this is a config problem but you do have a couple extra "." that don't belong. Copy these two into your configs and let us know if it fixed. I'm assuming you haven't made any other changes to log in or application top. define('HTTP_SERVER', 'http://www.grandpas.co.nz'); define('HTTPS_SERVER', 'https://www.grandpas.co.nz'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.grandpas.co.nz'); define('HTTPS_COOKIE_DOMAIN', 'www.grandpas.co.nz/'); 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_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', '/home/grandp/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('HTTP_SERVER', 'https://www.grandpas.co.nz'); define('HTTPS_SERVER', 'https://www.grandpas.co.nz'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'www.grandpas.co.nz'); define('HTTPS_COOKIE_DOMAIN', 'www.grandpas.co.nz'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('HTTP_CATALOG_SERVER', 'http://www.grandpas.co.nz'); define('HTTPS_CATALOG_SERVER', 'https://www.grandpas.co.nz'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/home/grandp/public_html/'); define('DIR_WS_ADMIN', '/RENAMED ADMIN/'); define('DIR_WS_HTTPS_ADMIN', '/RENAMED ADMIN/'); define('DIR_FS_ADMIN', '/home/grandp/public_html/RENAMED ADMIN/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/grandp/public_html/'); 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/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I'm not really a dog.
Guest Posted November 20, 2015 Posted November 20, 2015 @@John W Hi John Many thanks for your help and suggestions. I think things are working and suspect the problem may have been in application top. Still need to do more testing but so far looks promising. Cheers Grandpa
♥John W Posted November 20, 2015 Posted November 20, 2015 I also added your www so it would be consistent with your certificate and consistent through the site. It doesn't seem like your create account page is working corrrectly as I cannot create an account. It may not be posting the form correctly. There's also no state field for the US, but I don't know if you plan on shipping outside of NZ. I'm not really a dog.
Guest Posted November 20, 2015 Posted November 20, 2015 @@John W Hi John Many thanks. The Create account page seems to be working .It did create your account, is there something you may be seeing that Im not.I guess it could be the browser (maybe) I use FF. I did comment out the State field as we don't ship outside NZ. Many thanks for your help.
♥John W Posted November 20, 2015 Posted November 20, 2015 I use FF too. It didn't seem like the account was created and it didin't show me as logged in. But, I was able to log in just now, so maybe it's good. Try and create an account and see if it works correctly. I'm not really a dog.
Guest Posted November 20, 2015 Posted November 20, 2015 @@John W Hi John Just created account and didn't get logged in. No idea whats going on. Could it be something to do with application top. Cheers Grandpa
♥John W Posted November 20, 2015 Posted November 20, 2015 yes, but look to what you've changed. Checkout Beyond Compare if you don't have a file comparator and compare it to the stock Bootstrap. Look through your error logs and set the error level to E_ALL. I add this into my application_top to feed a error log into my includes. Look for error_reporting and change it like this. Here's where good code comes into play because it can be very helpful to find potentional problems but some code has a ton of notice level errors. // set the level of error reporting error_reporting(E_ALL); ini_set('error_log', DIR_WS_INCLUDES . 'catalog_errors.log'); I'm not really a dog.
Guest Posted November 20, 2015 Posted November 20, 2015 @@John W Hi John Sorry to be so "vacant" on this. Yesterday what I did before making any changes downloaded a complete copy of the web site. Have used this to solve my problem. Do I just post your above code into application top somewhere at the top of the file. Again' many thanks. Us "senior citizens" find all this just a little perplexing. Kind regrads John
♥John W Posted November 20, 2015 Posted November 20, 2015 The first line is already there but different. find it and change it. The second line doesn't exist, so you can add it right below. Make sure you're not outputting errors to the screen and if you are I can show you how to change that. I'm not really a dog.
Guest Posted November 20, 2015 Posted November 20, 2015 @@John W Hi John That certainly shook things up about 20/30 lines of errors appeared on the web site screen. So for the moment have commented out that little piece of code. Would you be kind enough to post the little piece of code that stops outputting to screen and to a file instead. Many thanks Grandpa
♥John W Posted November 20, 2015 Posted November 20, 2015 Right before where it sets error to E_ALL ini_set('display_errors', false); I'm not really a dog.
Guest Posted November 21, 2015 Posted November 21, 2015 @@John W Hi John Thanks for the code. Is it normal to have a lot of "errors:" in this log. Here's just 20. Do I need to do anything. [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MODULE_CONTENT_HEADER_MESSAGESTACK_STATUS already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MODULE_CONTENT_PRODUCT_INFO_RECENTLY_VIEWED_SHOW_MORE_BUTTON already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MODULE_CONTENT_PRODUCT_INFO_WISHLIST_STATUS already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MAX_DISPLAY_WISHLIST_PRODUCTS already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MAX_DISPLAY_WISHLIST_BOX already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant WISHLIST_REDIRECT already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MODULE_CONTENT_PRODUCT_INFO_WISHLIST_SORT_ORDER already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MODULE_CONTENT_FOOTER_TEXT_STATUS already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MODULE_CONTENT_FOOTER_TEXT_CONTENT_WIDTH already defined in /home/grandp/public_html/includes/application_top.php on line 73 [21-Nov-2015 11:59:56 Pacific/Auckland] PHP Notice: Constant MODULE_CONTENT_FOOTER_TEXT_SORT_ORDER already defined in /home/grandp/public_html/includes/application_top.php on line 73 There are many more. Cheers Grandpa
Guest Posted November 21, 2015 Posted November 21, 2015 @@John W Hi John Sorry Found this, don't know whether it may be related to the email prob [21-Nov-2015 12:00:12 Pacific/Auckland] PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/grandp/public_html/includes/application_top.php:20) in /home/grandp/public_html/includes/functions/sessions.php on line 97 Cheers Grandp
♥John W Posted November 21, 2015 Posted November 21, 2015 Hey John, With some work you can get it to where it's not outputing a ton of errors. I hardly have any running E_ALL. Notice errors won't cause it to crash but it can be the reason things don't work as expected sometimes. Also, a notice now can be a bigger error in future php versions. It looks like you have some modules in your in your configuration part of your database more than once. You can try to uninstall the modules you see showing up more that onece. This isn't your problem but it's not something you want. Constants can only be defined once. On your last post. There may be something that's in front of that that causing a problem. I'm not really a dog.
Mort-lemur Posted November 21, 2015 Posted November 21, 2015 @@grandpaj @@John W take a look at this post to help find duplicate db entries: http://www.oscommerce.com/forums/topic/408041-listing-duplicate-configuration-keys/ 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.
tgely Posted November 21, 2015 Posted November 21, 2015 Problem After placing an order,then click on the order number link in the confirmation Order Process email, which then goes to web site and log in is requested . However I keep getting asked to log in. What I have found is that if I delete cookies then the link will work, until I place a new order, click the clickable link in the Order Process email, try to log in, won't work, So again I delete the cookie and all works until I place another order, and start the process all over again. I suspect that when clicking the link in the Order Process email I should be taken straigh to the Order Information page without having to log in. Hi, Could you post here an exact Order Process email link? And what is your shop Session Configure? osCommerce based shop owner with minimal design and focused on background works. When the less is more.Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.
Jack_mcs Posted November 21, 2015 Posted November 21, 2015 @@grandpa There are still things not quite right in your configure files. I suggest the following. The switch to www is not required but it is better to be consistent in such things. define('HTTP_SERVER', 'http://www.grandpas.co.nz'); define('HTTPS_SERVER', 'https://grandpas.co.nz'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', '.www.grandpas.co.nz'); define('HTTPS_COOKIE_DOMAIN', '.www.grandpas.co.nz'); define('HTTP_SERVER', 'https://www.grandpas.co.nz'); define('HTTPS_SERVER', 'https://www.grandpas.co.nz'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); define('HTTP_CATALOG_SERVER', 'http://www.grandpas.co.nz'); define('HTTPS_CATALOG_SERVER', 'https://www.grandpas.co.nz'); Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
♥John W Posted November 21, 2015 Posted November 21, 2015 @@Jack_mcs Out of curiosity, why the dot before www on define('HTTP_COOKIE_DOMAIN', '.www.grandpas.co.nz'); and on this line, is the https intentional? define('HTTP_SERVER', 'https://www.grandpas.co.nz'); I'm not really a dog.
Jack_mcs Posted November 21, 2015 Posted November 21, 2015 The dot isn't required. It used to be required by the RFC standard (search for dot) but they've changed it along the way and it is optional now. However, the absence of a dot means it is an exact match. So mydomain.com works for mydomain.com. But .mydomain.com works for www.mydomain.com, sub.mydomain.com and so on. In most cases that won't matter but the dot doesn't take up a lot of room so I prefer to use it. The https was intentional. That is the admin configure file and without it, you can connect to the admin with http. In that case, after you enter the login, the url will change to https and you will be asked to login in again. But that first login was a real one so your username and password were submitted un-encrypted, making it a security issue. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
♥John W Posted November 21, 2015 Posted November 21, 2015 @@Jack_mcs Good catch on the https and that's how I have mine set up. I totally brain farted on this one. Thanks for explaining the dot, and that makes sense. I'm not really a dog.
Guest Posted November 22, 2015 Posted November 22, 2015 @@Gergely Hi Many thanks for taking a look. The email link ishttps://grandpas.co.nz/account_history_info.php?order_id=3528 Please excuse my ignorance, but what is .."And what is your shop Session Configure?" Again many thanks Kind regards Grandpa
Guest Posted November 22, 2015 Posted November 22, 2015 @@Jack_mcs Hi Jack I have gone for "option 1" define('HTTP_SERVER', 'http://www.grandpas.co.nz'); define('HTTPS_SERVER', 'https://grandpas.co.nz'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', '.www.grandpas.co.nz'); define('HTTPS_COOKIE_DOMAIN', '.www.grandpas.co.nz'); As I found with "option 2" that when an account was created it didn't automatically log in the user. Im assuming I have interpreted your post (18) correctly Again, many thanks it is much appreciated. Kind regards Grandpa
Guest Posted November 22, 2015 Posted November 22, 2015 @@Mort-lemur Hi Heather Thanks for that. Once the "code" has been inserted into the DB I presume its just left there, and any duplicate entries should be deleted. Cheers Grandpa
Mort-lemur Posted November 22, 2015 Posted November 22, 2015 @@grandpaj Hi, No - that code just identifies what is duplicated - any deletion has to be done manually. 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.