Tak właśnie jest napisane na początku tego wątku: błąd pojawił się po instalacji RSEvents - w tym rozszerzeniu jest błąd w zapytaniu
Tak właśnie jest napisane na początku tego wątku: błąd pojawił się po instalacji RSEvents - w tym rozszerzeniu jest błąd w zapytaniu
@Jola Powiem tyle, myliliśmy się co do tego gdzie był byk. Nie mam, jak na razie, zgody od autora tematu na podanie szczegółów.
A jest szansa, że poda Pan jakieś szczegóły publicznie lub na prv. Zauważyłem, że mam chyba ten sam problem. Bardzo proszę o pomoc.
Kod:Unknown column 'a.id' in 'where clause' SQL=SELECT COUNT(*) FROM `joomla323_extensions` AS a LEFT JOIN joomla323_users AS uc ON uc.id=a.checked_out LEFT JOIN joomla323_viewlevels AS ag ON ag.id = a.access WHERE `type` = 'plugin' AND (a.enabled IN (0, 1)) AND a.state >= 0 AND a.id != 789 Unknown column 'a.id' in 'where clause' SQL=SELECT a.extension_id , a.name, a.element, a.folder, a.checked_out, a.checked_out_time, a.enabled, a.access, a.ordering,uc.name AS editor,ag.title AS access_level FROM `joomla323_extensions` AS a LEFT JOIN joomla323_users AS uc ON uc.id=a.checked_out LEFT JOIN joomla323_viewlevels AS ag ON ag.id = a.access WHERE `type` = 'plugin' AND (a.enabled IN (0, 1)) AND a.state >= 0 AND a.id != 789 ORDER BY `folder` asc,a.ordering ASC LIMIT 0, 20 Unknown column 'a.id' in 'where clause' SQL=SELECT COUNT(*) FROM `joomla323_extensions` AS a LEFT JOIN joomla323_users AS uc ON uc.id=a.checked_out LEFT JOIN joomla323_viewlevels AS ag ON ag.id = a.access WHERE `type` = 'plugin' AND (a.enabled IN (0, 1)) AND a.state >= 0 AND a.id != 789
Creek Podaj wersje Joomla na której występuje problem.
Creek Pokaż jak wygląda u Ciebie public function getItems() z pliku libraries/legacy/model/list.php - w 3.3.6 powinna ona zaczynać się na linii 155.
Tak jest. Była w 155 linii.
Kod:/** * Method to get an array of data items. * * @return mixed An array of data items on success, false on failure. * * @since 12.2 */ public function getItems() { // Get a storage key. $store = $this->getStoreId(); // Try to load the data from internal storage. if (isset($this->cache[$store])) { return $this->cache[$store]; } // Load the list items. $query = $this->_getListQuery(); try { $query->where('a.id != 789'); $items = $this->_getList($query, $this->getStart(), $this->getState('list.limit')); } catch (RuntimeException $e) { $this->setError($e->getMessage()); return false; } // Add the items to the internal cache. $this->cache[$store] = $items; return $this->cache[$store]; }
Mamy winowajcezrób sobie kope tego pliku i podmień funkcję na tą całą funkcję na wersji z Joomla! 3.3.6 https://github.com/joomla/joomla-cms....php#L155-L184. Przed zmianami sprawdź datę modyfikacji pliku oraz co siedzi w tabeli joomla323_extensions pod extension_id równym 789.try
{
$query->where('a.id != 789'); $items = $this->_getList($query, $this->getStart(), $this->getState('list.limit'));
}
// Edit
@Jola W przypadku rozpoczynającym temat była ta sama przyczyna tylko inne id miały być wykluczone z zapytania.
Ostanio edytowane przez wojsmol : 05-02-2016 18:50
W takim razie lektura do poduszki - klik. Przy tak starej wersji Joomla! nic mnie nie zdziwi.