• I just installed the latest and greatest version of WordPress 2.5.1 and everything is working like a charm except..

    When I go to add a gallery, using the new [gallery] feature, I get this error message right above the post (front end)

    Warning: Compilation failed: characters with values > 255 are not yet supported in classes at offset 16 in …/wp-includes/shortcodes.php on line 105

    Is there something in shortcodes.php that I need to change to get it working on my website?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m getting the same Warning in all my Blogs.
    Any clues?

    After some more searching, I found out that this is realted to the PHP version. My blogs are hosted and probably using an old PHP4 version, that does not have support for 2-byte characters, as in with UTF-16.
    I just commented this line 105 and it worked without the warning.
    The line looks like this now:
    /* $text = preg_replace("/[\x{00a0}\x{200b}]+/u", " ", $text); */
    It’s purpose is to replace some special non-breaking spaces with a simple old-fashioned space (” “). I don’t think disabling this line will cause any side-effects, for now… but it should be checked by the developers. Is WordPress going to require PHP5 now or any soon?

    Alroger Filho

    Thanks! I ran into this too. Same thing, fine on my testbed but trouble on my hosting platform. I would think that the code would be more robust?

    See http://wordpress.org/support/topic/192322?replies=4

    PHP 4.3.3 or higher should work. 4.4.8 is confirmed.

    Looks like WordPress needs to update their minimum system requirements.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Gallery Error’ is closed to new replies.