I am experiencing an issue with Joomla integration while using CiviCRM. I am getting the following error on line 56 of the "Joomla.php" file:

PHP Warning: Undefined variable $store in /home/userxxx/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Permission/Joomla.php on line 56

enter image description here

This error indicates that the variable $store is not defined when trying to set the $api_key variable. However, I have noticed that I haven't previously defined the $store variable.

Relevant code snippet:

$api_key = CRM_Utils_Request::retrieve('api_key', 'String', $store, FALSE, NULL, 'REQUEST');

enter image description here

I am seeking assistance with resolving this issue. How should I properly define the $store variable?

Any help with this would be greatly appreciated. Thank you in advance.

Best regards,

1 Answer 1


It's just a warning, not an error, but looks like a problem that should be fixed, you could report it on Gitlab and maybe even fix it yourself.

I think $store could probably not be passed at all since the default is NULL (the other params after it are also default), but maybe there is some reason to set it NULL first, as it is in other places.

  • 1
    It was refactored here causing the bug: github.com/civicrm/civicrm-core/commit/…. As noted I would just remove the extra params $api_key = CRM_Utils_Request::retrieve('api_key', 'String'); and the $store assignment lower down.
    – Demerit
    Jul 2, 2023 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.