parse_template_syntax error

edited January 2014 in Share
I am calling an advance module library from a regular controller and wasn't having any problems until I tried to use parse_template_syntax within the library. Each time that parse_template_syntax is called, the following two errors occur

A PHP Error was encountered Severity: Notice Message: Undefined index: global Filename: core/Loader.php Line Number: 557 A PHP Error was encountered Severity: Warning Message: array_merge() [function.array-merge]: Argument #1 is not an array Filename: libraries/MY_Parser.php Line Number: 243

Line 557 of loader is
return $this->_ci_cached_vars[$scope];

In this case _ci_cached_vars is an empty array and $scope is 'global' So that is why the undefined index.

array_merge fails because of the issue in loader I believe.

Any ideas why this might be happening and where I might start looking?


Sign In or Register to comment.