4574 Posts in 1385 Topics by 1376 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 947 Views |
-
install error

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);
559Any help would be appreciative...
Cheers
-
Re: install error

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.
-
Re: install error

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
| 947 Views | ||
|
Page:
1
|
Go to Top |


