Community Forums

ATutor Support

Error on modules installation page

AuthorSubject
 
Page: 1
zork
Subject: Error on modules installation pageQuote this post in your reply
Hi everybody!

I got another problem:

operating system - Ubuntu Linux 5.10 (Breezy Bagger)
version of ATutor - 1.5.2
versions of php - 5.0.2-2ubuntu1
version of mysq l - 4.0.24-10ubuntu2
webserver & version - apache 2.0.54-5ubuntu2

When I go to to ../ATutor/admin/modules/add_new.php the following error is displayed:

Fatal error: Only variables can be passed by reference in /var/www/ATutor/include/classes/Module/Module.class.php on line 287

What did I make wrong?

Jrn
Posted: 2006-01-27 17:07:23
joel

Avatar for joel
Subject: Re: Error on modules installation pageQuote this post in your reply
I can't reproduce this.

Are you able to upgrade to the latest version of PHP?

Thanks.
Posted: 2006-01-30 12:25:15
zork
Subject: Re: Error on modules installation pageQuote this post in your reply
It seems to be a problem with some releases of PHP higher than PHP 5.0 and lower PHP 5.1. But I am not sure, beacuse I am not familar with PHP. I will try to upgrade to the latest version of PHP next days and then will give a brief report whether it works.

Jrn
Posted: 2006-02-03 04:30:06
kimmysia
Subject: Re: Error on modules installation pageQuote this post in your reply
I found out that it is a problem with PHP 5 plus.

with reference to trac.wordpress.org/ticket/1614, I manage to solve this problem by adding the following code:-

Original Code
highlight_code('
function getName() {
if ($this->isUninstalled()) {
return current($this->getProperty('name'));
}
return _AT(basename($this->_directoryName));
}')

Fixed Code
[php]
function getName() {
if ($this->isUninstalled()) {
$_nameFix = $this->getProperty('name');
return current($_nameFix);

}
return _AT(basename($this->_directoryName));
}
/php]

I keep a copy of the solution here at my personal techblog,
www.kimmysia.com/techblog/2006/06/05/php5-only-variables-can-be-passed-by-reference-in-atutor/
Posted: 2006-06-04 22:53:26
marcucha
Subject: Re: Error on modules installation pageQuote this post in your reply
Kimmysia, it works very well with you code... thanks a lot!!!
Posted: 2006-07-02 02:37:19
 
Page: 1

You must be signed-in to post.

Related Articles