[Joomla 1.5RC3-FIX] Profile update cb.core foreach

15 years 11 months ago #61488 by mrphivotu
sebaqe wrote:

what i did was to switch two lines of code between each other, so from this

$userParams = array();
$userParams = $this->_getUserParams($ui, $user);
i changed to this:
$userParams = $this->_getUserParams($ui, $user);
$userParams = array();


i tried this and it works on my site also with no side effects yet ;) . I've been troubleshooting this thing for the past few weeks and that fix just saved me a few days.I'll be launching this thing soon. joomla 1.5.2 CB 1.1 Thanks

Please Log in to join the conversation.

15 years 11 months ago #61530 by mike.norris
Replied by mike.norris on topic Re:[Joomla 1.5RC3-FIX] Profile update cb.core fore
this is the correct fix to the "invalid argument ... cb.core.php ... line 240" error. It is a simple type-o.
around line 234:
$userParams = array();
$userParams = $this->_getUserParams($ui, $user);

These line have to be switched. define the variable then associate the array!

$userParams = $this->_getUserParams($ui, $user);
$userParams = array();

Good job in locating the issue!

Please Log in to join the conversation.

15 years 10 months ago #62753 by maxolivier
Thanks man. That fixed it for me ...

Please Log in to join the conversation.

15 years 9 months ago #63974 by lanmi
Replied by lanmi on topic Re:Profile update -> cb.core error
beat wrote:

A reply was just posted at joomla forum here:

forum.joomla.org/index.php/topic,223385.msg1036999.html#msg1036999

Could someone please check that changing that line in cb.core.php plugin file does fix the problem, and that now the user parameters are visible and can be changed and saved ?

Thanks in advance for your help,

User parameters are visible but user can't save changes for his profile if he try to edit them, i can't figure it out why. From administrator pages editing and saving works for any user, but every user when logs in on site should have availability to change for example his name and to save the changes. Editing user profile doesn't work at all.

Post edited by: lanmi, at: 2008/05/30 14:08

Please Log in to join the conversation.

15 years 9 months ago #64921 by ajstead
Please don't tell me to search the forum! I have spent 4 hours on this!

Would someone please tell me where the cb_core.php file is located? The only location info I can find here is "...deep within the hierarchy" or some such nonsense.

Thanks in advance for you help!

Adam

Please Log in to join the conversation.

15 years 9 months ago #64954 by nant

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.284 seconds

Facebook Twitter LinkedIn