Server showing blank language associations

More
8 years 7 months ago #60413 by iamrobert
Hi,

I'm having a weird issue - on my localhost - the language associations work. However on my host - its blank .

I have tried:
1. using blank .htaccess
2. upgrading FLEXIcontent
3. using the default Joomla administrator template
4. Disabling redirect plugin

There isn't any obvious error or js - its blank.
THE URL is
index.php?option=com_flexicontent&view=itemelement&tmpl=component&language=zh-CN&assocs_id=34

If I remove the assocs_id - then the list comes up or the Original content being translated also works.

Can you think of any reasons?

Cheers,

Robert
Attachments:

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #60423 by ggppdk
Hello

"Original content being translated"
we don't use this term any longer, instead we use Joomla way for language associations

also the list of items gets some filtering
e.g.
- item must be of same Type,
- item must be owned by current user or user must be super admin, or user must have "Associate any" ACL privilege


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #60441 by iamrobert
Thanks - I have updated the language - its simpler for the client.

However - the issue was if you have the browser extension adblock ( bit.ly/18a5mRL ) running on the domain - it stops the iframe from working properly.

Disabling adblock or running the browser in incognito - seemed to fix the issue.

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago - 8 years 7 months ago #60459 by iamrobert
Sorry - its not solved - I am using default ISIS template. Its also happening to my clients.

We are all super users and it works for the first article and then fails after that. It seems like the cache or something isn't getting refreshed.

My hacky solution is I have commented out and its working again:
administrator/components/com_flexicontent/elements/qfcategory.php
Code:
$link .= ($language && $assocs_id) ? '&assocs_id='.$assocs_id : '';

administrator/components/com_flexicontent/elements/item.php
Code:
$link .= ($language && $assocs_id) ? '&assocs_id='.$assocs_id : '';

and it works ok.
Last edit: 8 years 7 months ago by iamrobert.

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #60467 by ggppdk
Hello

the assocs_id is the ID of the current item
it enabled check for language and items of same author, thus the user will see only his/her items

- but for super users AND FOR users with "assoc any translation ACL" maybe we should not impose this limit ?
(i think this was broken when we fixed another issue with 3rd-party plugins setting language variable)

undo your changes and edit:
administrator/components/com_flexicontent/models/qfcategoryelement.php

find line:
$assocanytrans = $user->authorise('flexicontent.assocanytrans', 'com_flexicontent');
and after it add:
if ($assocanytrans) $created_by = 0;

does it work ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago - 8 years 7 months ago #60477 by iamrobert
Hi,

Thanks for the feedback.

Is this the code?
Code:
$assocanytrans = $user->authorise('flexicontent.assocanytrans', 'com_flexicontent'); //EDIT if ($assocanytrans) $created_by = 0; if (!$assocanytrans && !$created_by) { $created_by = $user->id; $app->setUserState( $option.'.'.$view.'.created_by', $created_by ); }
As its still blank - even if I select categories:


Its not a big deal - as my fix seems to work. Is there some change to the authors in FLEXIcontent to allow them to be translators or something - as I am upgrading an old site?
Attachments:
Last edit: 8 years 7 months ago by iamrobert.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.303 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline