edgardcosta

Topic: Instalation with problem

Hi everyone

I'm trying to install jobberbase and i have this problem:
Warning: mysqli::mysqli() expects parameter 5 to be long, string given in /var/www/peweb/job/_includes/class.Db.php on line 20

Warning: mysqli::query() [function.mysqli-query]: Couldn't fetch Db in /var/www/peweb/job/_includes/class.Db.php on line 72

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /var/www/peweb/job/_includes/class.Db.php on line 73

Warning: mysqli::query() [function.mysqli-query]: Couldn't fetch Db in /var/www/peweb/job/_includes/class.Db.php on line 31

Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /var/www/peweb/job/_includes/class.Db.php on line 32

Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/peweb/job/_includes/class.JobberSettings.php on line 23

How can i fix it and how can i help with translation to brasilian portuguese

EdgardCosta

EdgardCosta

putypuruty

Re: Instalation with problem

Hi,

Can you please post here your domain and also the $__instances parts from the config.envs.php? Be sure not to paste here your DB username and password wink

edgardcosta

Re: Instalation with problem

Hi Oradea
domain: http://www.pewebhosting.net/job
$__instances['live'] = array(
        'prefix' => 'pewebhosting.net/job',
        'db_host' => 'localhost',
        'db_port' => 3306,
        'db_user' => 'user',
        'db_password' => 'password',
        'db_name' => 'jobberbase',
        'db_prefix' => 'jobberbase_',
        'app_url' => 'http://www.pewebhosting.net/job',
        'ini_error_reporting' => E_ALL,
        'ini_display_errors' => 'Off',
        'location' => 'online',

EdgardCosta

putypuruty

Re: Instalation with problem

Hi,

Your prefix must be only pewebhosting.net - it should work with this change.

putypuruty

Re: Instalation with problem

If it still complains about the database connection, you should double check that the database host is indeed localhost - you should put there what you see on your phpmyadmin front page as described in the Installation guide

To find out your database host, either ask your hosting company or login to phpmyadmin and you should have somewhere in the upper area the string Server and next to it an URL or IP. That's what you should put as database host.

edgardcosta

Re: Instalation with problem

Ok.
For instance thanks for all

EdgardCosta

edgardcosta

Re: Instalation with problem

The mysql's errors gone
But nothing in the screen
what do i have to do..? i think we are in the right away.

EdgardCosta

putypuruty

Re: Instalation with problem

You should turn on error reporting - in the code that you have posted above, replace ini_display_errors' => 'Off' with ini_display_errors' => 'On' and let's see what happens.

edgardcosta

Re: Instalation with problem

ok
I'll do that

EdgardCosta

edgardcosta

Re: Instalation with problem

The error

Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/peweb/job/_includes/class.JobberSettings.php on line 23

EdgardCosta

EdgardCosta

putypuruty

Re: Instalation with problem

Is your db_host still localhost? If yes, are you sure that it's correct?

Actually, I just noticed something in your config: you have jobberbase_ as db_prefix but I don't think that it's correct. If you created a jobberbase database and have imported the jobberbase.sql there, then your db_prefix should be '', like below

Code:
'db_prefix' => '',

edgardcosta

Re: Instalation with problem

putypuruty

two things.
1º - the data base jabberbase is correctly create. all tables are there and when i make msql -u user -ppassword the prompt open without trouble.
2º - now the error is new: Fatal error: Smarty error: unable to write to $compile_dir '/var/www/peweb/job/_templates/default/_cache'. Be sure $compile_dir is writable by the web server user. in /var/www/peweb/job/_includes/smarty/libs/Smarty.class.php  on line 1093

Last edited by edgardcosta (2010-06-10 17:37:38)

EdgardCosta

putypuruty

Re: Instalation with problem

As explained here, you must make some folders writable (they need a 777 permission) for jobberbase to work.

edgardcosta

Re: Instalation with problem

first thanks

the jabberbase is on the screen but without css.

The css file is my work or i have to do more ajustaments

The page http://url/job/admin not open to

The errors in /var/log/apache2 are:

File does not exist: /var/www/peweb/jobjs, referer: http://www.pewebhosting.net/job/
File does not exist: /var/www/peweb/job_templates, referer: http://www.pewebhosting.net/job/
and for /job/admin

/var/www/peweb/job/admin/.htaccess: Option FollowSymlinks not allowed here



EdgardCosta

Last edited by edgardcosta (2010-06-10 21:46:23)

EdgardCosta

putypuruty

Re: Instalation with problem

The problem is that app_url doesn't end in a / char. It must be http://www.pewebhosting.net/job/

edgardcosta

Re: Instalation with problem

putypuruty

Thanks. The initial page is show up.

But I still have problems.

The admin page is not acessible. =>/var/www/peweb/job/admin/.htaccess: Option FollowSymlinks not allowed here

And others links, also, don't work =>job_templates; jobjs

EdgardCosta

EdgardCosta

Pcfr34k

Re: Instalation with problem

Try using a new password for your database.
Let the password meet complex requirements.

edgardcosta

Re: Instalation with problem

Pcfr34k

I changed the password.
Nothing
EdgardCosta

EdgardCosta

edgardcosta

Re: Instalation with problem

Thank you all for help

Now I understand the logic of the script.

One question only. There is already a translation for Brazilian Portuguese?

Another. There repository of skins?

EdgardCosta

EdgardCosta