Project

General

Profile

Actions

Bug #2163

closed

J16: Backend: not possible to create users

Added by krileon almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
29 December 2010
Due date:
% Done:

100%

Estimated time:
1:00 h

Description

When attempting to create a user a JS pop-up is initiated with the below message.

DB function reports no errors

Followed by a page refresh (still on user Edit page) with the warning at the top as follows.

Could not instantiate mail function.

There's also a what appears to be untranslated language string above the users tabs as follows.

PHPMAILER_INSTANTIATE

The user is actually created in Joomlas database, but not CBs. Navigating to Joomlas user manager the user belongs to no User Groups.


Related issues 1 (0 open1 closed)

Related to CB - Bug #2225: J16: multi-usergroup management not possibleClosedbeat17 January 2011

Actions
Actions #1

Updated by krileon almost 14 years ago

Issue is due to Joomla RC1 and SVN changing how the user->groups array is handled. Instead of passing the typical array( id => name ) to user edit save function it now wants you to pass array( 0 => id ), which isn't correct as that is not how the array is given to you or handled. Following quick fix can resolve this, but WILL break pre-RC1 and SVN releases.

IN: administrator/components/com_comprofiler/libraries/cb/tables.php
ON: Line 1031
FROM:
$this->_cmsUser->groups = $groups;
TO:
$this->_cmsUser->groups = array_keys( $groups );

Discussion found at the following link.

http://groups.google.com/group/joomla-dev-framework/browse_thread/thread/769f39ce134a7746#

Joomla bug ticket found at the following link.

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=23774

Actions #2

Updated by krileon almost 14 years ago

  • File 2163.patch added
  • Status changed from New to Resolved
  • Assignee set to beat
  • % Done changed from 0 to 100

Fixed as per stable release of J1.6.x.

Actions #3

Updated by krileon almost 14 years ago

  • Subject changed from Backend: not possible to create users in J16 (RC1 and SVN) to J16: Backend: not possible to create users
Actions #4

Updated by krileon almost 14 years ago

  • File deleted (2163.patch)
Actions #5

Updated by krileon almost 14 years ago

Please see #2240 for patches.

Actions #6

Updated by beat almost 14 years ago

r1346 :
Moved function cbArrayToInts() from comprofiler.class.php to plugin.foundation.php , as cb.tables has not always comprofiler.class.php as prerequisite.

applies wrong fix of initial file 2163.pach

r1347 reverts wrong fix. Waiting for new patch.

NOTE: never delete files please, as that's not tracable.

Actions #7

Updated by beat almost 14 years ago

  • Status changed from Resolved to Closed
  • Estimated time set to 1:00 h

Fixed as suggested in #2225 in r1348 .

Actions

Also available in: Atom PDF