WordPress.org

Ready to get started?Download WordPress

Forums

Gallery Error (5 posts)

  1. s-234
    Member
    Posted 5 years ago #

    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.

  2. alroger
    Member
    Posted 5 years ago #

    I'm getting the same Warning in all my Blogs.
    Any clues?

  3. alroger
    Member
    Posted 5 years ago #

    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

  4. Roger Theriault
    Member
    Posted 5 years ago #

    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?

  5. DRGDC
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic