• Gives error:

    ‘Warning: A non-numeric value encountered in /wp-includes/media.php on line 647’

    in user edit section on PHP 7

Viewing 2 replies - 1 through 2 (of 2 total)
  • Warning: A non-numeric value encountered in /wp-includes/media.php on line 647

    Hi @sultanboss, this is due to new PHP versions E_NOTICE. I just hate to updates as well, but they are needed ??

    Replace these lines in wp-includes/media.php:
    // If the image dimensions are within 1px of the expected size, we consider it a match.
    $matched = ( abs( $constrained_size[0] – $expected_size[0] ) <= 1 && abs( $constrained_size[1] – $expected_size[1] ) <= 1 );

    return $matched;

    For these lines:
    // If the image dimensions are within 1px of the expected size, we consider it a match.
    if (is_numeric($constrained_size[0]) && is_numeric($expected_size[0])) {
    $matched = ( abs( $constrained_size[0] – $expected_size[0] ) <= 1 && abs( $constrained_size[1] – $expected_size[1] ) <= 1 );

    return $matched;
    }

    It should solve your issue, if I saved you or any other reader, you can thank me below…

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBkeH8UcKP9hxMKLDvf/B+py5faoF0/yYSe0WDO2C4lpeWfDxlB5KVJnLs0EaphohvkdJWdz8FtWZlkljK3rZhD+IxmsDfgVruJMV8RqOYOjotTcW+rbNFjajmTDBrb0ZYMTtthTdrnOSYHKmWcI2mX0znJFPZE1vJzw3xL1pMeHzELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBw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MNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgV86VpqAWuXvX6Oro4qJ1tYVIT5DgWpE692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE3MDUxMzA5NTYyMlowIwYJKoZIhvcNAQkEMRYEFAH4hTFx5BVMY/KtAPoGsAHY8yZUMA0GCSqGSIb3DQEBAQUABIGAr/43v8d3/zQM4JwbPktrUd0jSILS8tJzUmOBaS+rFkAoN66FAUmSa/iiUapUAE9Wn+5SSDfVjxH/j7EwWwgI7Gj/LaVgpZvPtwKI1hUBhu/yBiS75ipBDrbb+wfzo6Y80ZquIRb/OxojM5E65ZVgLE9xwabzmgMXH4rgmyorNps=-----END PKCS7-----
    ">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error in user edit section.’ is closed to new replies.