Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

myping

Archived
  • Posts

    2
  • Joined

  • Last visited

About myping

  • Birthday 01/01/1928

Profile Information

  • Real Name
    gh
  • Location
    Poland
  • Website

myping's Achievements

  1. Hi! Alex, first of all thanx for great contribution! After a couple of small modifications your contribution is working with my shop now. I had a few problems and i'd like to report them on this forum. Because of the configuration of my server I had to enable downloads by redirect (big files, up to 500 mb). It works good but only if the customers are downloading the files with 'normal' download function of the browser, i.e. if this is 'one stream download'. But if the first customer downloads his file with download accelerator like dTaOneClick (Firefox) and at this time (when he is downloading) the second customer starts the download of another file, the first download (accelerated) will break after a while. As you know all the 'old' symlinks are deleted before a new download by redirect starts. This is not a problem for a 'one stream download' but only for the accelerator. The problem seems the deleted path. My suspicion is that the accelerator sends a request for a new download stream and it knows only the deleted path, gets no correct response and breaks the download. In my case the customer gets not the requested file but the index.php of the shop. Maybe because i have installed the Search Engine Friendly URLs contribution, i don't know. I had no time and possibility to check the described behaviour on a shop without the SEF contribution. My solution was to disable the deleting of the symlinks in the download.php. Now they are deleted by a cron job and the accelerated downloads are working fine. -g.
  2. Hi! I had the same problem. It seems to me that this error occurs when your shop (catalog) is placed in the subdirectory. When it was in the main directory on the server (root) i hadn't these problems at all. Here is my modification of the code in url_rewrite.php: Find this comment: // Exit if the URL is not specified in the pages function The next line is: if ((strpos($url, 'action')) || (!$this->pages(current($url_array = explode('/', trim(ltrim($url_parts['path'], DIR_WS_HTTP_CATALOG), '/')))))) The ltrim function in the above code seems to work bad in some cases. It trims not only the slash ('/') from the file name but also the first letter of the file name. You get 'roduct_info.php' and not 'product_info.php'. The consequence: the file 'roduct_info.php' will be not rewritten because only two file names can be rewritten. They are defined by FILENAME_DEFAULT and FILENAME_PRODUCT_INFO in the array $page_array in the top of the file url_rewrite.php. All you have to do is to replace the ltrim function with another function to get correct file name. Replace the above mentioned line with if ((strpos($url, 'action')) || (!$this->pages(current($url_array = explode('/', substr($url_parts['path'], strlen(DIR_WS_HTTP_CATALOG))))))) This code works on my server very well. g.
×
×
  • Create New...