Open Source e-Learning
You are not logged in.   Login   Register   

Functions

 Print Topic 

  • Nano | 04. Jul 2012, 10:29
    Error after install

    Hello,

    I am very new to ilias and just installed it for the first time in a hosting account with Hostgator.  I followed the instructions on how to install using cPanel.  I think I went successfully through all the steps, but after the installation finished i get these errors above the login window.  

    Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/my_server_path/Services/Logging/classes/class.ilLog.php on line 235

    Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/my_server_path/Services/Logging/classes/class.ilLog.php on line 235

    Warning: Cannot modify header information - headers already sent by (output started at /home/my_server_path/Services/Logging/classes/class.ilLog.php:235) in/home/my_server_path/Services/Utilities/classes/class.ilUtil.php on line 5065

    If I go ahead and login anyway, I get this:


    Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/my_server_path/Services/Logging/classes/class.ilLog.php on line 235

    Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/my_server_path/Services/Logging/classes/class.ilLog.php on line 235

    Warning: Cannot modify header information - headers already sent by (output started at /home/my_server_path/Services/Logging/classes/class.ilLog.php:235) in /home/my_server_path/Services/Utilities/classes/class.ilUtil.php on line 5065

    Warning: Cannot modify header information - headers already sent by (output started at /home/my_server_path/Services/Logging/classes/class.ilLog.php:235) in /home/my_server_path/Services/Init/classes/class.ilStartUpGUI.php on line 115

    Warning: Cannot modify header information - headers already sent by (output started at /home/my_server_path/Services/Logging/classes/class.ilLog.php:235) in /home/my_server_path/Services/Utilities/classes/class.ilUtil.php on line 3601

    Warning: Cannot modify header information - headers already sent by (output started at /home/my_server_path/Services/Logging/classes/class.ilLog.php:235) in/home/my_server_path/Services/Init/classes/class.ilStartUpGUI.php on line 115

    Warning: Cannot modify header information - headers already sent by (output started at /home/my_server_path/Services/Logging/classes/class.ilLog.php:235) in/home/my_server_path/classes/class.ilTemplate.php on line 441

    Warning: Cannot modify header information - headers already sent by (output started at /home/my_server_path/Services/Logging/classes/class.ilLog.php:235) in/home/my_server_path/classes/class.ilTemplate.php on line 442

    Can anyone give me a pointer on how to fix this?

    Thank you!

  • Maximilian Becker | mbecker | 04. Jul 2012, 10:44
    Edited on: 04. Jul 2012, 10:46 - by Maximilian Becker | mbecker
    Re: Error after install

    Hello nano!

    First of all, please file a bug in the projects mantis and post the issue number here.

    I have seen things in the code I can immediately add as information to the issue, but since this behaviour is in the system "by intention", I absolutely do not recommend to tinker with the code but speak to the developer who last modified the relevant passage. The mechanism that was to prevent this message was removed and there is of course a reason for that. Just "undoing" that may easily fix your issue but I am certain it might create a dozen other ones spread all over the place.

    The error itself arises from a situation, when PHP doesn't get a file handle when it tries to open the log file for writing. So the very quick solution is to check things like correct path, filename, disk quota and creation / writing permissions on the thing. If writing to the logfile works, the whole undesired behaviour doesn't show up.

    Best regards,

    Max

  • Nano | 05. Jul 2012, 02:03
    Re: Re: Error after install

    Thanks for your help Max.

    When it asked me to specify a location to save the logs I pointed to the same folder that I chose for data (outside www access).  That folder has 775 permissions.

    Can I choose a different folder now that everything is setup or should I go through the setup again?

  • Maximilian Becker | mbecker | 05. Jul 2012, 08:42
    Re: Re: Re: Error after install

    Hello nano!

    The permissions "775" do not guarantee that this works. Since the folder is outside of the docroot, you should examine the groups ownership/participancy.

    ILIAS saves the location of the logfile in ilias.ini.php file which should be in your docroot.

    Best regards,

    Max

  • Nano | 05. Jul 2012, 08:52
    Re: Re: Re: Re: Error after install

    Thanks Max.

    I finally got it working.  I changed two things.  One is that I created a specific folder for the logs and the other one is that during the installation, it asked me to input the path for the log file 'including the name for the log file' (which I omited the first time.

    It works well now!

    Thanks for your help :)