Jump to content

spacebiscuit75

Members
  • Content count

    16
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. spacebiscuit75

    SSL duplicate domain

    I'm an idiot - I was missing the : after https: define('HTTPS_SERVER', 'https//' . $_SERVER['SERVER_NAME']); The 'solution' to set the https version of the site as http is a hack in my opinion, regardless if many here on the forum have used this to fix the issue. If you're using this approach then I would fix the real cause of the issue instead of that work-around - just my two cents worth though!
  2. spacebiscuit75

    SSL duplicate domain

    Are you sure about that? Why would the http url be https? That seems like a hack to make it work, it doesn't make any difference here. The example configure.php: 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
  3. spacebiscuit75

    SSL duplicate domain

    A quick update: upon further inspection I discovered that the images look as if they have the correct url: <img src="images/foobar.jpg ...../> However the console shows the url with the double domain as pointed out in my original post. If I inspect the DOM and add the leading slash the image appear. When I debug the code I can see that the url of the image is set by concatenating the params which the tep_image function requires: tep_image('images/', ..... Therefore out of the box the url of the image is correct. If I switch to the http version the url is the same and it works. This is very weird!
  4. I have enabled SSL on my site and now all images are broken, when I view the console of the browser the urls are of the format: https://mydomain.com/https://mydomain.com/image.jpg The domain is duplicated. My configure.php is as follows: define('HTTP_SERVER', 'http://' . $_SERVER['SERVER_NAME']); define('HTTPS_SERVER', 'http://' . $_SERVER['SERVER_NAME']); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', $_SERVER['SERVER_NAME']); define('HTTPS_COOKIE_DOMAIN', $_SERVER['SERVER_NAME']); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', dirname($_SERVER['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_FS_ADMIN', $_SERVER['DOCUMENT_ROOT'] . '/******/'); /* db congig here */ define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('FONT_PATH', DIR_FS_ADMIN); define('DIR_WS_ICONS', 'images/icons/'); Similarly for the admin config define('HTTP_SERVER', 'http://' . $_SERVER['SERVER_NAME']); define('HTTPS_SERVER', 'https://' . $_SERVER['SERVER_NAME']); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', $_SERVER['SERVER_NAME']); define('HTTPS_COOKIE_DOMAIN', $_SERVER['SERVER_NAME']); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('HTTP_CATALOG_SERVER', 'http://' . $_SERVER['SERVER_NAME']); define('HTTPS_CATALOG_SERVER', 'https://' . $_SERVER['SERVER_NAME']); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); define('DIR_WS_ADMIN', '/****/'); define('DIR_FS_ADMIN', $_SERVER['DOCUMENT_ROOT'] . '/****/'); define('DIR_WS_HTTPS_ADMIN', '/1eiow3j4rj4ioj3iodjewghjfq1/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', $_SERVER['DOCUMENT_ROOT'] . '/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', $_SERVER['DOCUMENT_ROOT'] . '/includes/languages/'); define('DIR_FS_CATALOG_IMAGES', $_SERVER['DOCUMENT_ROOT'] . '/images/'); define('DIR_FS_CATALOG_MODULES', $_SERVER['DOCUMENT_ROOT'] . '/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 had a similar problem for a js includes which had the issue until I put a trailing slash in front, so I guess the clue is in this? Any ideas?
  5. spacebiscuit75

    Forgotten Password

    Thanks I didn't have it install
  6. Is the link missing from the sign-in page? I don't seem to be able to see it but I can access it manually.
  7. spacebiscuit75

    SMTP Authentication and OSCommerce

    In he example above should the edits be done to the email.php in the classes directory? Above it says to changes the classes.php file.
  8. spacebiscuit75

    Currency Selector

    Ok so I see the update has to be manually configured. I have implemented my own implementation that reads current rates into a file. When the home page is hit if the file is more than a few hours old I update the rates.
  9. spacebiscuit75

    Currency Selector

    Perfect thanks, I had missed it since it was not an installed module. I only saw it when I clicked the link to see uninstalled modules. On a related topic, I have instaled the ECB currency update module, how is the update triggered? Thanks.
  10. Is there a currency selector in the BS edition? I have searched around in the admin and I can't find one. My previous theme had a drop down on the header, I can implement myself but didn't want to re-invent the wheel if possible. Thanks,. Bob.
  11. Thanks just wanted to confirm that i wasn't doing anything that might be considered a hack. I appreciate the feedback and inpit above...
  12. I am not sure that setting a % on container-fluid is the way to go, the bootstrap docs say: "Use .container-fluid for a full width container, spanning the entire width of your viewport." So by definition the container should fill whichever viewpoint the user is on. I think adding the width % to the container class is a cleaner approach? I understand that using "!important" is bad practise since it forces styles to be inherited and these cannot be over-ridden, at least that was the thinking some time in the recent past I believe.
  13. I have just installed the Phoenix edition of OS. All looks good, an amazing job by the team. Thank you - I aim to donate some beer tokens in due course. My challenge now is to try and modify the bootsrap to replicate the previous responsive template which I was using. I have two questions: 1. Where do I over-ride bootstrap styling - I see that there is a user.css in the root of the project. Is it intended for this purpose 2. My second question is perhaps more of a Bootsrap question. For the large desktop breakpoint I want to use container width of 85%. Within the admin I have switched the class from 'container-fluid' => 'container'. I have then added the following inthe aforementioned user.css @media (min-width: 1200px) { .container { max-width: 85%; } } Is this good practice? Thanks, Bob.
  14. spacebiscuit75

    Uppercase Vars

    Ok so I have decided to do a clean install of the Phoenix edition and now I i will attempt to add the custom theme. So far so good, I have imported my customers, orders and products and I have no PHP errors even running PHP v.7.3.5 Thanks for the direction, much appreciated.
  15. spacebiscuit75

    Uppercase Vars

    Ok thanks this makes sense now. I think I originally looked into php upgrade options earlier this year. I downloaded the Frozen (or Edge I don't remember exactly) and it sat on my Dev machine for 6 months. Since then it seems the Phoenix has risen from the ashes! I will give it a try!
×