jobberBase Community

Welcome to jobberBase Developer Community!

You are not logged in.

Announcement

Announcement for new users: in order to combat the ever increasing spam, we no longer allow new users to post links in the message body. This limitation is automatically lifted once a new user has a specific number of 'valid' posts.

You can post links like google.com which will be rendered as text but you will not be able to post messages that contain complete URLs like www.google.com

Thank you for your understanding!

#1 2011-10-21 11:44:03

jackhowdy
Member
Registered: 2011-10-21
Posts: 2

Warning: mysqli::mysqli() expects par_includes/class.Db.php on line 20

I installed the Script but if i open the website i see the following errors:

php error

Warning: mysqli::mysqli() expects parameter 5 to be long, string given in /home/www/web579/html/cca/_includes/class.Db.php on line 20

Warning: mysqli::query() [mysqli.query]: Couldn't fetch Db in /home/www/web579/html/cca/_includes/class.Db.php on line 72

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /home/www/web579/html/cca/_includes/class.Db.php on line 73

Warning: mysqli::query() [mysqli.query]: Couldn't fetch Db in /home/www/web579/html/cca/_includes/class.Db.php on line 31

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /home/www/web579/html/cca/_includes/class.Db.php on line 32

Fatal error: Call to a member function fetch_assoc() on a non-object in /home/www/web579/html/cca/_includes/class.JobberSettings.php on line 23

.htaccess:

# AddType x-mapp-php5 .php
# AddHandler x-mapp-php5 .php

RewriteEngine on
Options +FollowSymlinks

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

ErrorDocument 404 /page-unavailable/

<files ~ "\.tpl$">
order deny,allow
allow from none
deny from all
</files>

config
// local (http://www.domain.de)
$__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' => 'web579',
        'db_password' => 'xxx',
        'db_name' => 'xxx',
        'db_prefix' => '',
        // your site's full url
        'app_url' => 'http://www.domain.de/',
        // 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' => 'dev',
        //'apache_mod_rewrite', 'iis_url_rewrite' -microsoft URL Rewrite module, 'iis_isapi_rewrite'
        'rewrite_mode' => 'apache_mod_rewrite'
);

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

Offline

#2 2011-10-21 11:45:18

jackhowdy
Member
Registered: 2011-10-21
Posts: 2

Re: Warning: mysqli::mysqli() expects par_includes/class.Db.php on line 20

now theres a blank page ...

Offline

#3 2011-10-22 17:00:22

putypuruty
Administrator
From: Oradea, Romania
Registered: 2008-08-20
Posts: 1,042

Re: Warning: mysqli::mysqli() expects par_includes/class.Db.php on line 20

Hi!

The problem is caused by the prefix in the $__instances['live'] part. Thus, replace

'prefix' => 'www.domain.de',

with

'prefix' => 'domain.de',

Good luck!

Offline

#4 2011-12-08 17:44:22

premiumfaraplumb
Member
Registered: 2011-12-08
Posts: 2

Re: Warning: mysqli::mysqli() expects par_includes/class.Db.php on line 20

Ati rezolvat problema? smile Se pare ca si eu calc in urma voastra. Problema e ca la mine nu se rezolva.

// local (http://www.talmedia.ro/ajuta/public)
$__instances['local'] = array(
    // should be a unique part of the url (or the entire url if you wish)
    'prefix' => 'talmedia.ro/ajuta/public/',
    // mysql credentials
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'rtalme11_admin',
    'db_password' => 'xxx',
    'db_name' => 'rtalme11_jobberbase',
    'db_prefix' => 'jb_',
    // your site's full url
    'app_url' => 'http://talmedia.ro/ajuta/public/',
    // 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' => 'dev',
    //'apache_mod_rewrite', 'iis_url_rewrite' -microsoft URL Rewrite module, 'iis_isapi_rewrite'
    'rewrite_mode' => 'apache_mod_rewrite'
);

// live (http://talmedia.ro/ajuta/public/)
$__instances['live'] = array(
    'prefix' => 'talmedia.ro/ajuta/public/',
    'db_host' => 'localhost',
    'db_port' => 3306,
    'db_user' => 'rtalme11_admin',
    'db_password' => 'xxx',
    'db_name' => 'rtalme11_jobberbase',
    'db_prefix' => 'jb_',
    'app_url' => 'http://talmedia.ro/ajuta/public/',
    'ini_error_reporting' => E_ALL,
    'ini_display_errors' => 'Off',
    'location' => 'online',
    'environment' => 'prod',
    'rewrite_mode' => 'apache_mod_rewrite'
);

Offline

Board footer

Powered by FluxBB