• The current version of Rio Video Gallery emits a number of notices due to WordPress and PHP updates. Although they won’t bother if your not in Debug mode, it is useful to fix it.

    1) Calling the right constructor:
    On rio-video-gallery.php, line 1081, change:
    $this->WP_Widget('video_gallery', 'Video Gallery', $widget_ops);
    to
    $this->__construct('video_gallery', 'Video Gallery', $widget_ops);

    2) Notice: Undefined variable: post in /wp-content/plugins/rio-video-gallery/rio-video-gallery.php on line 706

    On rio-video-gallery.php, line 1081, change:
    $category=get_the_term_list($post->ID,'video-categories','',', ','' );
    to
    $category=get_the_term_list(get_the_ID(),'video-categories','',', ','' );

    3) Notice: Undefined variable: short_code_output in /wp-content/plugins/rio-video-gallery/rio-video-gallery.php on line 514

    On rio-video-gallery.php, line 514, change:
    $short_code_output.="<div class='rio-video-gallery-container-shortcode'>";
    to
    $short_code_output="<div class='rio-video-gallery-container-shortcode'>";

    4) Notice: A session had already been started – ignoring session_start() in /wp-content/plugins/rio-video-gallery/rio-video-gallery.php on line 929

    Delete or comment from rio-video-gallery.php from line 927 until 931.

    I’m sorry for not contributing direclty to the code, but I’m more used to git hub.

    all the best,
    alan

  • The topic ‘Solving notices’ is closed to new replies.