WordPress.org

Forums

Wistia WordPress Plugin
Notice: Undefined index:... (2 posts)

  1. bigj9901
    Member
    Posted 1 year ago #

    Notice: Undefined index: https in /var/www-new/wp-content/plugins/wistia-wordpress-oembed-plugin/wistia-anti-mangler.php on line 572

    Install Plugin.
    Add define('WP_DEBUG', true); to wp-config
    See notice

    Would greatly appreciate a fix. Thanks!

    https://wordpress.org/plugins/wistia-wordpress-oembed-plugin/

  2. Denis Lam
    Member
    Posted 5 months ago #

    I got this notice as well. Here's an easy fix, someone else can verify:

    On line 572 of that php file, add the isset snippet where the condition begins:

    return '<script charset="ISO-8859-1" src="http' . (isset($_SERVER['https']) && $_SERVER['https'] == 'on' ? 's' : '') . '://fast.wistia.com/static/concat/' . implode($scripts, '%2C') . '.js"></script>';

    Please add fix to official update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Wistia WordPress Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.