Topic: Common problems installing jobberbase 1.9
1. If you are getting an error similar to the following
Warning: mysqli::mysqli() expects parameter 5 to be long, string given in /xxx/_includes/class.Db.php on line 20
Warning: mysqli::query() [mysqli.query]: Couldn't fetch Db in /xxx/_includes/class.Db.php on line 72
Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /xxx/_includes/class.Db.php on line 73
Warning: mysqli::query() [mysqli.query]: Couldn't fetch Db in /xxx/_includes/class.Db.php on line 31
Warning: mysqli_error() [function.mysqli-error]: Couldn't fetch Db in /xxx/_includes/class.Db.php on line 32
Fatal error: Call to a member function fetch_assoc() on a non-object in /xxx/_includes/class.JobberSettings.php on line 23
then the problem is most likely caused by a wrong prefix in config.envs.php. If your site's URL is example.com or subdomain.example.com or even example.com/subfolder, then the prefix in the $__instances['live'] part must be set to example.com
2. If the site's layout seems to be broken, then be sure that the app_url inside the $__instances['live'] part is set correctly:
- if your site is www.example.com, then the app_url must be http://www.example.com/
- if your site is subdomain.example.com, then the app_url must be http://subdomain.example.com/
- if your site is www.example.com/subfolder, the the app_url must be http://www.example.com/subfolder/