Installed Drupal 4.6.3 in a Trustix server 3.0 with PHP 5 today.
Have a non-fatal error when I clicked on the configure button on the default bluemarine template
Fatal error: Only variables can be passed by reference in /****/modules/system.module on line 649
Have tried setting allow_call_time_pass_reference to On in my php.ini file to no effect.
Have pretty much a base install only with maybe the filemanager module added.
Is this a bug?
some phpinfo data
------------
Apache Version Apache/2.0.55 (Trustix Secure Linux/Linux) PHP/5.0.5
Apache API Version 20020903
Virtual Server Yes
Loaded Modules core mod_access mod_auth mod_include mod_log_config mod_env mod_setenvif prefork http_core mod_mime mod_status mod_autoindex mod_asis mod_suexec mod_negotiation mod_dir mod_imap mod_actions mod_userdir mod_alias mod_so mod_auth_dbm mod_file_cache mod_cache mod_disk_cache mod_mem_cache mod_ext_filter mod_deflate mod_headers
mod_usertrack mod_unique_id mod_bucketeer mod_cgi mod_rewrite mod_php5
allow_call_time_pass_reference Off Off
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors Off Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2047 2047
expose_php On On
extension_dir /usr/share/php /usr/share/php
file_uploads On On
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php .:/usr/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time 60 60
memory_limit 8M 8M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 10M 10M
precision 14 14
register_argc_argv Off Off
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag Off Off
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 10M 10M
upload_tmp_dir no value no value
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off
PHP Version 5.0.5
Build Date Oct 19 2005 10:26:23
Configure Command '../configure' '--prefix=/usr' '--with-apxs2=/usr/sbin/apxs' '--with-config-file-path=/etc/httpd' '--sysconfdir=/etc/httpd' '--with-regex=php' '--with-exec-dir=/usr/bin' '--mandir=/usr/share/man' '--enable-safe-mode' '--enable-dba' '--with-db4' '--enable-bcmath' '--enable-debugger' '--enable-magic-quotes' '--enable-track-vars' '--enable-memory-limit' '--enable-ftp' '--enable-dom' '--enable-mbstring' '--enable-soap' '--enable-libxml=/usr' '--enable-exif=shared,/usr' '--enable-sockets' '--disable-debug' '--disable-rpath' '--with-bz2' '--with-curl=shared,/usr' '--with-pear=/usr/lib/php' '--with-readline' '--with-gmp' '--with-imap-ssl' '--with-gd=shared,/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-tiff-dir=/usr' '--with-imap=shared,/usr' '--with-ldap=shared,/usr' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-ttf=/usr' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--with-pgsql=shared,/usr' '--with-zlib=shared,/usr' '--with-mhash=shared,/usr' '--with-openssl=/usr' '--with-dom=shared,/usr' '--with-gettext' '--with-kerberos=/usr' '--with-snmp=shared,/usr' '--with-xsl=/shared,/usr' '--enable-pcntl' '--with-pspell=shared,/usr' '--enable-calendar=shared'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/httpd/php.ini
PHP API 20031224
PHP Extension 20041030
Zend Extension 220040412
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.bzip2, https, ftps, compress.zlib
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Comments
solution
See that:
I found places with the same errors, but the mentioned solution works for all ($foo insertion).
The problem is around the PHP 5.0.5's new functionality, i think.
and there is a patch
Thanks
Thanks a bunch guys for the speedy reply;-) Will replace with the CVS versions tommorrow.. cheers