Project

General

Profile

Actions

Bug #3247

closed

User list SQL error on J1.5.25

Added by nant about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
08 February 2012
Due date:
% Done:

100%

Estimated time:
0:30 h

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
  1. 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

Related issues 2 (0 open2 closed)

Related to CB - Bug #3252: Userlist with no users possible can cause fatal errorClosedbeat09 February 2012

Actions
Related to CB - Bug #3265: myGroups isn't always an array and is immediately passed to cbArrayToIntsClosedbeat13 February 2012

Actions
Actions #1

Updated by nant about 12 years ago

  • Target version set to CB 1.8
Actions #2

Updated by nant about 12 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]

Actions #3

Updated by beat about 12 years ago

r1748 fixes this issue that was at lower level.

Actions #4

Updated by beat about 12 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.

Actions

Also available in: Atom PDF