• Hello: I’ve WP 4.6.1 and latest version of Buddypress (2.7.4) and Identicons (2.0.1)
    We are trying to migrate to PHP7 and all other functionalities (tested so far) works except that Identicons is not generating the icons.

    In debug.log:
    [06-Jan-2017 02:05:27 UTC] PHP Notice: A non well formed numeric value encountered in …buddypress-identicons\inc\classes\pixicon.php on line 79

    [06-Jan-2017 02:05:27 UTC] PHP Notice: A non well formed numeric value encountered in …\buddypress-identicons\inc\classes\pixicon.php on line 82

    These are the lines in the PHP file:
    $foreground = imagecolorallocate( $this->image, ‘0x’ . $r, ‘0x’ . $g, ‘0x’ . $b );

    // Set the background.
    $background = imagecolorallocate( $this->image, ‘0xee’, ‘0xee’, ‘0xee’ );

    Please have a look

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Broken in PHP 7’ is closed to new replies.