On 23 June 2010 07:18, Mick <michaelkintz...@gmail.com> 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;
>     
> ^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@^...@^@
> =============================================
>
> 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.

I forgot, this are my flags on php

     Installed versions:  5.2.13(5)(15:29:45 27/03/10)(apache2 berkdb
bzip2 cli crypt ctype gdbm iconv ldap mysql ncurses nls pcre readline
reflection session spell spl ssl truetype unicode xml zlib -adabas
-bcmath -birdstep -calendar -cdb -cgi -cjk -concurrentmodphp -curl
-curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress
-empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird
-flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp
-hash -imap -inifile -interbase -iodbc -ipv6 -java-external -json
-kerberos -kolab -ldap-sasl -libedit -mcve -mhash -msql -mssql -mysqli
-oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -posix -postgres
-qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap
-sockets -solid -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads
-tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz
-zip)

-- 
Regards,
Mick

Reply via email to