Please Help, Video Pro Hook PHP Error

Home Forums Community Please Help, Video Pro Hook PHP Error

This topic contains 1 reply, has 2 voices, and was last updated by  Sameed Fazal 2 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.

Spin to win points ?
Kindly get back to your previous orientation view... your wheel is rolling there...

Do you really like this awesome addon and wanna use on your site? click here to get it now ?
myCRED Fortune Wheel special offer unlocked!
You have a chance to win free tokens. Are you feeling lucky? Give it a spin.
* You can spin the wheel only once in a month.
* You can spin again any time by paying 500 points
* Once you pay for spin you are not able to refund it.
You must login to play mycred fortune wheel