ATutor

Learning Management Tools







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


Chat function not working permission issues


  • 2008-10-23 09:30:01

    Chat function not working permission issues

    Hello.

    This is my first post here so go easy ;)

    Our company provides online training using aTutor. Recently we have run into a few errors (usually about permissions).

    Whenever we try to use the 'Chat' facility we get the following error (see below). By 'use' i mean just clicking on 'Chat'. We used to get an error when trying to create a new transcript/chat but I think that's fixed for now.

    The admins using the chat facility use both Firefox and Internet Explorer.

    Any help would be greatly appreciated as we have a chat session tonight but it's not the end of the world if it's not fixed, we have other methods of communication, it's just a hassle is all.

    Thank you,
    Rury

    --------------------------------


    operating system - Linux 2.6.23.14
    version of ATutor - 1.6.1.
    versions of php - 5.2.5
    version of mysql - 4.1.22-standard-log
    webserver & version - (not sure about this)
    your ATutor location- http://unk.com/lab

    Error:

    "Warning: file(/home/relliott/lab-content/chat/4/admin.settings) [function.file]: failed to open stream: Permission denied in /home/relliott/public_html/lab/include/lib/chat.inc.php on line 21

    Warning: Invalid argument supplied for foreach() in /home/relliott/public_html/lab/include/lib/chat.inc.php on line 22

    Warning: file(/home/relliott/lab-content/chat/4/admin.settings) [function.file]: failed to open stream: Permission denied in /home/relliott/public_html/lab/include/lib/chat.inc.php on line 21

    Warning: Invalid argument supplied for foreach() in /home/relliott/public_html/lab/include/lib/chat.inc.php on line 22

    Warning: Cannot modify header information - headers already sent by (output started at /home/relliott/public_html/lab/include/lib/chat.inc.php:21) in /home/relliott/public_html/lab/include/header.inc.php on line 17

    Warning: Cannot modify header information - headers already sent by (output started at /home/relliott/public_html/lab/include/lib/chat.inc.php:21) in /home/relliott/public_html/lab/include/classes/Language/Language.class.php on line 123"

    ----------------------------

  • 2008-10-24 08:49:15

    Re: "Chat" function not working (permission issues?)

    On linux the system's root user can run the following commnd on the lab-content/chat/ directory.

    chmod a+rwx chat/

    There may also be a problem with the path to the content directory if is contains symbolic links. Create a file with the following lines in it, then open the file in your Web browser to display the actual path to your content directory. Then check the include/config.inc.php file to make sure the path to the content directory defined there matches the one generated by the file. If not, replace the path in the file with the generated one.


    [php]

    echo getcwd();

    [/php]

    see
    http://ca.php.net/getcwd

  • 2008-10-30 12:40:52

    Re:

    Hello Greg

    Thank you for your help. You were right, the path to the lab content was wrong. In the config php file it was set to /lab-content/ but we just use /lab/

    I have also sent a message to our support asking if they can run the chmod command, hopefully thing will work smoothly after that. I'll report back soon no doubt :)

    Cheers,
    Rury


    P.S - I would have replied to this thread sooner but I didn't receive an email saying you had replied. Maybe it was filtered to my junk mail, who knows!

  • 2008-10-30 12:55:36

    Re:

    Woah woah aTutor did NOT like me changing that content url in the config file. I think it is correct because when I changed it to what the above php script told me, everything disappeared and there were errors everywhere. Had to change it back immediately and then everything was fine!

    Still waiting for support to get back to me though.

    Cheers,
    Rury