Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation since 03/24/2019 in Posts

  1. 1 point
    In CubeCart's administration backend, on the left navigation panel, click Email Templates. The Email Contents tab is a list of all the main contents of CubeCart's emails - click the flag of the language you wish to edit. The Email Templates tab is a list of the email's overall common content - click the Edit icon of Default Emails. On the page that is now shown, click the HTML Content tab. (Do Not Edit Anything. Possible bug here.) Hover the mouse over the blue squares to see a tooltip as to what protected content is here.
  2. 1 point
    Thanks Al. It's working great now.
  3. 1 point
    Thank you,I changed this part of code.I decided to move to other host,so I hope it will be than solved.But your work-arround code works,so at least for now it is some solution to solve this issue for a moment.Thank you.I always appreciate your quick and helpful advices.David
  4. 1 point
    Earlier, I said: The line numbers shown indicates that CubeCart is using the 'X-Forwarded-For' header. This then suggests that the web server is mis-reporting or mis-interpreting the IP address in that X-Forwarded-For header. So, we have verified that the SERVER_ADDR and REMOTE_ADDR is correct. It is the PHP function apache_request_headers() - line 523 - is where Cubecart is getting the value of the server address. Conclusion: There is an appliance just ahead of the web server that is adding/mangling the X-Forwarded-For entry in the Request Headers HTTP stream with an erroneous value. It is possible that this appliance (a reverse proxy server?) uses in a correct fashion the newer Forward header. See if Forward is in the two PHP Info tables discussed earlier. Until the above gets sorted, you can implement a work-around: In the function get_ip_address(), find: // Remove port if it exists $parts = explode(':',$address); $address = (empty($parts[0])) ? $address : $parts[0]; Change to: $address = $_SERVER['REMOTE_ADDR']; // Remove port if it exists $parts = explode(':',$address); $address = (empty($parts[0])) ? $address : $parts[0]; We will use the REMOTE_ADDR because we have verified in PHP Info that it is correct -- FOR YOU!


  • Newsletter

    Want to keep up to date with all our latest news and information?

    Sign Up
×
×
  • Create New...