ATutor

Learning Management Tools







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


Installation Help welcome


  • 2006-02-09 07:59:03

    Installation Help welcome

    After installing Atutor (last version) I have received the following errors:

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 223

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 223

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 223

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 223

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 223

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge_recursive() [function.array-merge-recursive]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 217

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php on line 223

    Warning: Cannot modify header information - headers already sent by (output started at /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php:217) in /home/chs/juanmacampos.com/home/html/atutor/login.php on line 158

    Warning: Cannot modify header information - headers already sent by (output started at /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php:217) in /home/chs/juanmacampos.com/home/html/atutor/include/header.inc.php on line 17

    Warning: Cannot modify header information - headers already sent by (output started at /home/chs/juanmacampos.com/home/html/atutor/include/classes/Module/Module.class.php:217) in /home/chs/juanmacampos.com/home/html/atutor/include/classes/Language/Language.class.php on line 123

    WHAT DID I DO WRONG? YOU CAN SEE THIS AT www.juanmacampos.com/atutor

  • 2006-02-09 08:22:58

    Re: Installation. Help welcome!!

    see the following thread:
    http://www.atutor.ca/view/3/6656/1.html

  • 2006-02-11 05:49:28

    Re: Installation. Help welcome!!

    Thank you. but this is my piece of code and still the same


    if (isset($this->_pages)) {
    (array)$_pages = array_merge_recursive($_pages, $this->_pages);
    }

    //side menu items
    if (isset($this->_stacks)) {
    $count = 0;
    (array)$_stacks = array_merge($_stacks, $this->_stacks);
    }

    //student tools
    if (isset($_student_tool)) {
    $this->_student_tool =& $_student_tool;
    $_modules[] = $this->_student_tool;
    }
    }

    [reply][b]In reply to:[/b]
    see the following thread:
    http://www.atutor.ca/view/3/6656/1.html
    [op]forums/view.php?fid=7;pid=7088;page=1#7089[/op][/reply]

  • 2006-02-12 09:23:27

    Re: Installation. Help welcome!!

    try using
    (array)$_pages;
    (array)$_stacks;
    etc.

    on the lines before the first if statement

  • 2006-02-12 14:14:13

    Re: Installation. Help welcome!!

    it doesn't work either. you can see it at


    www.juanmacampos.com/tutor

  • 2006-02-13 08:46:22

    Re: Installation. Help welcome!!

    replace the load function in Module.class.php with the following



    [php]

    function load() {
    if (is_file(AT_MODULE_PATH . $this->_directoryName.'/module.php')) {
    global $_modules, $_pages, $_stacks;

    require(AT_MODULE_PATH . $this->_directoryName.'/module.php');

    if (isset($this->_pages)) {
    $_pages = array_merge_recursive((array)$_pages, $this->_pages);
    }

    //side menu items
    if (isset($this->_stacks)) {
    $count = 0;
    $_stacks = array_merge((array)$_stacks, $this->_stacks);
    }

    //student tools
    if (isset($_student_tool)) {
    $this->_student_tool =& $_student_tool;
    $_modules[] = $this->_student_tool;
    }
    }
    }

    [/php]