Relative path wrong in 2.02
Closed this issue · 3 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Getting to path for a clean installation
I got this error:
Warning: require_once(/core/functions.php) [function.require-once]: failed to
open stream: No such file or directory in /var/www/smt2/admin/sys/functions.php
on line 38
Fatal error: require_once() [function.require]: Failed opening required
'/core/functions.php' (include_path='.:/usr/share/php:/usr/share/pear') in
/var/www/smt2/admin/sys/functions.php on line 38
line 38 was like that
require_once realpath(REQUIRED.'../../../').'/core/functions.php';
I changed it in:
require_once realpath(REQUIRED.'/../../').'/core/functions.php';
And now it works like a charm!!
What version of the product are you using? On what operating system?
Version 2.02 under an ssh tunneling
Original issue reported on code.google.com by scal...@gmail.com
on 21 Oct 2010 at 8:22
GoogleCodeExporter commented
This issue was closed by revision r66.
Original comment by luis.lei...@gmail.com
on 21 Oct 2010 at 6:34
- Changed state: Fixed
GoogleCodeExporter commented
Thanks for the feedback. Updated on SVN.
Original comment by luis.lei...@gmail.com
on 21 Oct 2010 at 6:34
GoogleCodeExporter commented
got the same problem with current version. also solved the same way.
Original comment by ormis...@gmail.com
on 26 Aug 2011 at 7:37