• 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

    http://ww.wp.xz.cn/extend/plugins/podpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ntm

    (@ntm)

    Matt,

    I’m very sorry for the delayed response. I’m not sure why I have not noticed your post earlier. But I can answer your question:

    Are my suspicions correct?

    Yes.

    Would it be safe to just edit the podPress code to go up another level for its require_once?

    Yes, edit the file podpress_backend.php. The location of the wp-config.php file is unfortunately still hard-coded.

    Or is there a more standard way of determining the wp-config.php location that could be used instead?

    I hope there is better way. I will look into this matter when I have more time (maybe in 5/2012).

    Tim

    Thread Starter gothickmatt

    (@gothickmatt)

    Hi Tim,

    No worries, I just hard-coded it in the meantime.

    If it’s any help, I found WordPress’s own code to locate the wp-config file is in wp-load.php. That basically just looks for the config file in the normal place, and if it doesn’t find it, goes one level higher up and tries again. Might be a good model for PodPress.

    The Hardening WordPress instructions (which are the reason my config file is where it is) say that you can only put the config one level higher up, and nowhere else.

    Cheers,

    Matt

    Plugin Author ntm

    (@ntm)

    Thank you very much!

    I will change that in the next version.

    Tim

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: podPress] Error including wp-config when detecting size?’ is closed to new replies.