Jump to:

4952 Posts in 14282 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Installation Problem - Help!!!

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: 1076 Views
  • Chillyr
    Avatar
    Community Member
    5 Posts

    Installation Problem - Help!!! Link to this post

    Hi,

    I would really appreciate it if someone could give me some help, I am getting the following error after installation -

    [Warning] mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: unmatched close parenthesis
    GET /OM/index.php/home/successfullyinstalled?flush=1
    Line 581 in /var/www/vhosts/onlinementor.co.nz/httpdocs/OM/sapphire/core/SSViewer.php

    Source
    572       // i18n _t(...) - with entity only (no dots in namespace),
    573       // meaning the current template filename will be added as a namespace.
    574       // This applies only to "root" templates, not includes which should always have their namespace set already.
    575       // See getTemplateContent() for more information.
    576       $content = ereg_replace('<' . '% +_t\((\'([^\.\']*)\'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\) +%' . '>', '<?= _t(\''. $path[1] . '.\\2\\3\'\\4) ?>', $content);
    577       // i18n _t(...)
    578       $content = ereg_replace('<' . '% +_t\((\'([^\']*)\'|"([^"]*)")(([^)]|\)[^ ]|\) +[^% ])*)\) +%' . '>', '<?= _t(\'\\2\\3\'\\4) ?>', $content);
    579
    580       // i18n sprintf(_t(...),$argument) with entity only (no dots in namespace), meaning the current template filename will be added as a namespace
    581       $content = ereg_replace('<' . '% +sprintf\(_t\((\'([^\.\']*)\'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%' . '>', '<?= sprintf(_t(\''. $path[1] . '.\\2\\3\'\\4),\\6) ?>', $content);
    582       // i18n sprintf(_t(...),$argument)
    583       $content = ereg_replace('<' . '% +sprintf\(_t\((\'([^\']*)\'|"([^"]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%' . '>', '<?= sprintf(_t(\'\\2\\3\'\\4),\\6) ?>', $content);
    584
    585       // </base> isnt valid html? !?
    586       $content = ereg_replace('<' . '% +base_tag +%' . '>', '<?= SSViewer::get_base_tag($val); ?>', $content);
    587
    Trace
    mb_ereg_replace(<% +sprintf\(_t\(('([^\.']*)'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%>,<?= sprintf(_t('Page.ss.\2\3'\4),\6) ?>,<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" > <head> <% base_tag %> <link rel="stylesheet" type="text/css" href="tutorial/css/layout.css" /> <link rel="stylesheet" type="text/css" href="tutorial/css/typography.css" /> <link rel="stylesheet" type="text/css" href="tutorial/css/form.css" /> </head> <body> <div id="Main"> <div id="Header"> <h1>&nbsp;</h1> </div> <div id="ContentContainer"> <div id="Content" class="typography"> <?= $item->XML_val("Content",null,true) ?> <?= $item->XML_val("Form",null,true) ?> </div> </div> <div id="Footer"> <span>Visit <a href="http://www.silverstripe.org" title="Visit www.silverstripe.org">www.silverstripe.org</a>; to download the CMS</span> </div> </div> <?= $item->XML_val("SilverStripeNavigator",null,true) ?> </body> </html> )
    Line 581 of SSViewer.php
    SSViewer::parseTemplateContent(<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" > <head> <% base_tag %> <link rel="stylesheet" type="text/css" href="tutorial/css/layout.css" /> <link rel="stylesheet" type="text/css" href="tutorial/css/typography.css" /> <link rel="stylesheet" type="text/css" href="tutorial/css/form.css" /> </head> <body> <div id="Main"> <div id="Header"> <h1>&nbsp;</h1> </div> <div id="ContentContainer"> <div id="Content" class="typography"> $Content $Form </div> </div> <div id="Footer"> <span>Visit <a href="http://www.silverstripe.org" title="Visit www.silverstripe.org">www.silverstripe.org</a>; to download the CMS</span> </div> </div> $SilverStripeNavigator </body> </html> ,/var/www/vhosts/onlinementor.co.nz/httpdocs/OM/themes/tutorial/templates/Page.ss)
    Line 385 of SSViewer.php
    SSViewer->process(ViewableData_Customised)
    Line 197 of Controller.php
    Controller->handleAction(SS_HTTPRequest)
    Line 137 of RequestHandler.php
    RequestHandler->handleRequest(SS_HTTPRequest)
    Line 147 of Controller.php
    Controller->handleRequest(SS_HTTPRequest)
    Line 199 of ContentController.php
    ContentController->handleRequest(SS_HTTPRequest)
    Line 67 of ModelAsController.php
    ModelAsController->handleRequest(SS_HTTPRequest)
    Line 281 of Director.php
    Director::handleRequest(SS_HTTPRequest,Session)
    Line 124 of Director.php
    Director::direct(home/successfullyinstalled)
    Line 127 of main.php
    require_once(/var/www/vhosts/onlinementor.co.nz/httpdocs/OM/sapphire/main.php)
    Line 63 of index.php

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Installation Problem - Help!!! Link to this post

    You may want to try applying this patch - http://open.silverstripe.org/ticket/3936

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