AKSW / OntoWiki

Semantic data wiki as well as Linked Data publishing engine
https://ontowiki.net
204 stars 51 forks source link

Activating the cache.modules entry in the default.ini in OntoWiki throws Trying to get property of non-object #386

Closed shinobu closed 7 years ago

shinobu commented 8 years ago

Turning the cache.modules entry in the default.ini on throws:

Trying to get property of non-object in /var/www/html/OntoWiki/application/classes/OntoWiki/View.php on line 251

setup: OntoWiki Develop 456a819 PHP 5.5.9-1ubuntu4.17 Virtuoso Version 07.20.3217-pthreads for Linux as of Jul 4 2016 Erfurt 8340230

shinobu commented 7 years ago

the problem is the call in OntoWiki/application/classes/OntoWiki/View.php on line 252:

$this->_config->languages->locale

this variable isn't set for whatever reason, if you change $this->_config->languages->locale to en (one of the possible values) the error is gone.

shinobu commented 7 years ago

fixed in #406