PHP Notice
File: Line:
Message: Undefined index: args

PHP Warning
File: Line:
Message: Invalid argument supplied for foreach()

Cardonald Campus | Glasgow Clyde College $am =& $GLOBALS['SQ_SYSTEM']->am; $thumbnail = null;if ($metadata_asset->useSystemVersion()) { $notice_links = unserialize(file_to_string($metadata_asset->data_path.'/.sq_notice_links')); foreach ($notice_links as $link) { if ($link['value'] == 'thumbnail') { $thumbnail = $GLOBALS['SQ_SYSTEM']->am->getAsset($link['minorid']); break; } } } else { if ($metadata_asset->id) { $link = $GLOBALS['SQ_SYSTEM']->am->getLink($metadata_asset->id, SQ_LINK_NOTICE, 'image', FALSE, 'thumbnail'); if (!empty($link)) { $thumbnail = $GLOBALS['SQ_SYSTEM']->am->getAsset($link['minorid'], $link['minor_type_code']); } } } $metadata_replacements['asset_thumbnail_url'] = (is_null($thumbnail)) ? '' : $thumbnail->getURL(); Notice: Undefined index: file in /var/www/html/matrix_4-18-1/core/include/general.inc on line 74 Notice: Undefined index: line in /var/www/html/matrix_4-18-1/core/include/general.inc on line 75 Notice: Undefined index: file in /var/www/html/matrix_4-18-1/core/include/general.inc on line 74 Notice: Undefined index: line in /var/www/html/matrix_4-18-1/core/include/general.inc on line 75 Fatal error: Uncaught exception 'Exception' with message: 'Unable to get asset info for asset ID #3217 due to database error: SQLSTATE[57P01]: Admin shutdown: 7 FATAL: terminating connection due to administrator command server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request.' in [SYSTEM_ROOT]/core/include/asset.inc(684):