1 |
On 23 Jun 2010, at 07:18, Mick wrote: |
2 |
|
3 |
> I am looking at some php files which are causing parsing errors in |
4 |
> Drupal, like: |
5 |
> ============================================= |
6 |
> Warning: Unexpected character in input: ' in |
7 |
> /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
8 |
> line 178 |
9 |
> Warning: Unexpected character in input: ' in |
10 |
> /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
11 |
> line 178 |
12 |
> Warning: Unexpected character in input: ' in |
13 |
> /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
14 |
> line 178 |
15 |
> ============================================= |
16 |
> and so on. |
17 |
> |
18 |
> When I view the file using a text editor I see a number of lines which |
19 |
> are shown as binary characters ... should it be like this? |
20 |
> ============================================= |
21 |
> $dimensions = !empty($node->height) && !empty($node->width) && |
22 |
> !empty($node->length); // Hide dimensions if empty |
23 |
> $vars['fusion_uc_dimensions'] = ($dimensions) ? |
24 |
> drupal_render($node->content['dimensions']) : ''; |
25 |
> if ($vars['fusion_uc_dimensions'] == '') { |
26 |
> unset($node->content['dimensions']); |
27 |
> } |
28 |
> $list_price = !empty($node->list_price) && $node->list_price > 0; |
29 |
> |
30 |
> ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ |
31 |
> ============================================= |
32 |
|
33 |
I think it might be most useful if you gave us a complete copy of one |
34 |
of these files, as an attachment. If they're security-sensitive, send |
35 |
us just an extract which shows the sample (cut using something like |
36 |
`head foo | tail > bar`). Where did these files come from? Did you |
37 |
download a "fusion" theme from the Drupal website? |
38 |
|
39 |
Stroller. |