Jump to:

4938 Posts in 16688 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » SS 2.4 RC1 - install problem. [Warning] SS_Cache::require_once(Zend/Cache.php)

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: 2454 Views
  • MooseMan
    Avatar
    Community Member
    3 Posts

    SS 2.4 RC1 - install problem. [Warning] SS_Cache::require_once(Zend/Cache.php) Link to this post

    Hi

    I am trying to install a clean 2.4 RC1 and I get this when running the install script
    ----------------------

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

    * Setting up 'mysite/_config.php'...
    * Setting up /var/www/vhosts/server03.dk/subdomains/sandbox/httpdocs/mysite/_config.php
    * Setting up '.htaccess' file...
    * Setting up /var/www/vhosts/server03.dk/subdomains/sandbox/httpdocs/.htaccess
    * Building database schema...
    [Warning] SS_Cache::require_once(Zend/Cache.php) [function.SS-Cache-require-once]: failed to open stream: No such file or directory
    POST /install.php

    Line 194 in /var/www/vhosts/server03.dk/subdomains/sandbox/httpdocs/sapphire/cache/Cache.php
    Source

    185       $backend = self::$backends[$backend_name];
    186
    187       $basicOptions = array('cache_id_prefix' => $for);
    188       
    189       if ($cache_lifetime >= 0) $basicOptions['lifetime'] = $cache_lifetime;
    190       else $basicOptions['caching'] = false;
    191       
    192       $frontendOptions = $frontendOptions ? array_merge($basicOptions, $frontendOptions) : $basicOptions;
    193       
    194       require_once 'Zend/Cache.php';
    195       return Zend_Cache::factory($frontend, $backend[0], $frontendOptions, $backend[1]);
    196    }
    197 }

    Trace
    o SS_Cache::factory
    Line 194 of Cache.php
    o SS_Cache::factory(aggregate)
    Line 36 of Aggregate.php
    o Aggregate::cache()
    Line 41 of Aggregate.php
    o Aggregate::flushCache(Group)
    Line 2751 of DataObject.php
    o DataObject->flushCache()
    Line 1066 of DataObject.php
    o DataObject->write()
    Line 486 of Group.php
    o Group->requireDefaultRecords()
    Line 215 of DatabaseAdmin.php
    o DatabaseAdmin->doBuild(1)
    Line 1012 of install.php
    o Installer->install(Array)
    Line 190 of install.php

    -----
    I have no clue what to do.
    I hope someone can help.

    thanks

    Attached Files
  • Judge
    Avatar
    Community Member
    79 Posts

    Re: SS 2.4 RC1 - install problem. [Warning] SS_Cache::require_once(Zend/Cache.php) Link to this post

    I'm getting an error at the some point (though I have PHP error display turned off for the server, so am not seeing the error message) but it gets to the same point and then just stops - the page is truncated after "Building database schema...".

    It looks like it has something to do with the search path. There are many places in the code that include Zend library code using this construct:

    require_once 'Zend/Foo.php';

    Unless the search path is changed at run-time to include the path to Zend, I'm not sure how the include would even work. This instance (the one not working for me) is on a different server from previous working instances, so I wonder if SS was actually calling up Zend library components from the server rather than from its own installation?

    -- Jason

    Edit: sorry, turns out mine is a different error:

    Fatal error: Class 'DOMDocument' not found in /home/example/public_html/silverstripe/sapphire/integration/HTMLValue.php on line 20

  • OwenW
    Avatar
    Community Member
    45 Posts

    Re: SS 2.4 RC1 - install problem. [Warning] SS_Cache::require_once(Zend/Cache.php) Link to this post

    In reverse order...

    Judge - Your error is because you are missing the php-xml (or -enable-xml compile option if self built) package from your installation.

    MooseMan - Check this post - http://silverstripe.org/installing-silverstripe/show/281227 I'm pretty sure that this covers the issue that you are seeing, along with the bug report that has been raised.

    Cheers
    Owen

  • Judge
    Avatar
    Community Member
    79 Posts

    Re: SS 2.4 RC1 - install problem. [Warning] SS_Cache::require_once(Zend/Cache.php) Link to this post

    OwenW - Yes, this fixed it:

    # yum install php-xml

    Installs like a dream now. I wonder if this needs to be a part of the pre-flight checks in the install process?

    MooseMan - apologies for the thread hi-jack.

    -- JJ

  • MooseMan
    Avatar
    Community Member
    3 Posts

    Re: SS 2.4 RC1 - install problem. [Warning] SS_Cache::require_once(Zend/Cache.php) Link to this post

    Hi
    thanks for you reply.

    well, I did see that post ( http://silverstripe.org/installing-silverstripe/show/281227 ) and I didn't think it was the same. Did some more time reading the ticket on trac and it seems that I dont even have the files mentioned
    /sapphire/thirdparty/Zend/Cache.php does not exsist...

    Now Im trying to re download 2.4.0 RC1 again, and I will try to install on a new subdomain - again... will be back with results.

    /MM

    ------

    later same evening...

    Installed again, didn't get the error (dont know why).
    process halts when trying to redierct me to : /home/successfullyinstalled?flush=1 returns 404.

    Hmm - getting tired ;(

    //MM

  • OwenW
    Avatar
    Community Member
    45 Posts

    Re: SS 2.4 RC1 - install problem. [Warning] SS_Cache::require_once(Zend/Cache.php) Link to this post

    Hi MooseMan,

    The new issue sounds kinda like you have a rewrite issue, or that the initial build has indeed been unsuccessful.

    Can you get the the home page wthout the GET var?

    Cheers
    Owen

  • MooseMan
    Avatar
    Community Member
    3 Posts

    Re: SS 2.4 RC1 - install problem. [Warning] SS_Cache::require_once(Zend/Cache.php) Link to this post

    I don't know what that means (GET var). Sorry I really sound like I know nothing at all.
    I couldn't get any pages any way I tried.

    I'm trying to reinstall RC1 again.

    /MM

    Same problem again

    /home/successfullyinstalled?flush=1

    gives 404

    //MM

    OK, now I dont get anything anymore...
    third time worked.

    now it is up and running
    ///MM

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