PHP Warning: A non-numeric value encountered after u[dating to PHP 7.2

Viewing 2 posts - 1 through 2 (of 2 total)
#92556

Gavynn Wells
Member

Hello,

I am having an issue with the download manager plugin since I updated to PHP 7.2.

The error is: PHP Warning: A non-numeric value encountered in /home/customcontent/public_html/wp-content/plugins/download-manager/wpdm-functions.php on line 1100.

The code on the line in questions is:

function wpdm_view_countplus(){
if(isset($_REQUEST[‘_nonce’])&&wp_verify_nonce($_REQUEST[‘_nonce’],”__wpdm_view_count”)){

$id = intval($_REQUEST[‘id’]);
$views = get_post_meta($id, ‘__wpdm_view_count’, true);
update_post_meta($id, ‘__wpdm_view_count’, $views+1);
echo $views+1;
die();

Incidentally there is an error on a page just published that I believe is related to this: https://customcontentonline.com/download/providing-access-to-high-quality-healthcare-for-the-underserved/

Thanks in advance for your help!

#92725

Shahjada
Keymaster

Hi,
Thanks for pointing out the issue, it is fixed, and the update is coming soon.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘PHP Warning: A non-numeric value encountered after u[dating to PHP 7.2’ is closed to new replies.