I manually downloaded the latest master ZIP from the repo, dropped it into
public_html/blog/wp-content/plugins/wp-discourse/, and clicked Activate. It produced the following error:
Warning: require_once(__DIR__/lib/discourse.php) [function.require-once]: failed to open stream: No such file or directory in [REDACTED]public_html/blog/wp-content/plugins/wp-discourse/wp-discourse.php on line 30 Fatal error: require_once() [function.require]: Failed opening required '__DIR__/lib/discourse.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in [REDACTED]public_html/blog/wp-content/plugins/wp-discourse/wp-discourse.php on line 30
Not sure if this was designed to install this way, but the installation notes are sparse in this regard. The only way I was able to fix it was to replace
WPDISCOURSE_PATH in wp-discourse/wp-discourse.php at master · discourse/wp-discourse · GitHub.
Not sure where
__DIR__ is initialized, but it wasn’t clear how to best fix this. Thoughts on my fix? Is this a bug?