I'm just getting started with podPress, and I noticed that I get errors when detecting the size or duration of a (remote) file. Looking in my error logs, I see these lines appear when I hit the "Auto Detect" button:
[Wed Jan 04 11:58:15 2012] [error] [client 80.176.75.164] PHP Warning: require_once(../../../wp-config.php): failed to open stream: No such file or directory in /var/www/sites/wordpress/html/wp-content/plugins/podpress/podpress_backend.php on line 26, referer: http://devpop.gothick.org.uk/wp-admin/post-new.php
[Wed Jan 04 11:58:15 2012] [error] [client 80.176.75.164] PHP Fatal error: require_once(): Failed opening required '../../../wp-config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/sites/wordpress/html/wp-content/plugins/podpress/podpress_backend.php on line 26, referer: http://devpop.gothick.org.uk/wp-admin/post-new.php
Now, I'm thinking this is because my wp-config.php isn't in the default location (I've moved it out of the document root, so it's one level higher up.) Are my suspicions correct? Would it be safe to just edit the podPress code to go up another level for its require_once? Or is there a more standard way of determining the wp-config.php location that could be used instead?
Thanks,
Matt