diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index 2af682c7753..3aeb1df0048 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -1359,6 +1359,10 @@ function onStatsResize(vidWidth) { } function initPage() { + if (eventNotFound) { + console.log("Event was not found."); + return; + } getAvailableTags(); getSelectedTags(); diff --git a/web/skins/classic/views/js/event.js.php b/web/skins/classic/views/js/event.js.php index f6de301b058..624eb5c6401 100644 --- a/web/skins/classic/views/js/event.js.php +++ b/web/skins/classic/views/js/event.js.php @@ -17,6 +17,7 @@ // PHP variables to JS // var connKey = ''; +const eventNotFound = Id() || ($Event->Id() and !file_exists($Event->Path()))) ? "true" : "false") ?>; var eventData = { Id() ) { ?> diff --git a/web/views/view_video.php b/web/views/view_video.php index ea825e2a330..cabc13c3350 100644 --- a/web/views/view_video.php +++ b/web/views/view_video.php @@ -83,7 +83,7 @@ } if ( ! ($fh = @fopen($path, 'rb') ) ) { - ZM\Error('Can\'t open video at '.$path); + ZM\Debug('Can\'t open video at '.$path); header('HTTP/1.0 404 Not Found'); die(); }