Same error on admin/settings/recommender or drush

Running history_rec at 2009-07-06T16:25:01+08:00 ..........

Fatal error: Call to private Matrix::__construct() from context 'Matrix' in /var/www/auction/sites/all/modules/recommender/Matrix.php on line 32

Comments

danithaca’s picture

Assigned: Unassigned » danithaca

investigating

danithaca’s picture

please run phpinfo() and let me know the PHP version.

suspecting PHP version incompatibility.....

This module was fully tested on PHP5. It doesn't support PHP4 because it uses advanced OO feature of PHP5.

danithaca’s picture

Status: Active » Fixed

@ckng: I'm quite sure it's the PHP version problem, so I mark the issue as 'fixed'. If it doesn't fix your problem, please feel free to reopen the issue.

valvulita’s picture

Experiencing the same exact problem

Running recommender encounter an internal error. If it is due to PHP out of memory, or timeout, please use Drush script instead. Otherwise, please file an issue to the http://drupal.org/project/recommender

Por favor, continue a la página de error

An error occurred. /portal/batch?id=153&op=do
Fatal error: Call to private Matrix::__construct() from context 'Matrix' in /mnt/w0104/d07/s26/b0236e94/www/portal/modules/recommender/Matrix.php on line 32

Here's my phpinfo

PHP Version 5.2.2

System FreeBSD cgi31 6.2-RELEASE-p12 FreeBSD 6.2-RELEASE-p12 #0: Mon Feb 23 13:42:04 EST 2009 root@admn6:/usr/obj/usr/src/sys/NF_GENERIC_MDROOT amd64
Build Date Nov 9 2008 22:09:27
Configure Command './configure' '--prefix=/usr/local/nf/php5' '--exec-prefix=/usr/local/nf/php5' '--enable-exif' '--enable-dbase' '--enable-mbstring' '--with-mysql=/usr/local/nf' '--enable-discard-path' '--with-config-file-path=/usr/local/nf/php5/etc' '--with-zlib-dir=/usr/local/nf' '--with-iconv=/usr/local/nf' '--with-libxml-dir=/usr/local/nf' '--with-png-dir=/usr/local/nf' '--with-jpeg-dir=/usr/local/nf' '--with-imagick=/usr/local/nf' '--with-freetype-dir=/usr/local/nf' '--with-gd' '--with-curl=/usr/local/nf' '--with-openssl=/usr/local/nf' '--without-xpm' '--with-libxml-dir=/usr/local/nf' '--with-mcrypt=/usr/local/nf' '--with-mysqli=/usr/local/nf/bin/mysql_config'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/nf/php5/etc
Loaded Configuration File /mnt/w0104/d07/s26/b0236e94/www/portal/php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
allow_url_include Off Off
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 On On
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 no value no value
expose_php On On
extension_dir /usr/local/nf/php5/lib/php/extensions/no-debug-non-zts-20060613 /usr/local/nf/php5/lib/php/extensions/no-debug-non-zts-20060613
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
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/local/nf/php5/lib/php .:/usr/local/nf/php5/lib/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
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_nesting_level 64 64
max_input_time -1 -1
memory_limit 128M 128M
open_basedir no value no value
output_buffering 0 0
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
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 /usr/local/php/bin /usr/local/php/bin
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 On On
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 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

danithaca’s picture

Status: Fixed » Active

ok. investigating.

danithaca’s picture

Status: Active » Fixed

Fixed. Please download and use the latest Recommender API v6.x-2.0-beta3 (and above) at http://drupal.org/project/recommender.

I'm not sure what happened. But the fix should work.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.