ATutor

Learning Management Tools







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


Warning Invalid argument supplied for foreach in Messageclassphp on line 81


  • 2005-07-19 07:48:05

    Warning Invalid argument supplied for foreach in Messageclassphp on line 81

    All ok except for enrollment into private courses. Pls help..!

    operating system - FreeBSD 4.11
    version of ATutor - 1.5
    versions of php - 4.4.0 (Zend: 1.3.0)
    version of mysq l -MySQL 4.1.9
    webserver & version -Apache/1.3.33

    copies of error messages -
    " Warning: Invalid argument supplied for foreach() in /www/j/jouis/lcms/htdocs/include/classes/Message/Message.class.php on line 81 "

    Code in Line 81 = " foreach($_SESSION['message'][$type] as $e => $item) { "

    changes to default settings - Nil
    web browser being used - IE 6.0 and Firefox 1.0.4
    and anything else relevant - Installed on a shared server hosted by others. No root access.

  • 2005-07-19 13:34:32

    .

    rename $message to $tmp_message on lines 51, 52, and 62 in ./users/private_enroll.php

  • 2005-07-20 04:46:06

    Problem solved!

    Thanks Joel..! You are the best!