Answers.Body: <p>Sounds like there's a conflict between the copy of <code>psr/log</code> bundled with Civi and one already being used on your site. Can you give more details about which version exactly is present on your site and whether it's part of Joomla core or a Joomla plugin?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-26T14:23:49.903Z
Answers.Text: Sorry for my ignorance, but how do I find that detail? Is it the composer.json inside the `com_civicrm` folder?
Answers.UserDisplayName: thejason
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-26T19:17:22.777Z
Answers.Text: It could be anywhere! But that's a good place to start. A global grep of all `.json` files for the string "psr/log" would find it quickly.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-25T20:54:28.917Z
Answers.LastActivityDate: 2024-01-25T20:54:28.917Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>NO, it's a CiviCRM error in com_civicrm/admin/civicrm/vendor/psr/log/Psr/Log/NullLogger.php, there line 26 must be changed form <code>public function log($level, $message, array $context = array())</code> to <code>public function log($level, $message, array $context = []): void</code>.</p>
  <p>Replace () through [], add the <code>: void</code> then CiviCRM installs without errors and works like a charm.</p>
  <p>I tested this and can confirm this works.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-07T21:33:04.397Z
Answers.Text: Added a comment in the already opened issue: https://lab.civicrm.org/dev/joomla/-/issues/54
Answers.UserDisplayName: Guitarman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-08T08:36:15.013Z
Answers.Text: @thejason: I'd suggest to wait for (hopefully) the next CiviCRM release. The change I proposed needs to be reviewed and implemented. In case you know CiviCRM and your environment very well, you could change the file using the code above, recompile and reinstall it. A solution that ALWAYS works is to install CiviCRM on Joomla 4.4.x and then upgrade Joomla to version 5.0.x.
Answers.UserDisplayName: Guitarman
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-07T21:16:11.350Z
Answers.LastActivityDate: 2024-02-07T21:26:01.050Z
Answers.LastEditDate: 2024-02-07T21:26:01.050Z
Answers.UserDisplayName: Guitarman
Body: <p>When I attempt to install CiviCRM (5.69.2) in my Jooma (5.0.2) instance I receive the following error:</p>
  <pre><code>Compile Error: Declaration of Psr\Log\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void
  </code></pre>
  <p>I'm on PHP version 8.2.4.</p>
  <p>Any help is appreciated!</p>
  <p>Thanks,
  Jason</p>
  
Tags: <installation>
Title: Can't install CiviCRM extension with fresh install of Joomla
ThreadText: # Can't install CiviCRM extension with fresh install of Joomla
  
  (Asked by: username_0 on 2024-01-25)
  
  When I attempt to install CiviCRM (5.69.2) in my Jooma (5.0.2) instance I receive the following error:
  Compile Error: Declaration of Psr\Log\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void
  
  I'm on PHP version 8.2.4.
  Any help is appreciated!
  Thanks,
  Jason
  
  **Tags:** installation
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2024-01-25. Score: 0
  
  Sounds like there's a conflict between the copy of `psr/log` bundled with Civi and one already being used on your site. Can you give more details about which version exactly is present on your site and whether it's part of Joomla core or a Joomla plugin?
  
  > **Comments:**
  > **username_0**: Sorry for my ignorance, but how do I find that detail? Is it the composer.json inside the `com_civicrm` folder?  
  > **username_1**: It could be anywhere! But that's a good place to start. A global grep of all `.json` files for the string "psr/log" would find it quickly.  
  
  ---
  
  ### Answer by username_2 on 2024-02-07. Score: 0
  
  NO, it's a CiviCRM error in com\_civicrm/admin/civicrm/vendor/psr/log/Psr/Log/NullLogger.php, there line 26 must be changed form `public function log($level, $message, array $context = array())` to `public function log($level, $message, array $context = []): void`.
  
  Replace () through [], add the `: void` then CiviCRM installs without errors and works like a charm.
  
  I tested this and can confirm this works.
  
  > **Comments:**
  > **username_2**: Added a comment in the already opened issue: https://lab.civicrm.org/dev/joomla/-/issues/54  
  > **username_2**: @username_0: I'd suggest to wait for (hopefully) the next CiviCRM release. The change I proposed needs to be reviewed and implemented. In case you know CiviCRM and your environment very well, you could change the file using the code above, recompile and reinstall it. A solution that ALWAYS works is to install CiviCRM on Joomla 4.4.x and then upgrade Joomla to version 5.0.x.  
  
  ---
  
  