Sunday, September 16, 2012

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

8 comments:

  1. if you seem your error using my process please fill to comments

    ReplyDelete
  2. Please solve my problem
    Fatal error: Call to undefined function mysql_connect() in /home/savemon3/public_html/system/database/drivers/mysql/mysql_driver.php on line 136

    ReplyDelete
  3. Hi,

    Thank you for posting the great content…I was looking for something like this…I found it quite interesting, hopefully you will keep posting such blogs….Keep sharing

    web design company in USA

    ReplyDelete
  4. Well done and nice job excellent work and useful information about the Opportunity it's nice job.

    ReplyDelete
  5. The great information that you shared. It will help all of them. Thanks for posting. Keep maintain the updates
    PHP web development services|
    ERP Software|
    Ecommerce website builder|

    ReplyDelete