| 
Welcome, Guest

[Joomla 1.5RC3-FIX] Profile update cb.core foreach
(1 viewing) (1) Guest

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

Re:[Joomla 1.5RC3-FIX] Profile update cb.core fore 3 years, 6 months ago #79916

  • CyberCobre
  • CyberCobre
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 2
  • Karma: -
file didn't attach. Reposted. Mod, please delete this post

Post edited by: CyberCobre, at: 2008/11/18 00:19
The topic has been locked.

Re:[Joomla 1.5RC3-FIX] Profile update cb.core fore 3 years, 6 months ago #79918

  • CyberCobre
  • CyberCobre
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 2
  • Karma: -
To fix this, simply FTP into your account, download (forced ascii) the cb.core.php file found in:

../components/com_comprofiler/plugin/user/plug_cbcore

Find lines 235 and 236 which will look like this:

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

Change them to this (in other words, swap them around):

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

Reload the cb.core.php file (forced ascii, overwrite)

Problem solved.

A zip file of the fixed cb.core.php file is attached.




Attachment cb-e13bd50628871d3cf476322ca5ce5619.zip not found

Attachments:
The topic has been locked.

Re:[Joomla 1.5RC3-FIX] Profile update cb.core fore 3 years, 6 months ago #80388

sdwyer wrote:
I would also recommend changing line 238 of cb.core.php from:
if ( ( count( $userParams ) > 0 ) && in_array( $_CB_framework->getCfg( "frontend_userparams" ), array( '1', null) ) ) {

to:
if ($userParams !== false && ( count( $userParams ) > 0 ) && in_array( $_CB_framework->getCfg( "frontend_userparams" ), array( '1', null) ) ) {

since it is possible that JParameter::getParams could return false, and count(false) returns 1 for some reason.


This just work fine!... thanks a lot!...
The topic has been locked.

Re:i fix 1.5 profile update error 3 years, 6 months ago #80455

  • judlee
  • judlee
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: -
squallata wrote:
in comprofiler.html.php
change this
 
//--><!]]></script>
<form action="<?php echo sefRelToAbs("index.php?option=$option".getCBprofileItemid(true)); ?>" method="post" id="adminForm" name="adminForm" onsubmit="return submitbutton(this)">
<!-- TAB -->
 

white this
 
//--><!]]></script>
<form action="<?php echo "index.php?option=$option".getCBprofileItemid(); ?>" method="post" id="adminForm" name="adminForm" onsubmit="return submitbutton(this)">
<!-- TAB -->
 

and i can update my profile now


This worked perfectly. Thanks so much for posting the fix.
The topic has been locked.

Re:i fix 1.5 profile update error 3 years, 5 months ago #81242

  • motnaf
  • motnaf
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: -
thnx man , you are genius!!!!!
The topic has been locked.

Re:[Joomla 1.5RC3-FIX] Profile update cb.core foreach 3 years, 5 months ago #81880

  • iPoul
  • iPoul
  • OFFLINE
  • Fresh Boarder
    Fresh Boarder
  • Posts: 1
  • Karma: -
For some reason, the only thing all these fixes do, is remove the error, im still not able to actual update the profile (front-end) as a regular user, it just tries to fetch some article which doesnt exist, tho it equal the user id i try to update.

Joomla 1.5.7 - CB 1.1
The topic has been locked.
Time to create page: 1.83 seconds