Unhandled Error!

Urlencode() expects parameter 1 to be string, array given

Document /modules/cms/classes/cms_controller.php
Document type PHP document
Line 808
Exception class Phpr_PhpException

Code Highlight

 
					$url_params[$frontend_ticket_param] = $ticket_id;
					$url_params[$session_id_param] = $session_id;
 
					$url_params_encoded = array();
					foreach ($url_params as $param_name=>$param_value)
						$url_params_encoded[] = $param_name.'='.urlencode($param_value);
 
					$url_params_str = '?'.implode('&', $url_params_encoded);
 
					Phpr::$response->redirect(Phpr::$request->getRootUrl($page->protocol).
						root_url($page->url).
						$param_str.
# Call Stack Code Document Line
11 urlencode(array(1) [0 => '']) /modules/cms/classes/cms_controller.php 808
10 Cms_Controller->apply_security(object(Cms_Page), array(0)) /modules/cms/classes/cms_controller.php 172
9 Cms_Controller->open(object(Cms_Page), array(0)) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/search') /phproad/system/phproad.php 31
2 include('/var/www/garrattpublishing.com.au/phproad/system/phproad.php') /boot.php 114
1 require_once('/var/www/garrattpublishing.com.au/boot.php') /index.php 3