# Joomla: Warning: Missing argument 1 for CRM_Utils_System_Joomla::getDefaultSiteSettings()

This is a new install Linux - shared hosting with Godaddy.

Joomla 3.5.1

PHP 5.4.45

CiviCRM 4.7.6

I have uploaded and installed CiviCRM. No errors. When I go to Adiministrator>Components>CiviCRM, I get:

Cron Not Running
Timestamp Mismatch
Configure Default Mailbox
Complete Setup


I have spent countless hours on this today, installing, uninstalling and installing over and over. Same result, every time. I'm fairly certain it must have something to do with the config file and variables, and I've gone over them time and again. Any ideas??? HELP!

Line 698 in Joomla.php:

public function getDefaultSiteSettings($dir) {$config = CRM_Core_Config::singleton(); $url = preg_replace( '|/administrator|', '',$config->userFrameworkBaseURL ); $siteRoot = preg_replace( '|/media/civicrm/.*$|', '', $config->imageUploadDir ); return array($url, NULL, $siteRoot); } ## 4 Answers The issue was reported on JIRA here: https://issues.civicrm.org/jira/browse/CRM-18411 The patch can be found here: https://github.com/civicrm/civicrm-core/pull/8164 The patch was merged in, so it is fixed in 4.7.7 onwards. just pass the argument to this getDefaultSiteSettings(); of your live site url: something like this$this->getDefaultSiteSettings('http://localhost/CiviCrm/'); at line no: 687

Curtis -- Those are not errors, they are PHP warnings. And while it would be good to clean them up in the code, they do not affect functionality. They are present because the error display level in Joomla is dialed up too high. In your Joomla backend, go to System > Global Configuration, click the Server tab and change your Error Reporting option to "none" (which is what it should be set to on a production site).

The system status errors popup in CiviCRM are informative of various configuration pieces you have not completed. If you click the link you'll see more details about those, and will have the option of disabling the notification if desired. For example, if you're just getting the site up and running now, you may not need/want the cron jobs to be running yet, and so you can disable that warning for a week.

• This worked, as you're right, the error code stopped output. But, I'm still trying to figure out why the error was there to begin with. I tried passing the argument as suggested by SunnY, but that didn't work. I haven't tried out CiviCRM yet, to make sure everything is working, but if a variable isn't present, I'm sure I'll run into problems. – Curtis Holzschuh Apr 15 '16 at 15:49
• I meant to add, this solved the issue of the error being displayed, so this answer ALMOST solved my problem. But, if I could fix the underlying problem, it WOULD be solved. – Curtis Holzschuh Apr 15 '16 at 16:06