Jump to:

4952 Posts in 14417 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Building database schema... Fatal error: Call to undefined method Hierarchy::extradbfields()

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

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

Page: 1
Go to End
Author Topic: 1795 Views
  • jarvis
    Avatar
    Community Member
    1 Post

    Building database schema... Fatal error: Call to undefined method Hierarchy::extradbfields() Link to this post

    Hi All,

    Am new so my apologies if I don't know what I'm talking about.

    I'm trying to install Silverstripe locally. However, I get the following error:
    Building database schema...
    Fatal error: Call to undefined method Hierarchy::extradbfields() in C:\Program Files\Apache Group\Apache2\htdocs\silverstripe\sapphire\core\model\DataObjectDecorator.php on line 67

    I've tried to refresh numerous times as per the comment above the install progress:
    If you receive a fatal error, refresh this page to continue the installation

    Unfortunately, this had no effect what-so-ever.

    I'm running the following:
    PHP Version: 5.0.5
    Apache: Apache/2.0.63 (Win32) PHP/5.0.5
    MySQl Client API version : 4.1.7

    I hope that helps. Thanks in advanced,

    jarvis

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Building database schema... Fatal error: Call to undefined method Hierarchy::extradbfields() Link to this post

    What version of SS are you trying to install? trying to use any modules as well? extraDBFields was renamed extraStatics quite a while ago so code shouldn't be calling that

  • megerlin
    Avatar
    Community Member
    1 Post

    Re: Building database schema... Fatal error: Call to undefined method Hierarchy::extradbfields() Link to this post

    I have this problem too with the latest stable version (2.3.6).
    I have no idea how to fix that. Changing extraDBFields to extraStatics some lines above only leads to other errors.

    I use PHP Version 5.0.5 too. Maybe this has something to do with that fact?
    I also tried Version 2.3.5, this did fail too.

    With version 2.3.1 I got follwing error:
    [...]
    # Building database schema...

    Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /xxx/httpdocs/sapphire/security/Member.php on line 982

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Building database schema... Fatal error: Call to undefined method Hierarchy::extradbfields() Link to this post

    I think this may be an incompatibility issue with some of the code in Member.php (the array type hint) for the arguments to a method that don't work in PHP 5.0.5.

    EDIT: I found some information here that indicates array typing wasn't introduced until PHP 5.1: http://php.net/manual/en/language.oop5.typehinting.php hence why it won't work.

    1795 Views
Page: 1
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.