• Hi,

    If I paste this code to wp-config.php:

    require(‘./db-settings.php’);

    My site show me these error codes:

    Warning: require(./db-settings.php) [function.require]: failed to open stream: No such file or directory in /home/user/public_html/wp-config.php on line 94
    
    Warning: require(./db-settings.php) [function.require]: failed to open stream: No such file or directory in /home/user/public_html/wp-config.php on line 94
    
    Fatal error: require() [function.require]: Failed opening required './db-settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/wp-config.php on line 94

    But if I paste this code:

    require('/home/user/public_html/db-settings.php');

    My site work, but the plugin say:

    Error: You must configure your database settings by adding require('./db-settings.php'); to your /home/user/public_html/wp-config.php for the migration process to work

    What is the solution?

    Thanks!

    https://ww.wp.xz.cn/plugins/shardb/

Viewing 1 replies (of 1 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    Did you add your configuration to db-settings.php?

    The sample configuration in db-settings.php is commented out. You need to add your configuration after the */.

Viewing 1 replies (of 1 total)

The topic ‘Warning & Fatal error if paste code to wp-config.php’ is closed to new replies.