• When editing a post using CVS, I got the following error:
    Fatal error: Call to undefined function: floatval() in /wordpress/wp-admin/b2edit.php on line 205
    I was trying to include images in the original post using the image quicktag, if that helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Cena (a11n)

    (@cena)

    Actually, it’s doing it with any entry I attempt to edit. I’m using a fresh install of today’s CVS.

    I just commited a change to b2-include/b2functions.php. See if it helps. It adds the following code near the top:
    if (!function_exists(‘floatval’)) {
    function floatval($string) {
    return ((float) $string);
    }
    }
    The floatval() function was added in PHP 4.2.0, so I’m guessing you have an older version of PHP.

    Thread Starter Cena (a11n)

    (@cena)

    I’ll try that, thanks.
    And yes, I’m using Sourceforge, which is still on 4.1.2.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit post error’ is closed to new replies.