The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Joss Winn
    Posted 7 years ago #


    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.


  2. noel
    Posted 7 years ago #

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

  3. hbhb
    Posted 7 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