Bug #3247
closedUser list SQL error on J1.5.25
Description
Way to replicate:
User list with following:
View Access Level: Public
User Group to allow access to: Everybody
User Groups to Include in List: Registered
When trying to view such a user list in frontend I get following error:
500 - JDatabaseMySQL::query: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY ordering' at line 1 SQL=SELECT listid, title FROM jos_comprofiler_lists WHERE published=1 AND viewaccesslevel IN (1) AND useraccessgroupid IN () ORDER BY ordering
You may not be able to visit this page because of:
an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.
Please try one of the following pages:
Home Page
If difficulties persist, please contact the System Administrator of this site.
JDatabaseMySQL::query: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY ordering' at line 1 SQL=SELECT listid, title FROM jos_comprofiler_lists WHERE published=1 AND viewaccesslevel IN (1) AND useraccessgroupid IN () ORDER BY ordering
Call stack- Function Location
1 JSite->dispatch() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/index.php:68
2 JComponentHelper->renderComponent() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/includes/application.php:124
3 require_once() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/libraries/joomla/application/component/helper.php:162
4 usersList() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/components/com_comprofiler/comprofiler.php:108
5 cbUsersList->drawUsersList() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/components/com_comprofiler/comprofiler.php:804
6 CBdatabase->loadObjectList() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/administrator/components/com_comprofiler/library/cb/cb.lists.php:89
7 CBdatabase->query() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/administrator/components/com_comprofiler/library/cb/cb.database.php:861
8 JDatabaseMySQL->query() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/administrator/components/com_comprofiler/library/cb/cb.database.php:695
9 JError->raiseError() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/libraries/joomla/database/database/mysql.php:231
10 JError->raise() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/libraries/joomla/error/error.php:171
11 JException->__construct() /Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/libraries/joomla/error/error.php:136
Updated by nant almost 13 years ago
line 166:
function & cbArrayToInts( &$array ) {
to
function & cbArrayToInts( &$array ) { if ( ! is_array( $array ) ) {debug_print_backtrace(); exit(); }
to
[9/2/12 1:20:34 μ.μ.] Nicholas G. Antimisiaris: #0 cbArrayToInts() called at [/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/administrator/components/com_comprofiler/library/cb/cb.acl.php:635]
#1 CBACL->myGroups(0) called at [/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/administrator/components/com_comprofiler/library/cb/cb.acl.php:652]
#2 CBACL->get_groups_below_me(0, 1) called at [/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/administrator/components/com_comprofiler/library/cb/cb.lists.php:87]
#3 cbUsersList->drawUsersList(0, 0, Array ([option] => com_comprofiler,[task] => userslist,[Itemid] => 2)) called at [/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/components/com_comprofiler/comprofiler.php:804]
#4 usersList(0) called at [/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/components/com_comprofiler/comprofiler.php:108]
#5 require_once(/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/components/com_comprofiler/comprofiler.php) called at [/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/libraries/joomla/application/component/helper.php:162]
#6 JComponentHelper->renderComponent(com_comprofiler) called at [/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/includes/application.php:124]
#7 JSite->dispatch(com_comprofiler) called at [/Users/nick/Documents/JOOMLAPOLIS/DEV/SITES/j1525/index.php:68]
Updated by beat almost 13 years ago
r1748 fixes this issue that was at lower level.
Updated by beat almost 13 years ago
- Status changed from New to Closed
- Assignee set to beat
- % Done changed from 0 to 100
- Estimated time set to 0:30 h
and r1749 makes sure that drop-down list doesn't show misconfigured lists.