?
avatar brianteeman
brianteeman
19 Mar 2016

Opening this module under postgres produces

0 ERROR: function max(boolean) does not exist LINE 1: SELECT u.name, count(cd.language) as counted, MAX(cd.languag... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.SQL=SELECT u.name, count(cd.language) as counted, MAX(cd.language='') as all_languages FROM #__users AS u LEFT JOIN #__contact_details AS cd ON cd.user_id=u.id LEFT JOIN #__languages as l on cd.language=l.lang_code WHERE EXISTS (SELECT * from #__content as c where c.created_by=u.id) AND (l.published=1 or cd.language='') AND cd.published=1 GROUP BY u.id HAVING (counted !=3 OR all_languages=1) AND (counted !=1 OR all_languages=0)

avatar brianteeman brianteeman - open - 19 Mar 2016
avatar waader
waader - comment - 19 Mar 2016

I stumbled over this before and described my foundings in #8673. But I think we need the experience of a really wizard here: @alikon - Sorry for calling you again.

avatar alikon
alikon - comment - 19 Mar 2016

no problem but i need some help
cause that query is unreadable......
what is supposed to do the Multilingual status module ??

avatar brianteeman
brianteeman - comment - 19 Mar 2016

Closing as a duplicate of #8673

avatar brianteeman brianteeman - change - 19 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-19 17:11:28
Closed_By brianteeman
avatar brianteeman brianteeman - close - 19 Mar 2016
avatar brianteeman brianteeman - close - 19 Mar 2016
avatar infograf768
infograf768 - comment - 20 Mar 2016

@alikon
That query is checking that if there is a contact set to a specific user and to a specific content language, then there are also contacts set to the same user in all other content languages, as otherwise it breaks.

The module displays such possible issues.
A contact set to a specific user and to ALL languages is fine.

COM_LANGUAGES_MULTILANGSTATUS_CONTACTS_ERROR="Some of the contacts linked to the user <strong>%s</strong> are incorrect."
COM_LANGUAGES_MULTILANGSTATUS_CONTACTS_ERROR_TIP="Warning! A user/author should have only one contact to which is assigned language 'All' OR one contact for each published Content Language."
avatar alikon
alikon - comment - 20 Mar 2016

@infograf768 hoping that i've understand #9492 ;)

Add a Comment

Login with GitHub to post a comment