Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Blank Screen After Installation on Fedora 12

Blank Screen After Installation on Fedora 12

Locked

Views: 1,881

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Feb 2010, 8:34 PM
#1
leeduke avatar

leeduke

New Zenner

Join Date:
Feb 2009
Posts:
1
Plugin Contributions:
0

Blank Screen After Installation on Fedora 12

After successfully installing Zen Cart on my Fedora 12 Linux Box, I immediately got a blank screen when I tried either the main page or the admin page. After using the information found in the tutorial, "I am getting a blank page (or blank part of a page)", I realized that Zen Cart was defining the function
date_diff in both includes/functions/functions_general.php and in admin/includes/functions/general.php.

I fixed this problem by enclosing both definitions in a
if(!function_defined("date_diff")){
function date_diff($date1, $date2) {

    //$date1  today, or any other day

    //$date2  date to check against



   $d1 = explode("-", $date1);

   $y1 = $d1[0];

   $m1 = $d1[1];

   $d1 = $d1[2];



   $d2 = explode("-", $date2);

   $y2 = $d2[0];

   $m2 = $d2[1];

   $d2 = $d2[2];



   $date1_set = mktime(0,0,0, $m1, $d1, $y1);

   $date2_set = mktime(0,0,0, $m2, $d2, $y2);



   return(round(($date2_set-$date1_set)/(60*60*24)));

  }

}

10 Feb 2010, 9:51 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Blank Screen After Installation on Fedora 12

You're using a version of PHP for which the version of Zen Cart you're using was not designed.
You'll need this PHP 5.3 patch: http://www.zen-cart.com/forum/showthread.php?t=140960

11 Feb 2010, 5:48 AM
#3
ukecom avatar

ukecom

New Zenner

Join Date:
Dec 2009
Location:
UK
Posts:
11
Plugin Contributions:
0

Re: Blank Screen After Installation on Fedora 12

Hello,

It can be a memory limit issue as well..whats the memory limit set?