Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

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

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

SS3 Install Issues Zend Loader


Reply

3 Posts   2002 Views

Avatar
zenmonkey

2 August 2012 at 10:02am Community Member, 528 Posts

I've been trying to install SS3 and I keep getting the following error from my server

POST /install.php

Line 198 in /var/www/vhosts/x/httpdocs/framework/thirdparty/Zend/Loader.php
Source

189
190 foreach (self::explodeIncludePath() as $path) {
191 if ($path == '.') {
192 if (is_readable($filename)) {
193 return true;
194 }
195 continue;
196 }
197 $file = $path . '/' . $filename;
198 if (is_readable($file)) {
199 return true;
200 }
201 }
202 return false;
203 }
204
Trace

is_readable(/usr/share/pear/Zend/Translate/Adapter/I18nRailsYamlAdapter.php)
Loader.php:198
Zend_Loader::isReadable(Zend/Translate/Adapter/I18nRailsYamlAdapter.php)
Translate.php:126
Zend_Translate->setAdapter(Array)
Translate.php:93
Zend_Translate->__construct(Array)
i18n.php:1579
i18n::get_translators()
i18n.php:1490
i18n::_t(AssetAdmin.NEWFOLDER,NewFolder,,)
Core.php:393
_t(AssetAdmin.NEWFOLDER,NewFolder)
Folder.php:34
Folder->populateDefaults()
DataObject.php:353
DataObject->__construct()
ReflectionClass->newInstance()
Injector.php:823
InjectionCreator->create(Injector,Folder,Array)
Injector.php:470
Injector->instantiate(Array,Folder)
Injector.php:763
Injector->get(Folder)
Core.php:374
singleton(Folder)
DatabaseAdmin.php:203
DatabaseAdmin->doBuild(1)
install.php5:1179
Installer->install(Array)
install.php5:241
include(/var/www/vhosts/x/httpdocs/framework/dev/install/install.php5)
install.php:23
include(/var/www/vhosts/x/httpdocs/framework/dev/install/install.php)
install.php:13

I've installed previous versions on SS on the same server without issue

Avatar
mac

21 August 2012 at 1:26am Community Member, 4 Posts

I have the same error.
At line 202 SS looks for
file Zend/Translate/Adapter/I18nRailsYamlAdapter.php
in this pathes
/<pathToMyHttpdocs>/silverstripe/framework
/<pathToMyHttpdocs>/silverstripe/framework/parsers
/<pathToMyHttpdocs>/silverstripe/framework/thirdparty
.
/usr/local/lib/php

<pathToMyHttpdocs> is the absolute path to the webroot of the apache-server and OS is suse-linux.
There is no file I18nRailsYamlAdapter.php

After the installation i get this error.

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 /srv/www/vhosts/urmaso.de/httpdocs/silverstripe/mysite/_config.php
Setting up '.htaccess' file...
Setting up /srv/www/vhosts/urmaso.de/httpdocs/silverstripe/.htaccess
Building database schema...

[Warning] is_readable(): open_basedir restriction in effect. File(/usr/local/lib/php/Zend/Translate/Adapter/I18nRailsYamlAdapter.php) is not within the allowed path(s): (/srv/www/vhosts/urmaso.de/httpdocs:/tmp:/usr/local/lib/php/Zend/Translate/Adapter)
POST /silverstripe/install.php

Line 202 in /srv/www/vhosts/urmaso.de/httpdocs/silverstripe/framework/thirdparty/Zend/Loader.php
Source

193 }
194 foreach (self::explodeIncludePath() as $path) {
195 if ($path == '.') {
196 if (is_readable($filename)) {
197 return true;
198 }
199 continue;
200 }
201 $file = $path . '/' . $filename;
202 if (is_readable($file)) {
203 return true;
204 }
205 }
206 return false;
207 }
208

Trace
is_readable(/usr/local/lib/php/Zend/Translate/Adapter/I18nRailsYamlAdapter.php)
Loader.php:202
Zend_Loader::isReadable(Zend/Translate/Adapter/I18nRailsYamlAdapter.php)
Translate.php:126
Zend_Translate->setAdapter(Array)
Translate.php:93
Zend_Translate->__construct(Array)
i18n.php:1579
i18n::get_translators()
i18n.php:1490
i18n::_t(AssetAdmin.NEWFOLDER,NewFolder,,)
Core.php:393
_t(AssetAdmin.NEWFOLDER,NewFolder)
Folder.php:34
Folder->populateDefaults()
DataObject.php:353
DataObject->__construct()
ReflectionClass->newInstance()
Injector.php:823
InjectionCreator->create(Injector,Folder,Array)
Injector.php:470
Injector->instantiate(Array,Folder)
Injector.php:763
Injector->get(Folder)
Core.php:374
singleton(Folder)
DatabaseAdmin.php:203
DatabaseAdmin->doBuild(1)
install.php5:1183
Installer->install(Array)
install.php5:245
include(/srv/www/vhosts/urmaso.de/httpdocs/silverstripe/framework/dev/install/install.php5)
install.php:23
include(/srv/www/vhosts/urmaso.de/httpdocs/silverstripe/framework/dev/install/install.php)
install.php:13

I tried to install SS3 under Xampp ( Windows Xp ) with the same success but a different error

Building database schema...

Warning: require_once(zend_translate_railsyaml/library/Translate/Adapter/RailsYAML.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\silverstripe\framework\i18n\i18nRailsYamlAdapter.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'zend_translate_railsyaml/library/Translate/Adapter/RailsYAML.php' (include_path='C:\xampp\htdocs\silverstripe/framework;C:\xampp\htdocs\silverstripe/framework/parsers;C:\xampp\htdocs\silverstripe/framework/thirdparty;.;\xampp\php\PEAR') in C:\xampp\htdocs\silverstripe\framework\i18n\i18nRailsYamlAdapter.php on line 3

Avatar
mac

21 August 2012 at 1:58am Community Member, 4 Posts

I solved my problem. In another article in this forum i found the solution. In php.ini you must set

safe_mode = Off
open_basedir = Off

I think the significant change is the open_basedir. In my environment open_basedir was set to the documentroot.
If you dont't have access to php.ini, you can try to set it in .htaccess

php_admin_flag safe_mode off
php_admin_flag open_basedir off
or
php_admin_value open_basedir "0"