Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Aug 2012
    Posts
    11
    Plugin Contributions
    0

    bug Date.Timezone php.ini problems...

    Click image for larger version. 

Name:	phpinfo.jpg 
Views:	328 
Size:	22.3 KB 
ID:	10977Click image for larger version. 

Name:	error.jpg 
Views:	284 
Size:	18.3 KB 
ID:	10976Hi Guys,

    I know that there has been a lot written about this already. But I have been beating myself for about 2 weeks (well during the evening), trying to do a first time install of Zencart 1.5.

    I am running on a LAMP stack on Ubuntu 12.04. I have managed to configure Virtual Hosting to work. This is so that I can work with Joomla and Drupal for test sites and I was planning on doing the same with Zencart. Makes things a bit easier for me than having to hassle of using a test site online with all the permission issues etc..

    Anyhow, I went through the install documentation and did everything mentioned pre-install - essentially renaming the dist-configure.php to configure.php. Hit the URL and got presented with the install screen. However when I click the hyperlink "click here to begin installation" (prosume that will install it for me) I get the following error:

    Code:
    ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.
    I saw the post up on the ubuntu forum (http://ubuntuforums.org/showthread.php?t=1703807) as well as the one on the zen forum (http://www.zen-cart.com/showthread.p...-date-timezone).

    I have tried at length to go through these, but they don't seem to make any difference. As near as I can see it I have set the date.timezone setting. I even went to the length of dumping a small file which runs the
    Code:
    php_info();
    function to see what I set. This shows the default timezone set as "Europe/London". As far as I can see it I have set it correctly in the php.ini (located at /etc/php5/apache2), I set it to:

    Code:
    date.timezone = "europe/London"
    I have also tried adding it in the application_top.php file under zencart/includes. I included it in the file as follows:

    Code:
    <?php
    
    
    /**
     * application_top.php Common actions carried out at the start of each page invocation.
     *
     * Initializes common classes & methods. Controlled by an array which describes
     * the elements to be initialised and the order in which that happens.
     * see {@link  http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
     *
     * @package initSystem
     * @copyright Copyright 2003-2011 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: application_top.php 19731 2011-10-09 17:20:30Z wilt $
     */
    /**
     * inoculate against hack attempts which waste CPU cycles
     */
    @ini_set('date.timezone', 'Europe/London'); 
    
    $contaminated = (isset($_FILES['GLOBALS']) || isset($_REQUEST['GLOBALS'])) ? true : false;
    $paramsToAvoid = array('GLOBALS', '_COOKIE', '_ENV', '_FILES', '_GET', '_POST', '_REQUEST', '_SERVER', '_SESSION', 'HTTP_COOKIE_VARS', 'HTTP_ENV_VARS', 'HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_POST_FILES', 'HTTP_RAW_POST_DATA', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS');
    $paramsToAvoid[] = 'autoLoadConfig';
    $paramsToAvoid[] = 'mosConfig_absolute_path';
    $paramsToAvoid[] = 'hash';
    $paramsToAvoid[] = 'main';
    Has anyone got any ideas where I am going wrong or any log files I could try looking in? I attached a few screendumps to kinda show that I am not making it all up!

    I would appreciate any help in advance because this is really starting to do my head in.

    I like to think that I reasonably technically proffiant, I have moved and clonded drupal installs easily, and I have done the same thing with Joomla and I am not affraid to get my hands dirty. Beginning to doubt myself a lot at the moment...

    ...anyhow, thanks in advance of any posts / suggestions.

    Mark.
    Last edited by b14speedfreak; 14 Aug 2012 at 10:16 PM.

 

 

Similar Threads

  1. v151 ERROR: date.timezone not set in php.ini on local Windows 2008 server
    By jodean in forum Installing on a Windows Server
    Replies: 7
    Last Post: 22 Apr 2014, 06:22 PM
  2. v151 cant start install get error : date.timezone not set in php.ini.
    By spidermn in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 23 Aug 2013, 03:32 AM
  3. ERROR: date.timezone not set in php.ini
    By shilo in forum Installing on a Linux/Unix Server
    Replies: 14
    Last Post: 22 Mar 2013, 10:26 PM
  4. v150 ERROR: date.timezone not set in php.ini
    By merlin57 in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 30 Dec 2012, 01:47 AM
  5. PHP.ini date timezone issue
    By meteoros in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 25 Feb 2012, 07:03 PM

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