I’m in a similar situation where I have to load CI views into wordpress.
It seems the culprit is Utf8.php class in the CI core
ci/system/core/Utf8.php
The __construct method in the class is what causes the problem
Fatal error: Call to a member function item() on a non-object in /../../../system/core/Utf8.php on line 47
Line 47
AND $CFG->item(‘charset’) == ‘UTF-8’ // Application charset must be UTF-8
After some tinkering it seems that you have to set
define(‘UTF8_ENABLED’, FALSE); instead of TRUE
To get it working, its hacky for now, but would be best to extend and override the constant
It’s possible to declare constant in base class, and override it in a child.
Now the next problem with this is that all my views are handled by codeigniter and not wordpress.
So back to the drawing board for now.
Hope this helps a bit.