kilerb

Topic: Blank Screen After Install

I see a lot of these, but the other threads don't seem to match my issues.  I installed it, and I imported the db...  I don't have a prefix on my database, (I don't think) so I left that part blank.  Is this correct?

        define('DB_HOST', 'localhost');
        define('DB_PORT', 3306);
        define('DB_USER', 'creon');
        define('DB_PASS', '4reo52');
        define('DB_NAME', 'jb_creon4reo');
        define('DB_PREFIX', '');
        define('LOCATION', 'local');
        define('ENVIRONMENT', 'dev');

What are the reasons it would a blank screen after install?

xok

Re: Blank Screen After Install

Check permissions and everything will go ok.

The same has happened to me but I solved quickly as soon as I saw it had cache folders.

putypuruty

Re: Blank Screen After Install

Hi!

Try turning errors on in config.php, that might help.

kilerb

Re: Blank Screen After Install

Hi, thanks...  I turned errors on and now I get this on the screen...  What would cause that?  Thanks again!

Warning: mysqli::mysqli() [function.mysqli-mysqli]: (28000/1045): Access denied for user 'root'@'localhost' (using password: NO) in /var/www/vhosts/creon4reo.com/httpdocs/jobboard/_includes/class.Db.php on line 20

Warning: mysqli::query() [function.mysqli-query]: Couldn't fetch Db in /var/www/vhosts/creon4reo.com/httpdocs/jobboard/_includes/class.Db.php on line 72

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /var/www/vhosts/creon4reo.com/httpdocs/jobboard/_includes/class.Db.php on line 73

Warning: mysqli::query() [function.mysqli-query]: Couldn't fetch Db in /var/www/vhosts/creon4reo.com/httpdocs/jobboard/_includes/class.Db.php on line 31

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /var/www/vhosts/creon4reo.com/httpdocs/jobboard/_includes/class.Db.php on line 32

Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/vhosts/creon4reo.com/httpdocs/jobboard/_includes/class.JobberSettings.php on line 23

putypuruty

Re: Blank Screen After Install

You have to set the DB configuration in the else branch, not in the if ($_SERVER['SERVER_NAME'] == 'localhost') branch as you did.

kilerb

Re: Blank Screen After Install

Thank you... I changed it and now I get this....

Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/vhosts/creon4reo.com/httpdocs/jobboard/_includes/class.JobberSettings.php on line 23

This is what I have...  Should I be changing things in the server branch also?  That seems to be where this error is hitting?  Not sure though...

Thanks!

By the way, this is what I have now...

    define('JOBBERBASE_VERSION', '1.8');

    // MySQL + misc settings for local environment
    if ($_SERVER['SERVER_NAME'] == 'localhost')
    {
        define('DB_HOST', 'localhost');
        define('DB_PORT', 3306);
        define('DB_USER', 'root');
        define('DB_PASS', '');
        define('DB_NAME', 'jobberbase');
        define('DB_PREFIX', '');
        define('LOCATION', 'local');
        define('ENVIRONMENT', 'dev');
    }
    // MySQL + misc settings for production environment
    else
    {
        define('DB_HOST', 'localhost');
        define('DB_PORT', 3306);
        define('DB_USER', 'board');
        define('DB_PASS', 'job52');
        define('DB_NAME', 'jobboard');
        define('LOCATION', 'online');
        define('DB_PREFIX', '');
        define('ENVIRONMENT', 'prod');
    }

    define('APP_PATH',dirname(__FILE__).DIRECTORY_SEPARATOR);

  if(isset($_SERVER['SCRIPT_NAME']))
    {

Last edited by kilerb (2010-03-03 19:38:31)

putypuruty

Re: Blank Screen After Install

Out of curiosity, did you import the jobberbase.sql file in phpmyadmin? This error appears if you forgot to do this.

Also, if you did import it and you are still getting this error, then try to replace define('ENVIRONMENT', 'prod'); with define('ENVIRONMENT', 'dev'); (so just change prod to dev) and check if you don't get a more detailed error message.

kilerb

Re: Blank Screen After Install

Thank you...  That did the trick.  I had deleted the old database because it wasn't working and thought it might have been because I didn't use a prefix.  Didn't re-import on the new DB!  Seems to be working now.

Thanks!