Nazeeh

Topic: Installation Problem!!

Hi Dears,

can someone help me please in installation?

-------------------------------------------------------------------
Installation guide:

Parse error: syntax error, unexpected '{' in /XXX/XXX/XXX/config.php on line 101 (note that the line number might differ in your case - this line number is for v1.8 Installs)

This problem appears because you don't have at least PHP 5. Review the installation guide above to see how can you find out your PHP version and if you don't have PHP 5, contact your hosting provider.
-------------------------------------------------------------------

but my PHP is 5 !

please check this link www.ibsholding.net/phpinfo.php
PHP Version 5.2.9

and i have this error :
Parse error: syntax error, unexpected '/' in /home/holdi/public_html/app/config.php on line 22

please can someone help me ?

thanks

Nazeeh

links

Re: Installation Problem!!

Hi,

Can you please paste here the line 22 from your config.php file?

Nazeeh

Re: Installation Problem!!

Dear Links

i found mistake in line 22 a have fixed, but now i have white page !!

what i shall do ??

links

Re: Installation Problem!!

Do you have error displaying set to On?

In your config.php file you must have a line ini_set('display_errors', 'Off'); Make sure instead of Off you have On, so ini_set('display_errors', 'On');

Do you get an error after you do this? If yes, can you please paste it here?

Nazeeh

Re: Installation Problem!!

now I have this error:

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

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

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

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

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

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

links

Re: Installation Problem!!

Could you post here the lines:

    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', 'root');
        define('DB_PASS', '');
        define('DB_NAME', 'jb18');
        define('LOCATION', 'online');
        define('DB_PREFIX', '');
        define('ENVIRONMENT', 'prod');
    }

But delete the password smile

Nazeeh

Re: Installation Problem!!

if ($_SERVER['SERVER_NAME'] == 'localhost')
    {
        define('DB_HOST', '174.120.97.90');
        define('DB_PORT', '/home/holdi/public_html/app');
        define('DB_USER', 'holdi_ibs');
        define('DB_PASS', '');
        define('DB_NAME', 'holdi_ibs');
        define('DB_PREFIX', 'app_');
        define('LOCATION', 'local');
        define('ENVIRONMENT', 'dev');
    }
    // MySQL + misc settings for production environment
    else
    {
        define('DB_HOST', '174.120.97.90');
        define('DB_PORT', '/home/holdi/public_html/app');
        define('DB_USER', 'holdi_ibs');
        define('DB_PASS', '');
        define('DB_NAME', 'holdi_ibs');
        define('LOCATION', 'online');
        define('DB_PREFIX', 'app_');
        define('ENVIRONMENT', 'prod');
    }

links

Re: Installation Problem!!

Set the DB_PORT back to 3306, it's a number, so
define('DB_PORT', 3306);

Don't forget to set it to 3306 both times it appears.

Nazeeh

Re: Installation Problem!!

Ok now I have this error:

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

links

Re: Installation Problem!!

Did you import the .sql file found in the db folder of the .zip file containing JobberBase?

Nazeeh

Re: Installation Problem!!

yes dear.

links

Re: Installation Problem!!

You have
define('DB_PREFIX', 'app_');

Have you followed the steps to add a table prefix from the Installation guide? If not, then you must set the prefix to ''

Nazeeh

Re: Installation Problem!!

Oooooooooooh links!

Many thanks to you its working now i appreciate your efforts with me thanks a lot my dear.

thanks a lot

links

Re: Installation Problem!!

You're welcome! smile