1 |
Stroller wrote: |
2 |
|
3 |
>> |
4 |
>> |
5 |
>> On 23 Jun 2010, at 07:18, Mick wrote: |
6 |
>> |
7 |
>> > I am looking at some php files which are causing parsing errors in |
8 |
>> > Drupal, like: |
9 |
>> > ============================================= |
10 |
>> > Warning: Unexpected character in input: ' in |
11 |
>> > /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
12 |
>> > line 178 |
13 |
>> > Warning: Unexpected character in input: ' in |
14 |
>> > /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
15 |
>> > line 178 |
16 |
>> > Warning: Unexpected character in input: ' in |
17 |
>> > /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
18 |
>> > line 178 |
19 |
>> > ============================================= |
20 |
>> > and so on. |
21 |
>> > |
22 |
>> > When I view the file using a text editor I see a number of lines which |
23 |
>> > are shown as binary characters ... should it be like this? |
24 |
>> > ============================================= |
25 |
>> > $dimensions = !empty($node->height) && !empty($node->width) && |
26 |
>> > !empty($node->length); // Hide dimensions if empty |
27 |
>> > $vars['fusion_uc_dimensions'] = ($dimensions) ? |
28 |
>> > drupal_render($node->content['dimensions']) : ''; |
29 |
>> > if ($vars['fusion_uc_dimensions'] == '') { |
30 |
>> > unset($node->content['dimensions']); |
31 |
>> > } |
32 |
>> > $list_price = !empty($node->list_price) && $node->list_price > 0; |
33 |
>> > |
34 |
>> > ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ |
35 |
|
36 |
See this line here with all the ^@, delete it, or better yet comment it |
37 |
out, and see if it runs the same, it is not part of the php file, so |
38 |
maybe it was dumped during a refactoring session or the like. |
39 |
|
40 |
regards, |
41 |
|
42 |
Roundyz |