Jump to:

4952 Posts in 14081 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Fatal Error

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2578 Views
  • Adizo
    Avatar
    Community Member
    12 Posts

    Fatal Error Link to this post

    i get this error after installation
    Fatal error: Maximum execution time of 60 seconds exceeded in C:\xampp\htdocs\silverstripe\sapphire\core\ManifestBuilder.php on line 458
    Does anyone know how i can fix this?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Fatal Error Link to this post

    Where does this occur? Any screenshots you could provide to give some context?

    You can also force the execution time up by setting a few things at the top of mysite/_config.php _before_ starting the installation:

    ini_set('max_execution_time', 300);
    set_time_limit(300);

  • Adizo
    Avatar
    Community Member
    12 Posts

    Re: Fatal Error Link to this post

    After trying to reinstall the is the error message i get:
    Installing SilverStripe...

    I am now running through the installation steps (this should take about 30 seconds)

    If you receive a fatal error, refresh this page to continue the installation

    Setting up 'mysite/_config.php'...
    Setting up C:\xampp\htdocs\silverstripe\mysite/_config.php
    Setting up '.htaccess' file...
    Setting up C:\xampp\htdocs\silverstripe\.htaccess
    Building database schema...

    [Warning] date() [function.date]: 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 'Europe/Paris' for '1.0/no DST' instead
    POST /silverstripe/install.php

    Line 89 in C:\xampp\htdocs\silverstripe\sapphire\core\model\fieldtypes\Datetime.php
    Source

    80     * Returns either the current system date as determined
    81     * by date(), or a mocked date through {@link set_mock_now()}.
    82     *
    83     * @return SS_Datetime
    84     */
    85    static function now() {
    86       if(self::$mock_now) {
    87          return self::$mock_now;
    88       } else {
    89          return DBField::create('SS_Datetime', date('Y-m-d H:i:s'));
    90       }
    91    }
    92    
    93    /**
    94     * Mock the system date temporarily, which is useful for time-based unit testing.
    95     * Use {@link clear_mock_now()} to revert to the current system date.
    Trace

    date(Y-m-d H:i:s)
    Line 89 of Datetime.php
    SS_Datetime::now()
    Line 1023 of DataObject.php
    DataObject->write()
    Line 1297 of SiteTree.php
    SiteTree->requireDefaultRecords()
    Line 231 of DatabaseAdmin.php
    DatabaseAdmin->doBuild(1)
    Line 1026 of install.php
    Installer->install(Array)
    Line 190 of install.php

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Fatal Error Link to this post

    Open up your php.ini file (in C:\xampp somewhere) and look for date.timezone and make it look like this:

    date.timezone = Europe/Paris

    This is a setting which should always be set in PHP and is therefore not a SilverStripe issue.

    Sean

  • Adizo
    Avatar
    Community Member
    12 Posts

    Re: Fatal Error Link to this post

    ok. will do that now and get back to you.

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Fatal Error Link to this post

    You can refer to http://php.net/manual/en/timezones.php if you're not sure which timezone should be set.

  • Adizo
    Avatar
    Community Member
    12 Posts

    Re: Fatal Error Link to this post

    same error message. i restarted server... did everything. but same problem

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Fatal Error Link to this post

    What did you set the date.timezone setting as?

    2578 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.