Ok, there is a bug that is rebuilding the cache twice and it's redeclaring your functions. Here's the fix.

Edit admin/doeditcustomisland.php

Remove line 125 which is this:

rebuild_islands(1);