Support » Themes and Templates » tanzaku "split" function: a practical fix???

  • I would love to be able to use the Tanzaku theme–all the other jquery masonry themes I’ve found have too many features I want to turn OFF.

    BUT Tanzaku displays a warning on the front page, “Warning: split() [function.split]: REG_EMPTY in /home2/wordturn/public_html/newskateboard/wp-content/themes/tanzaku/functions.php on line 60”

    I’m not sure whether this warning is because the split function is used incorrectly, or because the split function is deprecated and won’t be supported soon. Or both.

    Split appears in three consecutive lines of function.php for Tanzaku:
    `$split_url = split($mark, $img_url);
    if ($split_url[1] != null) {
    $img_path = $upload_path . $split_url[1];`

    Is there a practical fix for this situation?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I would also like to see a fix for this problem, any ideas anyone? i love this theme!

    I just added

    error_reporting(E_ERROR);

    and the warnings are gone!
    hope it helps

    Hi! could you tell me where exactly in the function.php you added that line please?

    did the same as alekone, added it after the first bit where you have a line of white space…

    but i think you can add it right at the beginning.

    Does anyone know what causes the errors in the first place? Maybe another edit will remove it (I’m no php expert).

    in any case, thanks to alekone

    sorted. thank you!

    error_reporting(E_ERROR);
    put this at line 8.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘tanzaku "split" function: a practical fix???’ is closed to new replies.