Bug #2163
closedJ16: Backend: not possible to create users
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.
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
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.
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
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.
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 .