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

installation error.... in big trouble


Reply


2 Posts   1067 Views

Avatar
saadmalik

Community Member, 1 Post

8 November 2010 at 3:31am

hi

i am having hard time installing silverstrip cms, i am using win 7 and xampp 1.6.7 server to run SS cms, php version is 5, when ever i try to install silverstrip it gives me following error.

[Warning] domdocument::domdocument() expects parameter 2 to be long, string given
POST /silver/install.php

Line 20 in C:\xampp\htdocs\silver\sapphire\integration\HTMLValue.php
Source

11 /**
12 * @var DOMDocument
13 */
14 protected $document;
15
16 /**
17 * @param string $content
18 */
19 public function __construct($content = null) {
20 $this->document = new DOMDocument('1.0', 'utf-8');
21 $this->document->scrictErrorChecking = false;
22
23 $this->setContent($content);
24
25 parent::__construct();
26 }
Trace

domdocument->domdocument(1.0,utf-8)
Line 20 of HTMLValue.php
SS_HTMLValue->__construct(<p>Welcome to SilverStripe! This is the default homepage. You can edit this page by opening <a href="admin/">the CMS</a>. You can now access the <a href="http://doc.silverstripe.org">developer documentation</a>, or begin <a href="http://doc.silverstripe.org/doku.php?id=tutorials">the tutorials.</a></p>)
Line 73 of HtmlEditorField.php
HtmlEditorField->saveInto(Page)
Line 1415 of SiteTree.php
SiteTree->syncLinkTracking()
Line 1376 of SiteTree.php
SiteTree->onBeforeWrite()
Line 936 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

i have tried commenting php_domxml.dll but it didn't work. please help me solve this problem.

thx in anticipation

Avatar
Sean

Forum Moderator, 922 Posts

8 November 2010 at 10:09am

Edited: 08/11/2010 10:16am

The problem is the domxml extension. See here where a bogus bug was file against PHP: http://bugs.php.net/bug.php?id=32743&edit=1

You need to restart Apache for the change to take effect. Commenting out the entry in php.ini alone is not enough.

You may also wish to upgrade to XAMPP 1.7.3, since 1.6.7 is a little old and may have bugs.

Thanks,
Sean