On 23 Jun 2010, at 07:18, Mick wrote:

I am looking at some php files which are causing parsing errors in Drupal, like:
=============================================
Warning: Unexpected character in input: ' in
/var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on
line 178
Warning: Unexpected character in input: ' in
/var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on
line 178
Warning: Unexpected character in input: ' in
/var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on
line 178
=============================================
and so on.

When I view the file using a text editor I see a number of lines which
are shown as binary characters ... should it be like this?
=============================================
   $dimensions = !empty($node->height) && !empty($node->width) &&
!empty($node->length);                 // Hide dimensions if empty
   $vars['fusion_uc_dimensions'] = ($dimensions) ?
drupal_render($node->content['dimensions']) : '';
   if ($vars['fusion_uc_dimensions'] == '') {
     unset($node->content['dimensions']);
   }
   $list_price = !empty($node->list_price) && $node->list_price > 0;
^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@
=============================================

I think it might be most useful if you gave us a complete copy of one of these files, as an attachment. If they're security-sensitive, send us just an extract which shows the sample (cut using something like `head foo | tail > bar`). Where did these files come from? Did you download a "fusion" theme from the Drupal website?

Stroller.


Reply via email to