Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
but you said that it's displaying other things that are only in that theme file?
Ah. The view theme file isn't being recognized. The "nonsense" outside the php braces isn't printing to the block, nor is the html comment.
$file = array_shift(crm_get_file(array('id'=>$id)));
$scale = max($width / $info['width'], $height / $info['height']);
$file = crm_get_file(array('id'=>$id)); die(print_r($file, TRUE));
CRM_Core_Error Object ( [_errors] => Array ( [0] => Array ( [code] => 8000 [params] => Array ( [0] => ) [package] => CiviCRM [level] => Fatal [time] => 1268195267.26 [context] => Array ( [file] => ~/sites/all/modules/civicrm/CRM/Core/Error.php [line] => 417 [function] => createError [class] => CRM_Core_Error ) [message] => Required parameters missing. ) ) [_errorsByLevel] => Array ( [Fatal] => Array ( [0] => Array ( [code] => 8000 [params] => Array ( [0] => ) [package] => CiviCRM [level] => Fatal [time] => 1268195267.26 [context] => Array ( [file] => ~/sites/all/modules/civicrm/CRM/Core/Error.php [line] => 417 [function] => createError [class] => CRM_Core_Error ) [message] => Required parameters missing. ) ) ) [_package] => CiviCRM [_compat] => [_msgCallback] => Array ( [0] => CRM_Core_Error Object *RECURSION* [1] => getErrorMessage ) [_contextCallback] => Array ( [0] => CRM_Core_Error Object *RECURSION* [1] => getFileLine ) [_errorCallback] => Array ( ) [_logger] => Log_display Object ( [_lineFormat] => %3$s: %4$s[_timeFormat] => %b %d %H:%M:%S [_opened] => [_id] => ec6c63f82ab30086dd3170170faca696 [_ident] => [_priority] => 6 [_mask] => 255 [_listeners] => Array ( ) [_formatMap] => Array ( [%{timestamp}] => %1$s [%{ident}] => %2$s [%{priority}] => %3$s [%{message}] => %4$s [%{file}] => %5$s [%{line}] => %6$s [%{function}] => %7$s [%{class}] => %8$s [%\{] => %%{ ) ) [_errorMsgs] => Array ( ) )
die('pre ' . $id . ' post');
<pre><?php print_r($fields['image_1']); ?></pre>
<pre><?php print_r(array_keys($fields)); ?></pre>