1. Install‎ > ‎Guide for Apache‎ > ‎

Typical errors


Before going any further, you should turn on the error reporting. Open config.php and replace this line

ini_set('display_errors', 'Off');

with

ini_set('display_errors', 'On');

After you refresh the browser page, you will see a lot of warnings but that's not a problem.


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.

In some cases, although you have PHP 5, it's not active. If this is the case, add the following line:

AddType application/x-httpd-php5 .php

to the .htaccess files (note that there is also one in the admin folder)


Fatal error: Call to a member function query() on a non-object in /XXX/XXX/XXX/_includes/class.Job.php on line 1025 (note that the line number might differ in your case) or Access denied for user 'yourusername'@'yourdatabasehost' (using password: YES)

There are multiple reasons why you could have these errors:

- be sure that your user name and password (the ones defined in DB_USER and DB_PASS in config.php) are correct - a lot of people misspell them

- be sure that you have imported the jobberbase.sql file and that you have set the correct database name in the DB_NAME constant


Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct

(This is not a problem specific to jobberbase but it's caused by the configuration of your hosting's PHP interpreter)

Open index.php and add:

session_save_path("./tmp");

before the line

session_start();

Create a folder called tmp (in the same folder as index.php) and make it writable.

Do the same also for the /admin/index.php file (don't forget to create the folder called tmp in the admin folder).

Fatal error: Class 'mysqli' not found in /XXX/XXX/XXX/_includes/class.Db.php on line 16 (note that the line number might differ in your case)

(This is not a problem specific to jobberbase but it's caused by your hosting provider's configuration)

By default, jobberbase will try to connect to the MySql database using the mysqli module but this might not be available. To see if your provider has the mysqli module, search for the mysqli string in the phpinfo page's output (as decribed in theinstallation guide). If the string is not found, open config.php and replace

require_once '_includes/class.Db.php';

with

require_once '_includes/class.Db.MySql.php';

Jobberbase will now try to use the old mysql module.

The start page loads but clicking on a category header (or also other links) takes you to /page-unavailable

This can happen for many reasons, two being the most common:


1. you've installed 
Jobberbase in a subfolder, Jobberbase being accessible via http://www.yoursitesnamecomeshere.com/subfoldername

If this is the case, the following usually helps:

  • add the line RewriteBase /subfoldername to the .htaccess file from your root jobberbase folder

in case you didn't have an htaccess file in your root jobberbase folder, then use a copy of the one in the admin folder

  • add the line RewriteBase /subfoldername/admin to the .htaccess file located in the admin folder


For example, if you've installed 
Jobberbase in a subfolder called jobs (many of our users do this), then you should:

  • add the line RewriteBase /jobs to the .htaccess file from your root jobberbase folder
  • add the line RewriteBase /jobs/admin to the .htaccess file located in the admin folder


2. you have spaces in the category URL

Let's take the following example: you have created a category named Financial Services and you typed financial services for the URL. This means that this category can be accessed by typing http://yoursitesnamecomeshere/jobs/financial services/ in your browser's address bar. But visiting this link takes you to /page-unavailable.

Jobberbase expects that the category URL doesn't contain spaces (actually, it should contain only the following chars a-zA-Z0-9_-).

The solution is to replace the space character with an underscore (_) or dash (-) in the category URL. For the above scenario, the correct category URL would be financial-services.


For problems not covered here, go ahead and visit the 
forum. Before posting your problem, please search first because it might have been solved by someone else.

Comments