Home > PHP, Programming > Error CI 1.6 on XAMPP 1.7

Error CI 1.6 on XAMPP 1.7

We can solve it by:

  1. System/codeigniter/CodeIgniter.php
  2. Change  : $objects[$class] =& new $name();

    To : $objects[$class] =new $name();

  3. System/database/DB.php
  4. Change : $DB =& new $driver($params);

    To : $DB =new $driver($params);

  5. System/libraries/Loader.php
  6. Change : $CI->dbutil =& new $class();

    To : $CI->dbutil = new $class();

  7. System/libraries/URI.php
  8. Change : 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)))

  9. index.php

Change : error_reporting(E_ALL);

To : error_reporting(E_ALL & ~E_DEPRECATED);

Categories: PHP, Programming Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: