Server showing blank language associations

More
9 years 10 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

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

More
9 years 10 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 review. Thanks!

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

More
9 years 10 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
9 years 10 months ago - 9 years 10 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: 9 years 10 months ago by iamrobert.

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

More
9 years 10 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 review. Thanks!

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

More
9 years 10 months ago - 9 years 10 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?
Last edit: 9 years 10 months ago by iamrobert.

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

More
9 years 10 months ago - 9 years 10 months ago #60478 by ggppdk
Hello

i mentioned wrong file (the file that i mentioned above was for listing categories),
so remove my previous code and your code change too


Edit correct model file for listing / selecting items and add the code i mentioned:
administrator/components/com_flexicontent/models/itemelement.php

after:
Code:
$assocanytrans = $user->authorise('flexicontent.assocanytrans', 'com_flexicontent');

add:
Code:
if ($assocanytrans) $created_by = 0;


Also inside same file you can print the query, by adding after line: $query = $this->_buildQuery();
Code:
echo str_replace('#__', JFactory::getApplication()->getCfg('dbprefix'), $query->__toString());

and then you can use it in PHPmyadmin too


-- 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 review. Thanks!
Last edit: 9 years 10 months ago by ggppdk.

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

More
9 years 10 months ago #60486 by iamrobert
Hi ggppdk,
I was just getting a blank screen with that scenario. The site has a lot going on.

I will PM you the demo server which seems to have the same issue if you want to take a look.

However, its really fine!

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

Moderators: vistamediajoomlacornerggppdk
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
Save