1 |
On 23 June 2010 07:18, Mick <michaelkintzios@×××××.com> wrote: |
2 |
> I am looking at some php files which are causing parsing errors in Drupal, like: |
3 |
> ============================================= |
4 |
> Warning: Unexpected character in input: ' in |
5 |
> /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
6 |
> line 178 |
7 |
> Warning: Unexpected character in input: ' in |
8 |
> /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
9 |
> line 178 |
10 |
> Warning: Unexpected character in input: ' in |
11 |
> /var/www/htdocs/sites/all/themes/fusion/fusion_core/template.php on |
12 |
> line 178 |
13 |
> ============================================= |
14 |
> and so on. |
15 |
> |
16 |
> When I view the file using a text editor I see a number of lines which |
17 |
> are shown as binary characters ... should it be like this? |
18 |
> ============================================= |
19 |
> $dimensions = !empty($node->height) && !empty($node->width) && |
20 |
> !empty($node->length); // Hide dimensions if empty |
21 |
> $vars['fusion_uc_dimensions'] = ($dimensions) ? |
22 |
> drupal_render($node->content['dimensions']) : ''; |
23 |
> if ($vars['fusion_uc_dimensions'] == '') { |
24 |
> unset($node->content['dimensions']); |
25 |
> } |
26 |
> $list_price = !empty($node->list_price) && $node->list_price > 0; |
27 |
> ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ |
28 |
> ============================================= |
29 |
> |
30 |
> Another file that also gives the same parse error ends like this: |
31 |
> ============================================= |
32 |
> if ($enabled_themes == 0) { |
33 |
> drupal_set_message(t('Skinr has detected that none of your |
34 |
> themes are enabled. This is likely related the Drupal bug: <a |
35 |
> href="http://drupal.org/node/305653">Themes disabled during |
36 |
> update</a>. Please re-enable your theme to continue using Skinr.'), |
37 |
> 'warning', FALSE); |
38 |
> } |
39 |
> |
40 |
> // Only add submit handler once. |
41 |
> eval('$element =& $form'. $form_settings['submit_handler_attach^@^@^@^@^@ |
42 |
> ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ |
43 |
> ============================================= |
44 |
> Is this caused by some php escape character error in these files, am I |
45 |
> missing some USE flag on my php package, or is there something else |
46 |
> wrong? |
47 |
> |
48 |
> BTW, what I'd rather fix is the error reported on the last lines, |
49 |
> although I am interested as to why php files show this binary string |
50 |
> at the end. |
51 |
|
52 |
I forgot, this are my flags on php |
53 |
|
54 |
Installed versions: 5.2.13(5)(15:29:45 27/03/10)(apache2 berkdb |
55 |
bzip2 cli crypt ctype gdbm iconv ldap mysql ncurses nls pcre readline |
56 |
reflection session spell spl ssl truetype unicode xml zlib -adabas |
57 |
-bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -curl |
58 |
-curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress |
59 |
-empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird |
60 |
-flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp |
61 |
-hash -imap -inifile -interbase -iodbc -ipv6 -java-external -json |
62 |
-kerberos -kolab -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli |
63 |
-oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -posix -postgres |
64 |
-qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap |
65 |
-sockets -solid -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads |
66 |
-tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz |
67 |
-zip) |
68 |
|
69 |
-- |
70 |
Regards, |
71 |
Mick |