By Richard Moore on Monday, 22 December 2014
Posted in General Issues
Replies 3
Likes 0
Views 857
Votes 0
Does anyone recognise this error message

Undefined variable: v in /home/mysite/public_html/media/com_easysocial/apps/fields/user/multidropdown/multidropdown.php on line 148


It is displayed in the my profile area of the dashboard .

Click on About and then it shows ( 3 times) at the top on one specific page of the profile. I'm guessing there is something wrong with one of the custom variables but as they all display correctly I'm wondering how I track it down.

The PHP code referenced is

if ($field->searchable) {
$params = array( 'layout' => 'advanced' );
$params['criterias[]'] = $field->unique_key . '|' . $field->element;
$params['operators[]'] = 'contain';
$params['conditions[]'] = $v;

$advsearchLink = FRoute::search($params);
$option->advancedsearchlink = $advsearchLink;
}


Line 5 is error line
Hello Richard,

Yes, it is a bug in our code. We will fix it in the next release.
·
Monday, 22 December 2014 13:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

You might want to change the $v to $r and see how it goes.
from this:
$params['conditions[]'] = $v;

to this:
$params['conditions[]'] = $r;
·
Monday, 22 December 2014 10:31
·
0 Likes
·
0 Votes
·
0 Comments
·
It went very well thanks. No idea what it does (or if it will be overwritten next time I upgrade ES) so is this a bug in the PHP or something going on with my install/config ?

Thanks for the prompt response though.
·
Monday, 22 December 2014 13:32
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post