getConfigSetting("ServiceName"); $Email = $Plugin->getConfigSetting("AdminEmail"); if (strlen($Email) == 0) { $IntConfig = InterfaceConfiguration::getInstance(); $Email = $IntConfig->getString("AdminEmail"); } $MailtoLink = "mailto:".$Email ."?subject=".rawurlencode($ServiceName." error") ."&body=".rawurlencode($DebuggingInfo); ?>
ERROR: Could not validate LTI launch.
This most frequently occurs when = $ServiceName ?> could not set a browser cookie to identify itself to your LMS.
If you are using Firefox and you have enabled enhanced tracking
protection, that can cause the issue. Please add an exception for
this site by clicking the shield icon in your address bar and toggling
the Enhanced Tracking Protection setting:
= $AF->gUIFileTagAbs("LTIState_FirefoxTracking.jpg") ?>
Otherwise, it may be the case that your browser has revoked permission to embed content and now requires an additional confirmation to embed content again. Reloading this page should prompt you for permission.
If reloading does not resolve the issue, please clear your cache and cookies.
In Chrome, select Delete Browsing Data... from
the Chrome menu, then check the Cookies and other site
data and Cached images and files boxes, then
click Delete data:
= $AF->gUIFileTagAbs("LTIState_ChromeClear.jpg") ?>
In Firefox, select Clear Recent History... from
the History menu, check the Cookies and site data
and Temporary cached files and pages boxes, then
press Clear:
= $AF->gUIFileTagAbs("LTIState_FirefoxClear.jpg") ?>
In Safari, select Clear History... from
the History menu, then press the Clear History
button:
= $AF->gUIFileTagAbs("LTIState_SafariClear.jpg") ?>
Ifthe above steps do not resolve the error, please contact = $Email ?> and provide the following debugging information.
Debugging information:
= $DebuggingInfo ?>getConfigSetting("PreferredFileField"); $Files = []; if (!is_null($PreferredFileField) && strlen($PreferredFileField) > 0) { $Files = $Record->get($PreferredFileField, true); } if (count($Files) == 0) { $Files = $Record->getMapped("File", true); } # if no attached files, embed the site in an iframe if (count($Files) == 0) { $PreferredUrlField = $Plugin->getConfigSetting("PreferredUrlField"); $Url = ""; if (!is_null($PreferredUrlField) && strlen($PreferredUrlField) > 0) { $Url = $Record->get($PreferredUrlField) ?? ""; } if (strlen($Url) == 0) { $Url = $Record->getMapped("Url"); } # if this is a youtube URL, use their embed code to display it if (preg_match("%^https://www\.youtube\.com/watch\?v=([A-Za-z0-9_-]+)%", $Url, $Matches)) { print ''; return; } if ($Plugin->canEmbedUrl($Url)) { print ""; } else { $Screenshot = $Record->getMapped("Screenshot", true); if (count($Screenshot) > 0) { $Screenshot = reset($Screenshot); print "
ERROR: No selected resources are publicly-visible.
"; return; } $Html = $H_Plugin->getCachedRecordListHtml($H_RecordIds); if (is_null($Html)) { ob_start(); foreach ($H_RecordIds as $RecordId) { $Record = new Record($RecordId); printRecord($H_Plugin, $Record); } printHtmlFooter(); $Html = ob_get_clean(); $H_Plugin->cacheRecordListHtml($H_RecordIds, $Html); } print $Html;