Forums / General Questions / Product download page blank - More fun than it sounds

Product download page blank - More fun than it sounds

Views: 768

Results 1 to 7 of 7
7 Nov 2012, 5:54 PM
#1
sgtpepper avatar

sgtpepper

New Zenner

Join Date:
Jan 2008
Posts:
15
Plugin Contributions:
0

Product download page blank - More fun than it sounds

When clicking "Download Now" users are taken to a blank page, URL: /index.php?main_page=download&order=172&id=70 - so it seems it's not even getting to the URL forwarding, and there's no aliases in pub which seems to confirm this.

.htaccess is in place in both the download and pub folders and the file type is simply .pdf so the type shouldn't be an issue. pub has 777 permissions, download has 705 permissions. Attribute's download count is fine, attribute redirect is on. ZC v.1.3.9h

Last year it was working fine (my client doesn't use the download feature often) and now it's magically broken. I suspect the host (GoDaddy) upgraded the PHP version from 4 to 5 as there was a php.ini file but no php5.ini and the phpinfo states v5.2.17. I created the new php5.ini with the same info as 4:

register_globals = on
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="

[Zend]
zend_extension=/usr/local/zo/ZendExtensionManager.so
zend_extension=/usr/local/zo/4_3/ZendOptimizer.so

No change though.

Far as I can recall this setup has no plugins or customizations to zen cart code...

Any suggestions? I am stumped on this one.

7 Nov 2012, 6:42 PM
#3
sgtpepper avatar

sgtpepper

New Zenner

Join Date:
Jan 2008
Posts:
15
Plugin Contributions:
0

Re: Product download page blank - More fun than it sounds

Thanks for the link, I've gone through each item in the blank-page FAQ and didn't come up with anything.

The log only shows errors from when the layout was being customized after installation, there are no errors after the date where the file downloads were working correctly (last year).

The files could be downloaded fine before and now via FTP so it seems they are not corrupt. (Plus the URL for the download is incorrect so it's not getting to the files yet)

And strict error reporting gave me nada. It gave me the nice red box on all other pages saying it was on, but when coming to /index.php?main_page=download&order=172&id=72 it was still blank.

It seems like this should be something easy if it was working before, and if the PHP version was upgraded, it seems like a simple php5.ini fix or something like that. I wouldn't assume Zen Cart would have PHP4-only code that would stop working now that it's on php5 and I would expect some sort of error to generate in that case. I suppose it's worth checking into the pub URL and alias generation code just for kicks...

7 Nov 2012, 7:37 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Product download page blank - More fun than it sounds

There were changes to Zen Cart 1.5.0 that were required for PHP 5.3 and some to 1.5.1 that are required for PHP 5.4. What version of PHP are you using for your 1.3.9h Zen Cart?

7 Nov 2012, 7:55 PM
#5
sgtpepper avatar

sgtpepper

New Zenner

Join Date:
Jan 2008
Posts:
15
Plugin Contributions:
0

Re: Product download page blank - More fun than it sounds

PHP version is 5.2.17

7 Nov 2012, 8:09 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Product download page blank - More fun than it sounds

Sounds like your /includes/modules/pages/download/header_php.php file is missing or damaged.

Shouldn't be a PHP5 issue, unless your site has customized code or addons added to it that aren't compatible with PHP5. Zen Cart v1.3.9h itself should work fine with PHP 5.2

.
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.

7 Nov 2012, 10:23 PM
#7
sgtpepper avatar

sgtpepper

New Zenner

Join Date:
Jan 2008
Posts:
15
Plugin Contributions:
0

Re: Product download page blank - More fun than it sounds

That'd be the one! Downloaded a fresh copy of the file, uploaded and all is well again. Thanks for the help guys!