WordPress.org

Ready to get started?Download WordPress

Forums

tanzaku "split" function: a practical fix??? (6 posts)

  1. marthalee
    Member
    Posted 3 years ago #

    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?

  2. cinemakinoeye
    Member
    Posted 3 years ago #

    I would also like to see a fix for this problem, any ideas anyone? i love this theme!

  3. alekone
    Member
    Posted 3 years ago #

    I just added

    error_reporting(E_ERROR);

    and the warnings are gone!
    hope it helps

  4. biancadiane
    Member
    Posted 3 years ago #

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

  5. thijs77
    Member
    Posted 3 years ago #

    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

  6. sennix
    Member
    Posted 3 years ago #

    sorted. thank you!

    error_reporting(E_ERROR);
    put this at line 8.

Topic Closed

This topic has been closed to new replies.

About this Topic