#697 closed defect (bug) (fixed)
Error loading Messages javascript when BP installed with symlinks
Reported by: | DJPaul | Owned by: | |
---|---|---|---|
Milestone: | Priority: | major | |
Severity: | Version: | 1.0 | |
Component: | Keywords: | ||
Cc: |
Description
WPMU 2.7.1.
BP RC-2.
URL: http://example.com/members/admin/messages
OS: Mac OS X
WPMU PATH: /Users/Paul/Sites/example.com/
BP PATH: /Users/Paul/Sites/buddypress/
BP is sym-linked (ln -s) into wp-content/plugins/, and the themes are also sym-linked into their correct directories.
Dirname() doesn't account for sym-linked paths.
ERROR FROM APACHE LOG:
[Sat Apr 25 14:57:30 2009] [error] [client 127.0.0.1] PHP Warning: require_once(/Users/Paul/Sites/buddypress/bp-messages/js/wp-load.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /Users/Paul/Sites/buddypress/bp-messages/js/general.php on line 3, referer: http://example.com/members/admin/messages
[Sat Apr 25 14:57:30 2009] [error] [client 127.0.0.1] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/Users/Paul/Sites/buddypress/bp-messages/js/wp-load.php' (include_path='.:/usr/local/php5/lib/php') in /Users/Paul/Sites/buddypress/bp-messages/js/general.php on line 3, referer: http://example.com/members/admin/messages
Moving this to 1.1, the way this works as a whole needs to change.