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

Has anyone been able to install daily builds


Reply

3 Posts   1077 Views

Avatar
gman

16 September 2010 at 7:01am Community Member, 11 Posts

I can't get the daily builds installed. Anyone get the daily builds installed and if so what process did you follow?

Avatar
gman

16 September 2010 at 7:19am (Last edited: 16 September 2010 7:28am), Community Member, 11 Posts

Running PHP 5.3.3 on Windows Server 2003 SP3.

I decided to try this by installing 2.4.1 and following the instructions to upgrade an existing installation. When I get to db/build?flush=1, I receive the following error:

[User Warning] There are two files both containing the same class: 'pathtosilverstrip/sapphire/core/model/YamlFixture.php' and ''. This might mean that the wrong code is being used.
GET /silverstripedb/db/build?flush=1

Line 455 in pathtosilverstrip\sapphire\core\ManifestBuilder.php
Source

446          if($class['extends']) self::$extendsArray[$class['extends']][$className] = $className;
447          if(isset($class['interfaces'])) foreach($class['interfaces'] as $interface) {
448             self::$implementsArray[$interface][$className] = $className;
449          }
450          
451          if(isset(self::$classArray[$className])) {
452             $file1 = self::$classArray[$className]['file'];
453             $file2 = $class[$className];
454             user_error("There are two files both containing the same class: '$file1' and " .
455                "'$file2'. This might mean that the wrong code is being used.", E_USER_WARNING);
456          }
457          
458          self::$classArray[$className] = $class;
459       }
460
461       foreach($interfaces as $interface) {

Trace

* There are two files both containing the same class: 'pathtosilverstrip/sapphire/core/model/YamlFixture.php' and ''. This might mean that the wrong code is being used.
Line 455 of ManifestBuilder.php
* ManifestBuilder::parse_file(pathtosilverstrip/sapphire/dev/YamlFixture.php)
Line 375 of ManifestBuilder.php
* ManifestBuilder::allClasses(Array)
Line 253 of ManifestBuilder.php
* ManifestBuilder::get_manifest_info(pathtosilverstrip,Array)
Line 110 of ManifestBuilder.php
* ManifestBuilder::create_manifest_file()
Line 91 of DatabaseAdmin.php
* DatabaseAdmin->build(SS_HTTPRequest)
Line 193 of Controller.php
* Controller->handleAction(SS_HTTPRequest)
Line 135 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
* Director::direct(/db/build)
Line 127 of main.php

Avatar
chinni

21 November 2011 at 7:27pm Community Member, 7 Posts

hi

u created the two classes as the same name

my be you wrote the same class names are ManifestBuilder