• Hi there,

    We have the free plugin installed and our account credentials are in place, however, when I go to add a new video, nothing happens. When I open up the console I can see the following error:

    Uncaught TypeError: Cannot read property ‘enqueue’ of undefined
    brightcove-admin.min.js?ver=4.5.3:71

    Something is obviously wrong, and I want to know how to fix it?

    Any help would be greatly appreciated.

    Thank you

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Contributor Sudar Muthu

    (@sudar)

    @ehjaysea,

    Can you give me the list of plugins that you are using?

    @aaron,

    That’s good to know. So this definitely seems to be a compatibility issue and we need to find out which plugin is causing this compatibility issue now..

    I am seeing the same error on WP Engine, but not on another host.

    I have two test sites, configured as close to each other as I can: no other active plugins besides Brightcove, Twenty Fifteen theme, both successfully connected to the same (trial) Brightcove Video Cloud account.

    The “generic” site seems to be working properly, but WP Engine site seems to have the problem described here – no videos shown, the following error in the console: Uncaught TypeError: Cannot read property ‘enqueue’ of undefined – brightcove-admin.min.js?ver=4.7.2:75

    I’m fairly certain the problem is that WP Engine’s “must use” plugin wpengine-common restricts some pages from using heartbeat. Adding a functionality plugin with the following code to allow admin.php to use heartbeat appears to fix the problem for me:

    function mysite_add_heartbeat ( $heartbeat_pages ) {
    	$heartbeat_pages[] = 'admin.php';
    	return $heartbeat_pages;
    }
    
    if (class_exists('WPE_Heartbeat_Throttle')) {
    	add_filter ('wpe_heartbeat_allowed_pages', 'mysite_add_heartbeat');
    }
    • This reply was modified 7 years, 9 months ago by David Purdy.
    Plugin Contributor Sudar Muthu

    (@sudar)

    Hello David,

    Thanks for getting to the bottom of this issue and also for the code snippet.

    You are correct. Looks like WP Engine disables heartbeat for some of the admin pages for performance reasons which causes the above JavaScript error.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Cannot Add New Videos, Uncaught TypeError’ is closed to new replies.