No Code Attached Yet J4 Issue
avatar franz-wohlkoenig
franz-wohlkoenig
21 Aug 2018

Steps to reproduce the issue

  1. create Contact-Categories for each language and associate them
  2. create Contacts for each language and associate them
  3. create Menu-Items List Contacts in a Category for each language and associate them

Load Menu-Item List Contacts in a Category for en-GB and click on Language-Switcher for "FR".

Expected result

Menu-Items List Contacts in a Category for fr-FR is loaded.

Actual result

Menu-Items List Contacts in a Category stay on en-GB.

System information

  • Nightly Build 4.0.0-alpha5-dev
  • Multilingual Sample Data (French, German DE, Persian)
  • Template: Cassiopeia
  • macOS Sierra, 10.13.6
  • Firefox 61 (64-bit)

CloudAccess.net

  • PHP 7.1.15
  • MySQLi 5.7.18-cll-lve
avatar franz-wohlkoenig franz-wohlkoenig - open - 21 Aug 2018
avatar joomla-cms-bot joomla-cms-bot - change - 21 Aug 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Aug 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Aug 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 21 Aug 2018
Category com_associations com_contact
avatar brianteeman brianteeman - change - 21 Aug 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 21 Aug 2018
avatar infograf768
infograf768 - comment - 21 Aug 2018

I confirm contacts links are totally broken in frontend and language swicther too.
There are many errors. Looks like something fundamental has been modified in core.

avatar infograf768
infograf768 - comment - 22 Aug 2018

replacing in
/components/com_contact/helpers/association.php
the top lines
by

defined('_JEXEC') or die;

//use Joomla\Component\Contact\Site\Helper\Route as ContactHelperRoute;
use Joomla\CMS\Factory;

JLoader::register('ContactHelper', JPATH_ADMINISTRATOR . '/components/com_contact/helpers/contact.php');
JLoader::register('ContactHelperRoute', JPATH_SITE . '/components/com_contact/helpers/route.php');
JLoader::register('CategoryHelperAssociation', JPATH_ADMINISTRATOR . '/components/com_categories/helpers/association.php');

will solve that issue.

Alas, we also have the "modern" routing issue here.
I.e. if we associate categories but do not create a All Contact Categories or a direct menu item to the associated category for each content language, the absence of an Itemid will not display the association.

I will make a patch which only can be temporary as I guess the use etc. should work in the future.

avatar wojsmol
wojsmol - comment - 22 Aug 2018

cc @laoneo Please look into this when you have a time.

avatar laoneo
laoneo - comment - 22 Aug 2018

Contacts is not migrated yet fully to services and namespaces as there are still open pr's (#20339, #20693 and optionally #20640) which need to get merged first. Then I will migrate contacts, banners, newsfeeds and categories. But leave this issue open till all is done and then we can come back to this one again. Till then there is no really a point in testing these extensions.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Aug 2018

@laoneo thanks for Info.

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2019
The description was changed
avatar franz-wohlkoenig franz-wohlkoenig - edited - 2 Apr 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Apr 2019

@laoneo all three mentioned Pull Requests are merged, are "contacts, banners, newsfeeds and categories" also migrated and this one can be tested again if Issue still exist?

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2019
Status Discussion Information Required
avatar laoneo
laoneo - comment - 2 Apr 2019

Yes

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Apr 2019
The description was changed
avatar franz-wohlkoenig franz-wohlkoenig - edited - 2 Apr 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Apr 2019

Thanks @laoneo. Issue is the same as described in first Comment.

avatar infograf768
infograf768 - comment - 2 Apr 2019

I confirm the issue is still present. Tested for contacts although they rightfully use AssociationServiceInterface
The issue is present for SEF as well as no SEF.

avatar brianteeman
brianteeman - comment - 13 Dec 2019

I confirm the issue is still present.

avatar infograf768
infograf768 - comment - 14 Dec 2019

@laoneo
can you look at this please?

avatar jwaisner jwaisner - change - 11 Mar 2020
Status Information Required Confirmed
Build master 4.0-dev
avatar brianteeman
brianteeman - comment - 15 Aug 2022

I have retested this old issue and it is no longer reproducable (as expected) and can now be closed

avatar alikon alikon - change - 15 Aug 2022
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2022-08-15 19:54:47
Closed_By alikon
Labels Added: No Code Attached Yet
Removed: ?
avatar alikon alikon - close - 15 Aug 2022

Add a Comment

Login with GitHub to post a comment