Support » Plugin: SharDB » Blank screen after adding require_once('db­settings.php');

  • Hi, not sure what I’ve missed but I get a blank screen after adding the line require_once('db­-settings.php'); to wp-config.php, just wondered if you might have an idea where I am going wrong?

    All I did with db-settings.php was to add the following lines, with ‘my_prefix’ matching the prefix for the 16 dbs I created. The rest of the file I left untouched.

    $shardb_hash_length = 1;
    $shardb_prefix = ‘my_prefix_’;
    $shardb_dataset = ‘mp’;

    Many thanks

    RichB

    http://wordpress.org/plugins/shardb/

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

    (@wpmuguru)

    Where did you upload the db-dsettings.php to?

    Thread Starter richbos

    (@richbos)

    Hi Ron, I placed it as advised into the folder containing wp-config.php, in my case this is /var/www.

    There is another ‘require-once’ line present, wondering if this may be the problem? Or can you have multiples (of)?

    Plugin Author Ron Rennick

    (@wpmuguru)

    require_once will only load teh file if it has not been previously required(_once).

    Check the permissions on db-settings.php. The webserver may not be able to access it.

    Thread Starter richbos

    (@richbos)

    Hi Ron, checked the permissions, all ok, even tried the file totally open with 777 but it still blanks the site when the line is active, comment it out and the site comes back to life.

    No idea what to look at next, hope you can help.

    Best regards

    RichB

    Plugin Author Ron Rennick

    (@wpmuguru)

    You must have a stray character in the file somewhere. You’ll have to carefully check your edits to see if you can find an error.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blank screen after adding require_once('db­settings.php');’ is closed to new replies.