3

So, I've got this working on windows, and now I'm trying to get it to work on ubuntu.

I have a Kohana 2.3 app I am developing, at localhost/myapp. When I navigate to that URL, I just get a blank screen. I can echo 'hello' in index.php and that works. The problem seems to be with Kohana::setup() in bootstrap.php - echoing a string before that line prints it out, after that line it does nothing.

The Kohana core directories are located in a different place to the app, at /opt/lampp/htdocs/kohana. In my index.php file:

$kohana_modules = '/opt/lampp/htdocs/kohana/modules';

$kohana_system = '/opt/lampp/htdocs/kohana/system';

This doesn't seem to be the problem, as if I change those values to something else I get a proper PHP error. Error reporting is definitely enabled.

Any clues how I can work out what is wrong? The same setup (as far as I can tell) is working properly on Windows on the same machine.

Thanks. I'm using XAMPP on Ubuntu 12.10, Kohana 2.3, PHP 5.4

Moshe Katz
  • 15,992
  • 7
  • 69
  • 116
Will
  • 1,893
  • 4
  • 29
  • 42

1 Answers1

1

Try this..

  1. Edit system/core/Kohana.php
  2. Modify the close_buffers function (around line 626)
  3. Comment out "ob_end_clean();" at the end of the function