Jump to:

4873 Posts in 7260 Topics by 1471 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » install error

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

    install error Link to this post

    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

  • ScottMac2009
    Avatar
    Community Member
    5 Posts

    Re: install error Link to this post

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

    Cheers

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: install error Link to this post

    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.

  • ScottMac2009
    Avatar
    Community Member
    5 Posts

    Re: install error Link to this post

    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

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