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
10 urlencode(array(1) [0 => '']) /modules/cms/classes/cms_controller.php 808
9 Cms_Controller->apply_security(object(Cms_Page), array(0)) /modules/cms/classes/cms_controller.php 172
8 Cms_Controller->open(object(Cms_Page), array(0)) /controllers/application.php 72
7 Application->On404(()) /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('/home/garrattpublishin/public_html/phproad/system/phproad.php') /boot.php 113
1 require_once('/home/garrattpublishin/public_html/boot.php') /index.php 3