ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Error on modules installation page


  • 2006-01-27 17:07:23

    Error on modules installation page

    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

  • 2006-01-30 12:25:15

    Re: Error on modules installation page

    I can't reproduce this.

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

    Thanks.

  • 2006-02-03 04:30:06

    Re: Error on modules installation page

    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

  • 2006-06-04 22:53:26

    Re: Error on modules installation page

    I found out that it is a problem with PHP 5 plus.

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

    [b]Original Code[/b]
    [php]
    function getName() {
    if ($this->isUninstalled()) {
    return current($this->getProperty('name'));
    }
    return _AT(basename($this->_directoryName));
    }
    [/php]

    [b]Fixed Code[/b]
    [php]
    function getName() {
    if ($this->isUninstalled()) {
    [red]$_nameFix = $this->getProperty('name');
    return current($_nameFix);[/red]
    }
    return _AT(basename($this->_directoryName));
    }
    /php]

    I keep a copy of the solution here at my personal techblog,
    http://www.kimmysia.com/techblog/2006/06/05/php5-only-variables-can-be-passed-by-reference-in-atutor/

  • 2006-07-02 02:37:19

    Re: Error on modules installation page

    Kimmysia, it works very well with you code... thanks a lot!!!