CMS MADE SIMPLE FORGE

CGUserDirectory

 

[#4918] Error in search result

avatar
Created By: Jan Bakke (janb)
Date Submitted: Wed May 12 04:52:18 -0400 2010

Assigned To:
Version: 1.2.1
CMSMS Version: None
Severity: None
Resolution: Fixed
State: Closed
Summary:
Error in search result
Detailed Description:
I am very unsure if this is a bug as nobody else have reported this in the
forum.

In the search result I am getting this error:
Warning: rawurlencode() expects parameter 1 to be string, array given in
/var/www/sandbox/lib/classes/module_support/modform.inc.php on line 459

In action.do_search.php building Details URL 
Lines 253-262
After unset ud_propvalue (array) in $params the error is gone. (causing the
error as this is an array in the array) and cause pretti-url not working.

        // Detail URL
        unset($params['ud_propvalue']);
        $params['uid'] = $data[$i]['id'];
        $prettyurl = 'users/'.$params['uid'].'/'.$detailpage;
        if( isset($params['detailtemplate']) )
          {
            $prettyurl .=
'/'.munge_string_to_url(trim($params['detailtemplate']));
          }
        $prettyurl .= '/'.munge_string_to_url($data[$i]['username']);
        $data[$i]['detail_url'] = $this->CreateURL($id,'detail',$detailpage,
                                                   $params,false,$prettyurl);

JanB


History

Comments
avatar
Date: 2012-01-12 21:57
Posted By: Robert Campbell (calguy1000)

fixed a long time ago.
      
Updates

Updated: 2014-08-23 11:20
state: Open => Closed

Updated: 2012-01-12 21:57
resolution_id: => 7
cmsms_version_id: => -1