Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2011
    Posts
    135
    Plugin Contributions
    0

    Default Browser is prompting to download a file instead of showing a webpage.

    1.39h
    PHP Version 5.2.17
    MySQL Client API version 5.6.35
    landera.com.au is the site

    Hi, we have a Zencart site that lately seems to have a problem for some customers. When they click certain links they arent served up with a webpage or a proper result from their actions, they get a file download instead. Its like the server isnt doing what the PHP is telling it to do. I cant replicate this myself but Ive spoken to several people who have had the issue, no matter what browser or OS they tried. Its happening in the cart mostly I think, one particular case was clicking the X to delete an item in the cart, it was trying to download the X icon for the person. Another person was getting a php file as a download, when in the cart area.

    Its running a theme with several modifications, but none have been added recently, which is when this started happening, in the last 2 months, the site has been as it is for about 2 years.

    (Im working on a new site as I know 1.39h is old, but that is a few months away...)

    Is this a known issue at all? Could it be server related? or perhaps ISP related?

    Without having the same problem myself I cant test it out, we have several orders per day with no issue at all. Perhaps the server is running short on resources and it happens then? Its on a VPS with several other websites, I have allocated this site max resources via Litespeed (I think thats what it was called in WHM)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Browser is prompting to download a file instead of showing a webpage.

    Not related to any "known issues" or "bugs" with Zen Cart as far as I can recall.

    Given that you've got a very old PHP version (although that's required for your very old Zen Cart version), it could be that your hosting company has installed custom newer versions of PHP that could be selected, and something might be amuck with their configuration of that. Just a guess.

    Usually when a PHP file gets downloaded instead of "run", it's because the server's PHP engine didn't fire up for that "click" ... and that happens because of server configuration issues .... could be incorrect .htaccess directives, could be insufficient PHP threads, could be overloaded memory, could be a number of things. Could be it happens only when there's a ton of traffic hitting the site, like multiple search-engine spiders indexing while your customers are shopping, combined with a small VPS with insufficient resources to power that traffic volume.

    IMO the best approach is to find out exactly how to trigger it on-demand, and then ask your hosting company to investigate what's going on.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2011
    Posts
    135
    Plugin Contributions
    0

    Default Re: Browser is prompting to download a file instead of showing a webpage.

    Thanks for the reply, Ill look at the hosting side of thing with my hosting support team.

 

 

Similar Threads

  1. download button opens Acrobat instead of downloading file
    By charliepingpong in forum General Questions
    Replies: 3
    Last Post: 1 Dec 2011, 05:09 AM
  2. Download starts instead of shop showing?!?!?!?
    By flix in forum Installing on a Windows Server
    Replies: 5
    Last Post: 26 Dec 2010, 05:47 PM
  3. Download Webpage Forbidden
    By MarkThomas in forum General Questions
    Replies: 3
    Last Post: 15 Jul 2010, 03:18 AM
  4. Mp3 wont download instead of open in IE browser
    By cashewbsc in forum General Questions
    Replies: 2
    Last Post: 7 Jan 2010, 09:26 AM
  5. webpage does not fill browser window vertically
    By sartzsche in forum Basic Configuration
    Replies: 10
    Last Post: 1 Jun 2006, 08:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR