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; ^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@ ============================================= Another file that also gives the same parse error ends like this: ============================================= if ($enabled_themes == 0) { drupal_set_message(t('Skinr has detected that none of your themes are enabled. This is likely related the Drupal bug: <a href="http://drupal.org/node/305653">Themes disabled during update</a>. Please re-enable your theme to continue using Skinr.'), 'warning', FALSE); } // Only add submit handler once. eval('$element =& $form'. $form_settings['submit_handler_atta...@^@^...@^@^@ ^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@ ============================================= Is this caused by some php escape character error in these files, am I missing some USE flag on my php package, or is there something else wrong? BTW, what I'd rather fix is the error reported on the last lines, although I am interested as to why php files show this binary string at the end. -- Regards, Mick