[Plugin: ProPlayer] 4.5 fatal error - wp-config.php cannot be found if above site root (4 posts)

  1. Josh S.
    Posted 7 years ago #

    Fatal Error on activation with 4.5 upgrade. On line 30 of playlist-controller.php, you assume wp-config.php exists at the site root. Mine does not; for security reasons, it is placed one level above the site root.

    Fatal error: require_once() [function.require]: Failed opening required '/wp-config.php' (include_path='.:/usr/lib/php5') in /wp-content/plugins/proplayer/playlist-controller.php on line 30

    See here: http://codex.wordpress.org/Editing_wp-config.php

    NOTE: Since Version 2.6, wp-config.php can be moved to the directory directly above the WordPress application directory.

  2. isa.goksu
    Posted 7 years ago #

    @jahshuwaa, I didn't know about that. However this is a custom setting. I cannot know where exactly you've placed your config file. I'd recommend you to change that line in the plugin to use proper file since it's not a default behavior of WP.

  3. Josh S.
    Posted 7 years ago #

    It's moved one level above the application directory, as specified by WordPress (Noted above). It is a default behavior of WordPress. Not sure your meaning by say it is not.

    I did change the line to have /../

    This allowed the plugin to activate.

    However, playback of local files did not work after doing that. The JW Player showed, but the play button does nothing.

    If you have full access to your web server may I suggest you move the wp-config.php up one level and do your own testing.

    Thanks, though. Great plugin otherwise

  4. Josh S.
    Posted 7 years ago #

    This may help
    What Plugin Coders Must Know About WordPress 2.6

    Maybe you can check for wp_load.php as described

Topic Closed

This topic has been closed to new replies.

About this Topic