Please Help, Video Pro Hook PHP Error

front page Forums Community Please Help, Video Pro Hook PHP Error

This topic contains 1 reply, has 2 voices, and was last updated by Avatar Sameed Fazal 6 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #35347

    Can anyone give me some idea why I am getting these errors in my error log all the time? Any help would be appreciated.
    I have the logic set to Full – First when the entire video has played.

    I can change it to Interval – For each x number of seconds watched. But I didn’t want that particular setting for videos.

    PHP Warning: A non-numeric value encountered in /home/ugz0mx1s6rkx/public_html/wp-content/plugins/mycred-videos/includes/mycred-video-pro-hook.php on line 79

    ‘ajaxurl’ => esc_url( get_permalink( $post->ID ) ),
    ‘token’ => wp_create_nonce( ‘mycred-video-points’ ),
    >>>>>>>> ‘default_interval’ => absint((float)$this->prefs[‘interval’] * 1000 ), <<<<<<<< LINE 79
    ‘default_logic’ => $this->prefs[‘logic’],
    ‘template’ => esc_js( $this->core->template_tags_general( $template ) )

    Sameed Fazal

    Hey @streamenvy,

    Kindly replace the line number 79 with the code below and after updating another numeric value error would encounter for that again find that line number in the error and just add (float) in round brackets like show before $this->prefs inside absint(
    ‘default_interval’ => absint((float)$this->prefs[‘interval’] * 1000 ),

    Thank You!

    MyCred Support Team

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

You must be logged in to reply to this topic.