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.

2
  • Can you set a breakpoint in WebApp::init() and make sure that method is getting called? Commented Oct 3, 2014 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
    Commented Oct 3, 2014 at 17:58

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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