Answers.Body: <p>The issue was reported on JIRA here: <a href="https://issues.civicrm.org/jira/browse/CRM-18411" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-18411</a></p>
  
  <p>The patch can be found here: <a href="https://github.com/civicrm/civicrm-core/pull/8164" rel="nofollow">https://github.com/civicrm/civicrm-core/pull/8164</a></p>
  
  <p>The patch was merged in, so it is fixed in 4.7.7 onwards.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-01T19:30:13.677Z
Answers.LastActivityDate: 2016-05-23T10:18:24.233Z
Answers.LastEditDate: 2016-05-23T10:18:24.233Z
Answers.UserDisplayName: David Hayes
Answers.Body: <p>I got the same warning after updating civicrm from 4.6.15 to 4.7.6.
  I did have the error reporting in Joomla set to Maximum.
  When after updating the files I tried to run the upgrade database script for civicrm it stalled completely.
  I concluded that the update failed, reset the error reporting from Maximum tot None, and went back to the upgrade script: that now ran and completed the update correctly.
  Strange: the warning somehow blocked the database update. In Joomla warnings are not coupled to cms actions or scripts. Perhaps this is different with civicrm?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-01T14:05:55.473Z
Answers.LastActivityDate: 2016-05-01T14:05:55.473Z
Answers.UserDisplayName: Paul Kleingeld
Answers.Body: <p>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). </p>
  
  <p>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.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-15T15:49:16.657Z
Answers.Text: 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.
Answers.UserDisplayName: Curtis Holzschuh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-15T16:06:17.347Z
Answers.Text: 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.
Answers.UserDisplayName: Curtis Holzschuh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-15T17:36:58.737Z
Answers.Text: First thing I noticed, on CiviCRM Home Dashboard, the link for "Configuration Checklist" goes to mydomain.com/index.php?option=com_civicrm&task=civicrm/admin/configtask&reset=1 and not to mydomain.com/*administrator*/index.php?option=com_civicrm&task=civicrm/admin/configtask&reset=1
Answers.UserDisplayName: Curtis Holzschuh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-15T12:03:17.247Z
Answers.LastActivityDate: 2016-04-15T12:03:17.247Z
Answers.UserDisplayName: lcdservices
Answers.Body: <p>just pass the argument to this getDefaultSiteSettings(); of your live site url: something like this $this->getDefaultSiteSettings('<a href="http://localhost/CiviCrm/" rel="nofollow">http://localhost/CiviCrm/</a>'); at line no: 687</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-15T05:58:02.047Z
Answers.LastActivityDate: 2016-04-15T05:58:02.047Z
Answers.UserDisplayName: SunnY
Body: <p>This is a new install Linux - shared hosting with Godaddy.</p>
  
  <p>Joomla 3.5.1</p>
  
  <p>PHP 5.4.45</p>
  
  <p>CiviCRM 4.7.6</p>
  
  <p>I have uploaded and installed CiviCRM. No errors. When I go to Adiministrator>Components>CiviCRM, I get:</p>
  
  <blockquote>
    <p>Warning: Missing argument 1 for CRM_Utils_System_Joomla::getDefaultSiteSettings(), called in /home/username/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 687 and defined in /home/username/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 698</p>
  </blockquote>
  
  <p>I get CiviCRM Home, with Configure Your Dashboard link, and the Loading Icon.  Also, System Status Errors:</p>
  
  <blockquote>
  <pre><code>Cron Not Running
  Timestamp Mismatch
  Configure Default Mailbox
  Complete Setup
  </code></pre>
  </blockquote>
  
  <p>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!</p>
  
  <p>Line 698 in Joomla.php:</p>
  
  <p><code>public function getDefaultSiteSettings($dir) {
      $config = CRM_Core_Config::singleton();
      $url = preg_replace(
        '|/administrator|',
        '',
        $config-&gt;userFrameworkBaseURL
      );
      $siteRoot = preg_replace(
        '|/media/civicrm/.*$|',
        '',
        $config-&gt;imageUploadDir
      );
      return array($url, NULL, $siteRoot);
    }</code></p>
  
Tags: <joomla><error><installation>
Title: Joomla: Warning: Missing argument 1 for CRM_Utils_System_Joomla::getDefaultSiteSettings()
ThreadText: # Joomla: Warning: Missing argument 1 for CRM_Utils_System_Joomla::getDefaultSiteSettings()
  
  (Asked by: username_0 on 2016-04-15)
  
  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:
  
  Warning: Missing argument 1 for CRM_Utils_System_Joomla::getDefaultSiteSettings(), called in /home/username/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 687 and defined in /home/username/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php on line 698
  
  I get CiviCRM Home, with Configure Your Dashboard link, and the Loading Icon.  Also, System Status Errors:
  
  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);
    }
  
  **Tags:** joomla, error, installation
  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_1 on 2016-05-01. Score: 1
  
  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.
  
  
  ---
  
  ### Answer by username_2 on 2016-05-01. Score: 0
  
  I got the same warning after updating civicrm from 4.6.15 to 4.7.6.
  I did have the error reporting in Joomla set to Maximum.
  When after updating the files I tried to run the upgrade database script for civicrm it stalled completely.
  I concluded that the update failed, reset the error reporting from Maximum tot None, and went back to the upgrade script: that now ran and completed the update correctly.
  Strange: the warning somehow blocked the database update. In Joomla warnings are not coupled to cms actions or scripts. Perhaps this is different with civicrm?
  
  
  ---
  
  ### Answer by username_3 on 2016-04-15. Score: 0
  
  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.
  
  > **Comments:**
  > **username_0**: 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 username_4, 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.  
  > **username_0**: 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.  
  > **username_0**: First thing I noticed, on CiviCRM Home Dashboard, the link for "Configuration Checklist" goes to mydomain.com/index.php?option=com_civicrm&task=civicrm/admin/configtask&reset=1 and not to mydomain.com/*administrator*/index.php?option=com_civicrm&task=civicrm/admin/configtask&reset=1  
  
  ---
  
  ### Answer by username_4 on 2016-04-15. Score: 0
  
  just pass the argument to this getDefaultSiteSettings(); of your live site url: something like this $this->getDefaultSiteSettings('<http://localhost/CiviCrm/>'); at line no: 687
  
  
  ---
  
  