WebStart.php issues

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

Sounds like __DIR__ is returning something dirname doesn't recognize:

Relavent code:

chdir( dirname( __DIR__ ) );
require dirname( __DIR__ ) . '/includes/WebStart.php';

So if dirname returns '.' as your error indicates, and php docs say it can in certain situations (but they're not specific what situations) then MediaWiki won't access things in the parent directory properly, and the installer won't work.

Bawolff (talk)20:41, 19 January 2014

How should I fix this? I have little to no PHP experience unfortunately so I can't try messing around with it until it works. Should I hardcode dirname to always return the folder location or is there an easier way?

Bassoonian (talk)15:40, 20 January 2014