Вопрос

I'm attempting to get a working installation of this (https://github.com/bertelsmannstift/Beteiligungskompass) project running.

It seems to me that the autoloading is not working properly because I'm getting the below error:

PHP message: PHP Fatal error:  Class 'Helper_Mobile' not found in
/srv/www/releases/20131205104015/application/classes/controller/base.php
on line 63" while reading upstream, client: 92.239.225.104, 
server: *****, request: "GET / HTTP/1.1", 
upstream: "fastcgi://unix:/var/run/php5-fpm.sock:",

The autoloading IS working though. This line in bootstrap.php

spl_autoload_register(array('Kohana', 'auto_load'));

Is present and removing it breaks things much earlier. So why can't Kohana find the class in /srv/www/releases/20131205104015/application/classes/helper/mobile.php?

Это было полезно?

Решение

It seems like you use Kohana 3.3 for an application that for written for 3.2 or maybe 3.1.

Try an other version or read the migrating guide.

mobile/helper.php uses short open tags. Have you tried setting short_open_tags to true in your php.ini?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top