Page MenuHomePhabricator

Running from a symbolic link fails
Open, Needs TriagePublic


When the the Flow code directory is placed outside of /extensions and symbolically linked to from within it, then running /maintenance/update.php yields the following:

PHP Warning: require_once(/var/www/ failed to open stream: No such file or directory in /var/www/ on line 7
PHP Fatal error: require_once(): Failed opening required '/var/www/' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ on line 7

The MW1.26 code is based at /var/www/ , which is itself a symbolic link to a directory in a higher level, for the sake of codebase sharing among wikis.

Moving the Flow code directory to be physically under /extensions solves the problem.
However this is the only extension other than SMW that exhibits the same issue. I run many other extensions via linking without any problems.

I think it has to do with the way Flow-REL1_26-c89d781/maintenance/FlowUpdateRecentChanges.php constructs the path to /maintenance/Maintenance.php

Event Timeline

ahmad created this task.May 9 2016, 2:38 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptMay 9 2016, 2:38 PM
ahmad updated the task description. (Show Details)May 9 2016, 2:41 PM
Krenair added a subscriber: Krenair.
Uwe_a added a subscriber: Uwe_a.May 30 2016, 7:06 PM