• After updating to version 0.6, I get this error (showing up in the apache error logs) when I try to edit a wiki page:

    PHP Fatal error: Call to undefined function array_fill_keys() in /path/to/wordpress/wp-content/plugins/wordpress-wiki/wordpress-wiki.php on line 701

    I’ve commented out that line for now, but am worried that will bork ownership of edits.

    Looks like array_fill_keys() requires PHP 5.2 or greater – any chance of a back port for those still having to run lesser versions of PHP? The server I use is still running PHP Version 5.1.6

Viewing 2 replies - 1 through 2 (of 2 total)
  • I see it works as good as their shopping cart.

    Maybe it’s late but…

    You could add this function on the top of wordpress-wiki.php:

    function array_fill_keys($target, $value = '') {
        if(is_array($target)) {
            foreach($target as $key => $val) {
                $filledArray[$val] = is_array($value) ? $value[$key] : $value;
            }
        }
        return $filledArray;
    }

    Copied from php manual and works fine for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Wiki] Call to undefined function array_fill_keys()’ is closed to new replies.