Welcome Guest, Not a member yet? Register   Sign In
system/core/loader.php error line 1381 on CI 3.1.3 download
#1

(This post was last modified: 01-10-2017, 12:41 PM by casa.)

Hye,
There is an error on system/core/loader.php line 1381 when you download the last version of CI via codeigniter.com (i try today 10 january at 20h30 Paris France).
Otherwise, on github, no error.

You are :
PHP Code:
protected function _ci_prepare_view_vars($vars)
 {
 if ( ! 
is_array($vars))
 {
 
$vars is_object($vars)
 ? 
get_object_vars($object  // here the error. Replace $object by $vars ;)
 
: array();
 }

 foreach (
array_keys($vars) as $key)
 {
 if (
strncmp($key'_ci_'4) === 0)
 {
 unset(
$vars[$key]);
 }
 }

 return 
$vars;
 } 
Reply
#2

Searching the forum would show https://forum.codeigniter.com/thread-67057.html and https://forum.codeigniter.com/thread-67058.html, referencing this same problem, and the fix ... https://github.com/bcit-ci/CodeIgniter/pull/4975, which is in the 3.1-stable branch and will appear in the 3.1.4 release, whenever that happens.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB