Error 500 when no tags in a content item

More
14 years 8 months ago #5303 by alatak
Hi,

A SQL error happens when no tag are associated with the content, and the joomla configuration parameter Debug System is ON.

To solve that problem,
add in the file
administrator/componnents/com_flexi_content/models/item.php

in function getUsedtags($A) (line 942) the test if $A is not empty
Code:
function getUsedtags($A) { if ($A){ $query = 'SELECT *,t.id as tid FROM #__flexicontent_tags as t ' . ' WHERE t.id IN (' . implode(',', $A).')' . ' ORDER BY name ASC' ; $this->_db->setQuery($query); $used = $this->_db->loadObjectList(); } return $used; }

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.292 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