Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2012
    Posts
    3
    Plugin Contributions
    0

    application error Product downloads stopped working after host changed PHP version, had been fine

    Zencart version 1.5.0, hosting service Hosting Matters. I have a store with ebooks that customers download, and it had been working very well. Then my customers started getting an error after they had ordered and paid for their books, preventing the download (Forbidden --You don't have permission to access /zencart/pub/.kwtytuyvvcxztfxs-1340634066/RavensChildrenARC.mobi on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.)

    I had done nothing to change my Zencart store. My hosting service says the only change they did to the server hosting my store was change the php version from 5.2 to 5.3, but I think if that had caused problems the forum would be in flames The only other issue I noticed was an error message when I log in to the zencart admin, concerning timestamps that I could work around (supposedly zencart not recognizing the valid timezone set in the system php.ini) would that somehow cause download errors? My site error log shows nothing. I looked in the /zencart/cache log files, which only show the timestamp error:

    Code:
    date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/chaseadv/public_html/zencart/includes/counter.php on line 21
    [05-Jul-2012 20:26:20 UTC] PHP Warning:  mktime() [<a href='function.mktime'>function.mktime</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /home/chaseadv/public_html/zencart/includes/counter.php on line 53
    [05-Jul-2012 20:26:20 UTC] PHP Warning:  strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. You are
    Thanks in advance,
    Sabrina

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Product downloads stopped working, had been fine

    IF the host is the only one who has made ANY changes, then the host is where I would look for a fix. It may be that their changes also included a different CHMOD for the folders. The forbidden tends to tell me that's the solution but the 404 does cloud the issue.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Product downloads stopped working, had been fine

    The PHP error messages you quoted are evidence that the hosting company's change to the new PHP version left out an important step: defining the date.timezone setting for the server.

    You should report those messages to your hosting company so they can fix the server's configuration.
    .

    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Product downloads stopped working, had been fine

    Further, if you are trying to serve downloads of files ending in ".mobi", then you should update your /pub/.htaccess file and add mobi to the list of valid extensions, else 403-forbidden responses will naturally occur.
    .

    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.

  5. #5
    Join Date
    Jul 2012
    Posts
    3
    Plugin Contributions
    0

    Default Re: Product downloads stopped working, had been fine

    Yep, I modified the .htaccess in the download folder some time ago, before this issue showed up. The hosting service is aware of the problem but hasn't figured out the cause, so I thought asking the forum was a good idea. Just in case someone had similar problems. Thanks!
    added: the problem shows up with epub files too, which are allowed by default in the .htaccess files. Pretty sure they aren't the source of the problem.
    Last edited by schase; 6 Jul 2012 at 01:17 AM. Reason: more wisdom to add

  6. #6
    Join Date
    Jul 2012
    Posts
    3
    Plugin Contributions
    0

    Default Re: Product downloads stopped working, had been fine

    Further update:
    My hosting service switched me to a server that did not have the PHP update and everything works again. They told me that they did have the date.timezone defined in the systemwide php.ini but that for some reason Zencart wasn't picking it up. To me that sounds like there is some override setting or file that Zencart is using in preference to the systemwide setting. (but only in php 5.3??)

 

 

Similar Threads

  1. v151 Downloads Stopped Working - Now Redlights on all downloads
    By AllSavvy in forum General Questions
    Replies: 3
    Last Post: 10 May 2013, 04:44 PM
  2. Paypal IPN not working after upgrading PHP version
    By mattf in forum Managing Customers and Orders
    Replies: 2
    Last Post: 4 Nov 2010, 01:40 PM
  3. Replies: 2
    Last Post: 8 Jun 2008, 07:34 AM
  4. zen-cart www.uk-fine-art-gallery.co.uk just stopped working
    By shopserver in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 22 May 2007, 02:16 AM

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