FonctionsImprimer Fil de Discussion
karkera | 14. Fév 2012, 05:36
Upgrading issue to 4.2.2
I am in the process of upgrading my ILIAS to latest version. After completing all the file copy operations when i access \setup.php...This is what happens....
Warning: file(/lang/setup_lang_sel_multi.lang) [function.file]: failed to open stream: No such file or directory in /var/www/html/setup/classes/class.ilLanguage.php on line 107
Warning: file(/lang/setup_en.lang) [function.file]: failed to open stream: No such file or directory in /var/www/html/setup/classes/class.ilLanguage.php on line 123
Warning: parse_ini_file(/setup/ilias.master.ini.php) [function.parse-ini-file]: failed to open stream: No such file or directory in /var/www/html/setup/classes/class.ilSetup.php on line 149
Warning: parse_ini_file(/setup/client.master.ini.php) [function.parse-ini-file]: failed to open stream: No such file or directory in /var/www/html/setup/classes/class.ilClient.php on line 56
Warning: dir(/lang) [function.dir]: failed to open dir: No such file or directory in /var/www/html/setup/classes/class.ilLanguage.php on line 191
Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /var/www/html/setup/classes/class.ilLanguage.php on line 193
Fatal error: Call to a member function read() on a non-object in /var/www/html/setup/classes/class.ilLanguage.php on line 196
All fies are present as required. Looks like something to do with the permissions. I have even give full permissions(yes) to troubleshoot. But still the same error.
Can anyone suggest what to look for?
wolfganghuebsch | 14. Fév 2012, 07:24
Re: Upgrading issue to 4.2.2
Is the zip-file OK (maybe try another download)? I would do the copying-procedure once more. And then:
- Checking rights and permissions again
- checking if the webserver works corectly (restart, checking log)
I think this can not be to much, must be a small thing with big consequences ;-)
Good luck! :-)
Peter Pellemans | pellemans | 11. Avr 2012, 10:40
Re: Upgrading issue to 4.2.2
We are having the same issue. Was this ever resolved? And if so, how?
Peter Pellemans | pellemans | 13. Avr 2012, 12:02
Re: Re: Re: Upgrading issue to 4.2.2
Yes, it does contain a period, the value is ".:/usr/share/php"
Does this help?
Thanks - Peter
xCapricorn | 21. Avr 2012, 02:46
Re: Re: Re: Re: Upgrading issue to 4.2.2
I get the same errors, if I try to make a fresh installation with Version 4.2.3 (german Version).
My phpinfo can be visited here.
I am using the Webhoster all-inkl.com.
Directory-Settings on FTP are www-data (recursiv) an all directorys have 755, files have 644 at the moment.
Would be very glad to get the installation running.
Peter Pellemans | pellemans | 21. Avr 2012, 18:28
Re: Re: Re: Re: Re: Upgrading issue to 4.2.2
The problem turned out to be that ILIAS_ABSOLUTE_PATH doesn't get set properly. In setup/include/inc.setup_header.php, you will find this code:
// PHP is running in CGI mode?
if (isset($_SERVER["REDIRECT_STATUS"]) && !isset($_SERVER["FCGI_ROLE"]))
For some reason the test doesn't work correctly and the THEN gets executed instead of the ELSE, at least for us. I now manually set ILIAS_ABSOLUTE_PATH and that works fine.
Good luck with it.
xCapricorn | 21. Avr 2012, 18:54
Edited on: 21. Avr 2012, 20:16 - par xCapricornRe: Re: Re: Re: Re: Re: Upgrading issue to 4.2.2
Hi Peter, thanks for your help.
I just tried that, but still not working. Can you paste your sourcecode, how it should look like? Maybe i make something wrong.
EDIT: OK, seems to work. I "defined" the whole part you posted before with the absolute path. Some users have the opinion, that this is not a good solution, but as i also can see, this problem exists already with Version 3.5.x, so until there is no other way, this will be the one i use.
Matthias Kunkel | mkunkel | 22. Avr 2012, 11:05
Re: Re: Re: Re: Re: Re: Upgrading issue to 4.2.2Hi Peter
Please add also a Mantis bug report incl your solution so that the responsible developer is informed and can fix the problem in the source code.
Thanks for your support and contribution!
MapaDesign | 04. Mai 2012, 00:11
Upgrading issue to 4.2.2
Hi there.. :) sory about my bead englesh but you will understud me.. :)
I just tried to install ilias e learning and I already got these errors. Now I was free to open the requested page and look for the mistake et the line 107. I was hoping to solve, but I could not. The following code you see is from setup/classes/class.ilLanguage.php from line 100
$this->lang_key = ($a_lang_key) ? $a_lang_key : $this->lang_default;
$this->lang_path = ILIAS_ABSOLUTE_PATH."/lang";
$this->cust_lang_path = ILIAS_ABSOLUTE_PATH."/Customizing/global/lang";
// set lang file...
$txt = file($this->lang_path."/setup_lang_sel_multi.lang"); Line 107 where is code.. and error :D
For me, the biggest mistake in the code that requires a certain part, which is " $this->cust_lang_path = ILIAS_ABSOLUTE_PATH."/Customizing/global/lang"; " Because when I opened the folder, " Customizing " it was empty with just one text file file. And that was README.txt
took a couple of times ilias-version 4.2.3, however, everyone hash check the same meaning that has nothing to download. The Hash chek is bc2d662a0a7ba661a465352389235295
Sow need a solution!!!
Karsten Meier | handylearn | 23. Avr 2013, 10:16
Re: Re: Re: Re: Re: Re: Re: Upgrading issue to 4.2.2
I just came over a blog entry about this problem:
Does anybody has created a bug report for this?
Because many people which get this error will just say Ilias is bad and try something different.There are to parts of the problem: first that absolute_path is not defined. It is hard to prevent this in all possible combinations of server setups.
But I think the more important problem is that Ilias fails with an totally unhelpful message when absolute_path is not defined: "failed to open stream..."
There should be an extra check for absolute_path in class.ilLanguage.php that
throws a more helpful message.
Matthias Kunkel | mkunkel | 23. Avr 2013, 10:57
Re: .... Re: Upgrading issue to 4.2.2
Please add a bug report. It is better two have two instead of none ;-)