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

install error


Reply

4 Posts   1124 Views

Avatar
ScottMac2009

25 July 2010 at 10:57pm Community Member, 5 Posts

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

26 July 2010 at 8:29pm Community Member, 5 Posts

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

Cheers

Avatar
Sean

27 July 2010 at 11:26pm Forum Moderator, 921 Posts

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

28 July 2010 at 6:17pm Community Member, 5 Posts

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