Jump to:

23456 Posts in 18905 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » mbregex compile error?!

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1 2
Go to End
Author Topic: 2260 Views
  • UncleCheese
    Avatar
    4085 Posts

    mbregex compile error?! Link to this post

    My client switched hosts, and now Silverstripe is throwing an error on every page:

    mb_ereg_replace() [function.mb-ereg-replace]: mbregex compile err: unmatched close parenthesis
    GET /?flush=1

    Line 494 in sapphire/core/SSViewer.php

    Surely this has something to do with the mbregex module configuration? I've seen very little written about this. I've tried changing the mbstring.func_overload to a number of different values. Nothing seems to work. Very frustrating!

  • Dave L
    Avatar
    Community Member
    56 Posts

    Re: mbregex compile error?! Link to this post

    I just got the same error installing base onto my openhost account, any help out there?

  • UncleCheese
    Avatar
    4085 Posts

    Re: mbregex compile error?! Link to this post

    Strap yourself in. You're in for a wild ride. This error sucks.

  • youngmug
    Avatar
    Community Member
    19 Posts

    Re: mbregex compile error?! Link to this post

    Based on some info over in the all pages display blank? topic, it's an issue with OpenHost's PHP configuration.

    You'll need to set mbstring.func_overload to 0 in php.ini.

  • Dave L
    Avatar
    Community Member
    56 Posts

    Re: mbregex compile error?! Link to this post

    Thanks,

    I've tried the ini_set and .htaccess options but no joy, so I'm waiting for them to complete a ticket re: https://support.webhost.co.nz/index.php?group=openhost&_m=knowledgebase&_a=viewarticle&kbarticleid=380

    Cheers youngmug

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: mbregex compile error?! Link to this post

    EDIT: Yeah, what youngmug said

  • UncleCheese
    Avatar
    4085 Posts

    Re: mbregex compile error?! Link to this post

    I've set the mbstring.overload every which way, and although it quiets the error sometimes, it still shows up intermittently.

  • Dave L
    Avatar
    Community Member
    56 Posts

    Re: mbregex compile error?! Link to this post

    >I've set the mbstring.overload every which way, and although it quiets the error sometimes, it still shows up intermittently.

    Eek, that's not good. Is this on a variety of hosts, or one host in particular? Is the error always thrown on the same piece of code?

    2260 Views
Page: 1 2
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.