Joomla issueshttps://lab.civicrm.org/dev/joomla/-/issues2023-01-24T16:19:34Zhttps://lab.civicrm.org/dev/joomla/-/issues/44Class Civi\Api4\Event\Subscriber\ActivityPreCreationSubscriber was expected t...2023-01-24T16:19:34ZpotClass Civi\Api4\Event\Subscriber\ActivityPreCreationSubscriber was expected to have a service definition, but it did notUsing php 7.4 and civicrm 5.57.1 on Joomla I see:
```
$ php74 domains/domain.org/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php -s domain.org -u cronjob -p cronjob-pass -e Job -a execute
-->
WARNING: Class Civi\Api4...Using php 7.4 and civicrm 5.57.1 on Joomla I see:
```
$ php74 domains/domain.org/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php -s domain.org -u cronjob -p cronjob-pass -e Job -a execute
-->
WARNING: Class Civi\Api4\Event\Subscriber\ActivityPreCreationSubscriber was expected to have a service definition, but it did not. Perhaps it needs service name.
WARNING: Class Civi\Api4\Event\Subscriber\ContributionPreSaveSubscriber was expected to have a service definition, but it did not. Perhaps it needs service name.
WARNING: Class Civi\Api4\Event\Subscriber\CustomGroupPreCreationSubscriber was expected to have a service definition, but it did not. Perhaps it needs service name.
WARNING: Class Class Civi\Api4\Event\Subscriber\OptionValuePreCreationSubscriber was expected to have a service definition, but it did not. Perhaps it needs service name.
WARNING: Class PHP Deprecated: Non-static method JApplication::getMenu() should not be called statically in/home/usiako1s/domains/domain.org/public_html/plugins/authentication/civicrm//civicrm.php on line 305
```https://lab.civicrm.org/dev/joomla/-/issues/43PHP 8 causes 500 error2023-04-24T14:17:55Zjoshjosh@civicrm.orgPHP 8 causes 500 errorUpgrading from PHP 7.4 to PHP 8.0 on Joomla 4.2.5 and CiviCRM 5.56 results in a 500 error. Sample can be viewed at https://cividemo.com (currently running PHP 8.0), specifically at a public contribution page: https://cividemo.com/simple-...Upgrading from PHP 7.4 to PHP 8.0 on Joomla 4.2.5 and CiviCRM 5.56 results in a 500 error. Sample can be viewed at https://cividemo.com (currently running PHP 8.0), specifically at a public contribution page: https://cividemo.com/simple-contribution-page?view=Contributions&task=civicrm/contribute/transact&id=1&reset=1 as well as in the admin interface when browsing to: https://cividemo.com/administrator/index.php?option=com_civicrm
I believe this is related to permissions. If I enable or disable a user in Joomla, the site throws the same here. Here's a screencast: https://www.awesomescreenshot.com/video/13122436?key=fa4d6f06dd5831141ce90b1f9f89e82c
Note that I'm clicking the back button in the browser (not viewable in the screencast), yet you can see that the change to the user's state does take effect.
Moreoever, when reviewing user permissions for CiviCRM in the global configuration I receive this error:
`An error has occurred.
0 Failed opening required '/home/cividemo/public_html/libraries/joomla/form/fields/rules.php' (include_path='.:/opt/remi/php80/root/usr/share/pear:/opt/remi/php80/root/usr/share/php:/usr/share/pear:/usr/share/php')`seamusleeseamusleehttps://lab.civicrm.org/dev/joomla/-/issues/42Minor J4 issue: nav button link is wrong2023-08-26T22:36:27ZnicolMinor J4 issue: nav button link is wrongCiviCRM has a button link in the top right admin nav, but this currently just links to the site home page, ie root.
![image](/uploads/964ba7955e5724d3a295d9a302145ea4/image.png)CiviCRM has a button link in the top right admin nav, but this currently just links to the site home page, ie root.
![image](/uploads/964ba7955e5724d3a295d9a302145ea4/image.png)Joomla 4 Integrationhttps://lab.civicrm.org/dev/joomla/-/issues/17[Joomla 4.0] CiviCRM menu issues2021-09-02T10:17:43ZAndrew Thompson[Joomla 4.0] CiviCRM menu issuesThe 'new' (former KAM) CiviCRM menu has some cosmetic problems in Joomla 4.0 alpha 11:
1. The CiviCRM menu pushes the Joomla top horizontal menu down so that Joomla's is below CiviCRM's, and when the CiviCRM is moved down, it appears be...The 'new' (former KAM) CiviCRM menu has some cosmetic problems in Joomla 4.0 alpha 11:
1. The CiviCRM menu pushes the Joomla top horizontal menu down so that Joomla's is below CiviCRM's, and when the CiviCRM is moved down, it appears behind Joomla's.
![QPTgvgiKi9](/uploads/5073d73a73551cf3fbc5f4926449f307/QPTgvgiKi9.gif)
2. The search menu options' text are visible only on mouseover
![8jik9uASCQ](/uploads/567a19a70b59327e88c7ada5b3bfa326/8jik9uASCQ.gif)Joomla 4 Integrationhttps://lab.civicrm.org/dev/joomla/-/issues/16[Joomla 4.0] Warnings when CiviCRM is uninstalled2022-08-12T05:14:12ZAndrew Thompson[Joomla 4.0] Warnings when CiviCRM is uninstalledTwo PHP warnings are displayed when uninstalling CiviCRM from Joomla 4.0 alpha 11:
```
Warning: require_once(CRM/Utils/String.php): failed to open stream: No such file or directory in /var/www/html/j4/administrator/components/com_civic...Two PHP warnings are displayed when uninstalling CiviCRM from Joomla 4.0 alpha 11:
```
Warning: require_once(CRM/Utils/String.php): failed to open stream: No such file or directory in /var/www/html/j4/administrator/components/com_civicrm/script.civicrm.php on line 226
```
```
Fatal error: require_once(): Failed opening required 'CRM/Utils/String.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/j4/administrator/components/com_civicrm/script.civicrm.php on line 226
```Joomla 4 Integrationhttps://lab.civicrm.org/dev/joomla/-/issues/11Warning: hash_equals(): Expected user_string to be a string, null given in .....2019-05-23T23:07:11ZspalmstromWarning: hash_equals(): Expected user_string to be a string, null given in .../administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/Contact/Utils.php on line 232When looking at a contact's profile via the front end under Joomla I get:
Warning: hash_equals(): Expected user_string to be a string, null given in …/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/Contact/Utils.php on lin...When looking at a contact's profile via the front end under Joomla I get:
Warning: hash_equals(): Expected user_string to be a string, null given in …/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/Contact/Utils.php on line 232. I saw this under 5.11.0, and now under 5.12.0. Without a Joomla demo site I can't reproduce it - the demo site is running 5.5.3, and doesn't have a view profile menu item in the front end.
See also [https://civicrm.stackexchange.com/questions/28768/hash-equals-expected-user-string-to-be-a-string-null-given-in-contact-bao-co](https://civicrm.stackexchange.com/questions/28768/hash-equals-expected-user-string-to-be-a-string-null-given-in-contact-bao-co); a question that hasn't been answered. I have been looking at code to avoid the warning.
I realise that Joomla front-end errors are a low priority.5.15.0https://lab.civicrm.org/dev/joomla/-/issues/6Joomla doesn't recognize user in checking permissions from `cv` - can't send ...2019-04-22T00:47:10ZAndie HuntJoomla doesn't recognize user in checking permissions from `cv` - can't send CiviMailThis is basically [CRM-17968](https://issues.civicrm.org/jira/browse/CRM-17968) continued for Joomla (the late comments show that it was never resolved in 4.7.4 as it was for the other CMSes).
This means that `cv api Job.process_mailing...This is basically [CRM-17968](https://issues.civicrm.org/jira/browse/CRM-17968) continued for Joomla (the late comments show that it was never resolved in 4.7.4 as it was for the other CMSes).
This means that `cv api Job.process_mailing --user=cronuser` will fail with
> API permission check failed for Group/get call; insufficient permission: require access CiviCRM
In this scenario, you can retrieve the Joomla user ID from the session
```php
$userId = CRM_Core_Session::singleton()->get('ufID');
```
but when [a null value is supplied to `JFactory::getUser()`](https://github.com/civicrm/civicrm-core/blob/5.9.0/CRM/Core/Permission/Joomla.php#L69), it doesn't return a Joomla user object.
So, a quick solution is to simply retrieve the user ID from the session and supply it to `JFactory::getUser()`, but that's a hacky workaround. Something isn't working quite right in this scenario.
I think there may be something more fundamental that isn't bootstrapping right.
Unfortunately, that means that the CiviMail scheduled job breaks for a lot of Joomla sites. See related reports:
- https://github.com/civicrm/cv/issues/40
- https://civicrm.stackexchange.com/questions/27661/for-some-reason-cron-doesnt-work-on-cms-joomla
- https://issues.civicrm.org/jira/browse/CRM-17968
- https://civicrm.stackexchange.com/questions/9570/mailings-scheduler-fails-after-upgrade-to-4-7-15.14.0https://lab.civicrm.org/dev/joomla/-/issues/4Joomla admin template cleanup2019-03-05T18:04:33ZnicolJoomla admin template cleanupWhile fixing a recent z-index issue, cleaned up some of the Joomla admin padding, removing empty blocks in both regular and Shoreditch. Details: https://github.com/civicrm/civicrm-core/pull/12956 (edited to update pull #)While fixing a recent z-index issue, cleaned up some of the Joomla admin padding, removing empty blocks in both regular and Shoreditch. Details: https://github.com/civicrm/civicrm-core/pull/12956 (edited to update pull #)https://lab.civicrm.org/dev/joomla/-/issues/1CiviEvent menu listing showing old events2018-07-03T22:53:01Zaydunsaidan.saunders@squiffle.ukCiviEvent menu listing showing old eventsCiviCRM 5.1.2 on Joomla 3.8.10.
Problem as reported: Trying to create a menu item for an event info page, and the drop-down in the Joomla menu manager is only displaying past events. The drop-down for the Event Registration Page shows ...CiviCRM 5.1.2 on Joomla 3.8.10.
Problem as reported: Trying to create a menu item for an event info page, and the drop-down in the Joomla menu manager is only displaying past events. The drop-down for the Event Registration Page shows the currently active and upcoming events - there are only 2 of them.
(From https://civicrm.stackexchange.com/questions/25555/civievent-menu-listing-not-finding-active-event)
Investigation: the selector for showing events filters by 'active' and shows at most 100 events, but it does not filter by date - so when there are more than 100 events, new ones are not shown.5.4.0