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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

install error


Go to End


4 Posts   1502 Views

Avatar
ScottMac2009

Community Member, 5 Posts

25 July 2010 at 10:57pm

Hi there, have just completed uploading SS to my openHost server... have run the setup via install.php and am now seeing this error

[Warning] mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: unmatched close parenthesis
GET /silverstripe-v2.4.0/index.php/

Line 553 in /var/www/vhosts/hradmin.co.nz/subdomains/dev/httpdocs/silverstripe-v2.4.0/sapphire/core/SSViewer.php

Source

544 // i18n _t(...) - with entity only (no dots in namespace),
545 // meaning the current template filename will be added as a namespace.
546 // This applies only to "root" templates, not includes which should always have their namespace set already.
547 // See getTemplateContent() for more information.
548 $content = ereg_replace('<' . '% +_t\((\'([^\.\']*)\'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\) +%' . '>', '<?= _t(\''. $path[1] . '.\\2\\3\'\\4) ?>', $content);
549 // i18n _t(...)
550 $content = ereg_replace('<' . '% +_t\((\'([^\']*)\'|"([^"]*)")(([^)]|\)[^ ]|\) +[^% ])*)\) +%' . '>', '<?= _t(\'\\2\\3\'\\4) ?>', $content);
551
552 // i18n sprintf(_t(...),$argument) with entity only (no dots in namespace), meaning the current template filename will be added as a namespace
553 $content = ereg_replace('<' . '% +sprintf\(_t\((\'([^\.\']*)\'|"([^\."]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%' . '>', '<?= sprintf(_t(\''. $path[1] . '.\\2\\3\'\\4),\\6) ?>', $content);
554 // i18n sprintf(_t(...),$argument)
555 $content = ereg_replace('<' . '% +sprintf\(_t\((\'([^\']*)\'|"([^"]*)")(([^)]|\)[^ ]|\) +[^% ])*)\),\<\?= +([^\?]*) +\?\>) +%' . '>', '<?= sprintf(_t(\'\\2\\3\'\\4),\\6) ?>', $content);
556
557 // </base> isnt valid html? !?
558 $content = ereg_replace('<' . '% +base_tag +%' . '>', '<?= SSViewer::get_base_tag($val); ?>', $content);
559

Any help would be appreciative...

Cheers

Avatar
ScottMac2009

Community Member, 5 Posts

26 July 2010 at 8:29pm

If anyone has any ideas on a fix it be appreciated!

Cheers

Avatar
Sean

Forum Moderator, 922 Posts

27 July 2010 at 11:26pm

Interesting that the error is about "mb_ereg_replace", even though that line the error occurred on has "ereg_replace".

Is there anything special about php on your host? I've never seen this error before.

You could try supressing warnings and see if your site still functions. Generally its a good idea when running in live mode (production) anyway.

Avatar
ScottMac2009

Community Member, 5 Posts

28 July 2010 at 6:17pm

Hi Sean

Thanks for your reply

I had someone else comment on it saying that it had installed properly but it can't find the template?

look forward to a reply

Cheers