WordPress.org

Support

Support » Plugins and Hacks » P2 Theme: PHP warning from functions.php

P2 Theme: PHP warning from functions.php

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • It is not a fatal error, but will be resolved in the next release.

    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘P2 Theme: PHP warning from functions.php’ is closed to new replies.