Results 1 to 4 of 4

Thread: PCRE not compiled with utf-8 support - error

  1. #1
    Member
    Join Date
    Mar 2004
    Location
    New England
    Posts
    42

    Default PCRE not compiled with utf-8 support - error

    cpanel73
    I am trying to install Easy 2 Gallery 1.4.0 in modxcms 1.0.4 = I get the error:

    Fatal error: PCRE is not compiled with UTF-8 support in /home/xxxxx/xxxxx/assets/modules/easy2/includes/utf8/utf8.php on line 49

    Any knowledge of this problem?
    Thanks

  2. #2
    Senior Member
    Join Date
    Mar 2004
    Posts
    140

    Default

    Well, I just tried to run a preg_match('/\pL/u', 'a') on cPanel59 and it worked just fine, so UTF-8 support should be there - on that server at least.

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    New England
    Posts
    42

    Default work around

    Still a problem on install - but
    Andrew had me comment out the check.
    The install completes fine with the check commented out.

    Code:
    /**
    * Check whether PCRE has been compiled with UTF-8 support
    */
    /**$UTF8_ar = array();
    if ( preg_match('/^.{1}$/u',"√",$UTF8_ar) != 1 ) {
        trigger_error('PCRE is not compiled with UTF-8 support',E_USER_ERROR);
    }
    unset($UTF8_ar);
    */
    namaste

  4. #4
    Senior Member
    Join Date
    Mar 2004
    Posts
    140

    Default

    Well, it's the test that gets it wrong - that /^.{1}$/u regex pattern checks for the test string to contain exactly one character, while the supplied string contains two of them, and . Guess somebody copy-pasted that stuff into the code without checking...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •