Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27398

Chat daemon doesn't run properly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.2, 2.2.5, 2.3.2, 2.4
    • Fix Version/s: 2.2.6, 2.3.3
    • Component/s: Chat
    • Labels:
      None
    • Environment:
      Debian Linux amd64.2.6.32-5
    • Database:
      PostgreSQL
    • Testing Instructions:
      Hide

      To test this issue properly MDL-34068 and MDL-35264 must be also integrated

      1. Open a terminal
      2. cd mod/chat
      3. php chatd.php --start
      4. You SHOULD NOT see a "Command line scripts must define CLI_SCRIPT before requiring config.php" error
      5. Open a browser and login as an admin user
      6. Go to admin tree -> Plugins -> Activity modules -> Chat
      7. Set chat_method to "Chat server daemon"
      8. Go to a course and add a chat module instance
      9. Go to the chat instance and click "Click here to enter the chat now"
      10. You SHOULD be able to see a popup window divided in 3 frames without any 404 error message in any frame
      Show
      To test this issue properly MDL-34068 and MDL-35264 must be also integrated Open a terminal cd mod/chat php chatd.php --start You SHOULD NOT see a "Command line scripts must define CLI_SCRIPT before requiring config.php" error Open a browser and login as an admin user Go to admin tree -> Plugins -> Activity modules -> Chat Set chat_method to "Chat server daemon" Go to a course and add a chat module instance Go to the chat instance and click "Click here to enter the chat now" You SHOULD be able to see a popup window divided in 3 frames without any 404 error message in any frame
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-27398_master

      Description

      Hi,

      when I try to start chat daemon, chatd.php, with "php moodle/mod/chat/chatd.php --start"
      I obatin:
      "
      Moodle chat daemon v1.0 on PHP 5.3.3-7+squeeze1

      Command line scripts must define CLI_SCRIPT before requiring config.php
      "

      and I can't see the chat if I try to enter.

      Issue renamed, old name for the record: "chatd.php and define CLI_SCRIPT"

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Nov/12