Title: tanzaku &quot;split&quot; function: a practical fix???
Last modified: August 19, 2016

---

# tanzaku "split" function: a practical fix???

 *  [marthalee](https://wordpress.org/support/users/marthalee/)
 * (@marthalee)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/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)

 *  [cinemakinoeye](https://wordpress.org/support/users/cinemakinoeye/)
 * (@cinemakinoeye)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/tanzaku-split-function-a-practical-fix/#post-1670448)
 * I would also like to see a fix for this problem, any ideas anyone? i love this
   theme!
 *  [alekone](https://wordpress.org/support/users/alekone/)
 * (@alekone)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/tanzaku-split-function-a-practical-fix/#post-1670459)
 * I just added
 * `error_reporting(E_ERROR);`
 * and the warnings are gone!
    hope it helps
 *  [biancadiane](https://wordpress.org/support/users/biancadiane/)
 * (@biancadiane)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/tanzaku-split-function-a-practical-fix/#post-1670470)
 * Hi! could you tell me where exactly in the function.php you added that line please?
 *  [thijs77](https://wordpress.org/support/users/thijs77/)
 * (@thijs77)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/tanzaku-split-function-a-practical-fix/#post-1670496)
 * 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
 *  [sennix](https://wordpress.org/support/users/sennix/)
 * (@sennix)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/tanzaku-split-function-a-practical-fix/#post-1670500)
 * 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.

## Tags

 * [jquery masonry](https://wordpress.org/support/topic-tag/jquery-masonry/)

 * 5 replies
 * 6 participants
 * Last reply from: [sennix](https://wordpress.org/support/users/sennix/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/tanzaku-split-function-a-practical-fix/#post-1670500)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
