Sunday, September 16, 2012

The URI you submitted has disallowed characters. in codeigniter [solve]


[SOLVE]
first replace in config.php -$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';  to $config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-';

second - replace from  D:\xampp\htdocs\hes\system\libraries\URI.php
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))

to
if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))

i think you got my point and then working   good

codeigniter Deprecated error and A PHP Error was encountered [SOLVE]


Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\hes\system\codeigniter\Common.php on line 123
   SOLVE to replace -> $objects[$class] =& new $name(); to $objects[$class] = new $name();
Deprecated: Assigning the return value of new by reference is deprecated in D:\xampp\htdocs\hes\system\codeigniter\Common.php on line 129
 SOLVE to replace ->  $objects[$class] =& new $name(); to $objects[$class] =new $name();

  A PHP Error was encountered

Severity: 8192
Message: Function set_magic_quotes_runtime() is deprecated
Filename: codeigniter/CodeIgniter.php
Line Number: 60

SOLVE to replace - set_magic_quotes_runtime(0);  to ini_set("magic_quotes_runtime",0);

then restart your web server application.,.,.

A PHP Error was encountered

Severity: 8192
Message: Assigning the return value of new by reference is deprecated
Filename: libraries/Loader.php
Line Number: 248

SOLVE to replace -     $CI->dbutil =& new $class();  to     $CI->dbutil = new $class();

A PHP Error was encountered

Severity: 8192
Message: Assigning the return value of new by reference is deprecated
Filename: database/DB.php
Line Number: 112

SOLVE to replace -    $DB =& new $driver($params);  to  $DB = new $driver($params); 
then restart your web server application.,.,.

powered by amazon