muzisa

Topic: Some body help please

I installed jobberbase on my hosting space which is Hostgator

after installation i got this error

Warning: mysqli::mysqli() expects parameter 5 to be long, string given in /home/muzi2008/public_html/jobber/_includes/class.Db.php on line 20

Warning: mysqli::query() [mysqli.query]: Couldn't fetch Db in /home/muzi2008/public_html/jobber/_includes/class.Db.php on line 72

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /home/muzi2008/public_html/jobber/_includes/class.Db.php on line 73

Warning: mysqli::query() [mysqli.query]: Couldn't fetch Db in /home/muzi2008/public_html/jobber/_includes/class.Db.php on line 31

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /home/muzi2008/public_html/jobber/_includes/class.Db.php on line 32

Fatal error: Call to a member function fetch_assoc() on a non-object in /home/muzi2008/public_html/jobber/_includes/class.JobberSettings.php on line 23

i have addeed Rewrite /jobber to .htaccess
jobber is the subfolder in which i  uploaded the script

see the below settings and let me know if correct or need any change...

// local (http://localhost/jobberbase/public)
$__instances['local'] = array(
    // should be a unique part of the url (or the entire url if you wish)
    'prefix' => 'localhost',
    // mysql credentials
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'xxxx',
    'db_password' => 'xxx',
    'db_name' => 'xxxx',
    'db_prefix' => '',
    // your site's full url
    'app_url' => 'http://www.classiqa.com/jobber/',
    // error reporting
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'On',
    // environment setting 1 (use 'local' for localhost/testing OR 'online' for live, production environment)
    'location' => 'local',
    // environment setting 2 (use 'dev' together with 'local' in the previous setting OR 'prod' with 'online')
    'environment' => 'prod',
    //'apache_mod_rewrite', 'iis_url_rewrite' -microsoft URL Rewrite module, 'iis_isapi_rewrite'
    'rewrite_mode' => 'apache_mod_rewrite'
);

// live (http://www.classiqa.com/jobber/)
$__instances['live'] = array(
    'prefix' => 'http://www.classiqa.com/jobber/',
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'xxxx',
    'db_password' => 'xxxx',
    'db_name' => 'xxxx',
    'db_prefix' => '',
    'app_url' => 'http://www.classiqa.com/jobber/',
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'Off',
    'location' => 'online',
    'environment' => 'prod',
    'rewrite_mode' => 'apache_mod_rewrite'

please help i have wasted many hours after this

putypuruty

Re: Some body help please

Hi,

As described in this article http://www.jobberbase.com/forum/topic27 … se-19.html (which is visible on top of every page wink), your problem is caused by a wrong prefix in the $__instances['live'] part. You should put there classiqa.com instead and it should work (provided that the database host is indeed localhost)

Please let us know if it works now.