1

I am using a testing library and while trying to load Craft through bootstrap with:

$craft = require '<full path here to>/app/bootstrap.php';

(but with the real path)

I dumped the error to a html file from the console and get this:

I see that Ben Parizek got a similar error (but i don't believe it was while using bootstrap only from the command line) in this question.

I tried setting cache to file in general.php and also cleared all caches in craft.

  • Can you set a breakpoint in WebApp::init() and make sure that method is getting called? – Brandon Kelly Oct 3 '14 at 16:24
  • I'm guessing there is some other error that's occurring and is getting swallowed by this error. Can you xDebug it? – Brad Bell Oct 3 '14 at 17:58
1

Got testing working by requiring the tests/bootstrap.php (not app/bootstrap) like here: https://github.com/selvinortiz/craft.loath/blob/master/tests/run.sh#L6

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.