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" xml: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> </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" xml: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> </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