Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorapocalip
     
    Hello !

    Im trying to get your Framework up and running, which goes quite smoothly until now, but now i stumpled over a problem:

    I installed the admin Plugin and made an additional Models called Page and created an admin_scaffold and so on, which so far works ok.
    But if i add a new Page Object through the Admin interface i get the following error:
    Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/akelos/app/locales/page/de.php:1) in /Applications/MAMP/htdocs/akelos/lib/AkResponse.php on line 109

    The odd thing about this is, that this is the file created through akelos and hasn't been touched by me at all to this point!

    So first thing to check was simple look into the file, at the bottom i noticed a new line after the PHP end tag (BTW: i noticed this in quite some files, intended?)
    I removed the trailing line and refreshed the site, but still the same error.

    for the time beeing i found a walkaround to get it to work:
    in the File lib/AK.php i added an ob_start() before the require and an ob_end_clean() after it.
    ob_start();
    require(AK_APP_DIR.DS.'locales'.DS.$controller.DS.$lang.'.php');
    ob_end_clean();

    So, thats my Problem, anyone a Solution?

    Current Settup:
    Current Nigthly
    Fresh Akelos setup
    Mac OS X MAMP

    Greetz Marc
    • CommentAuthorKaste
     

    Never had this. What is actually in the buffer? (de.php line 1?)

    • CommentAuthorapocalip
     
    just plain "<?php"
    • CommentAuthorKaste
     

    The output sent before the headers is '<?php' ?

    %-)