Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Premature end of script headers: index.php
  • Hello, I try to create a simple package, but every time I get a 500 error.
    On my Apache server: "Premature end of script headers: index.php"
    I get this error when I check Guard::check(); inside my controller. (I got the package loaded from config.php) Here are the files: guard/boostrap.php
    <?php
    Autoloader::add_core_namespace('Guard');
    
    Autoloader::add_classes(array(
     'Guard\\Guard' => __DIR__.'classes/guard.php',
    ));
    ?>
    

    guard/classes/guard.php
    <?php
    namespace Guard;
    
    class Guard {
    
     public static function _init()
     {
      
      
     }
     
     public static function check()
     {
      return true;
     }
    }
    ?>
    

    How can I fix this?
  • Running PHP in CGI mode? If so, it might be a file permission issue somewhere.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion