WordPress.org

Ready to get started?Download WordPress

Forums

P2 Theme: PHP warning from functions.php (3 posts)

  1. Joss Winn
    Member
    Posted 5 years ago #

    Hi,

    I'm seeing this in my apache logs, running P2 1.4 on WPMU 2.7.1 using RHEL 5.3 (PHP 5.1.6)

    PHP Warning: str_split() [function.str-split]: The length of each segment must be greater than zero. in /var/www/vhosts/blogs/wp-content/themes/p2/functions.php on line 354

    Sorry I don't know what this means, but am keen to resolve it if anyone has any ideas.

    Thanks
    Joss

  2. noel
    Member
    Posted 5 years ago #

    It is not a fatal error, but will be resolved in the next release.

  3. hbhb
    Member
    Posted 5 years ago #

    str_split() splits a stringinto multiple parts!

    The error message says that the function was used to split a string into parts where one or more parts are of the length of 0 characters.

    Since there is no sense in splitting a string under these conditions the function gives a warning for the case the programmer could need that information to solve why something is not working.

    Nothing really went wrong so it is not an error but a warning!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags