Could not find resource 'css/whoops.base.css' and freezing

Posted 4 months ago by ChrisF79

Hi everyone,

I just installed ButterCMS and put in my controlelr the following code:

    public function index()
    {
        
        $apiToken = 'eaad2fa1cd822fdas234tgsaq7184f25ec6af5';

        $client = new \ButterCMS($apiToken);

        var_dump($client->fetchPosts([
            'page' => $page,
            'page_size' => 10
          ]));

    die();
    }

I've namespaced it at the top of the file with use ButterCMS\ButterCMS;

Now, that code is their example code so I can see that it is working. Yet, it just isn't. Instead, I get this:


(1/1) RuntimeException
Could not find resource 'css/whoops.base.css' in any resource paths.(searched: /home/vagrant/code/listingnaples.test/vendor/filp/whoops/src/Whoops/Handler/../Resources)

in PrettyPageHandler.php line 620
at PrettyPageHandler->getResource('css/whoops.base.css')
in PrettyPageHandler.php line 170
at PrettyPageHandler->handle(object(FatalThrowableError))
in Run.php line 272
at Run->handleException(object(FatalThrowableError))
in Handler.php line 339
at Handler->renderExceptionWithWhoops(object(FatalThrowableError))
in Handler.php line 318
at Handler->renderExceptionContent(object(FatalThrowableError))
in Handler.php line 302
at Handler->convertExceptionToResponse(object(FatalThrowableError))
in Handler.php line 281
at Handler->prepareResponse(object(Request), object(FatalThrowableError))
in Handler.php line 188
at Handler->render(object(Request), object(FatalThrowableError))
in Handler.php line 49
at Handler->render(object(Request), object(FatalThrowableError))
in Pipeline.php line 83
at Pipeline->handleException(object(Request), object(FatalThrowableError))
in Pipeline.php line 34
at Pipeline->Illuminate\Routing\{closure}(object(Request))
in SubstituteBindings.php line 41
at SubstituteBindings->handle(object(Request), object(Closure))
in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))
in VerifyCsrfToken.php line 75
at VerifyCsrfToken->handle(object(Request), object(Closure))
in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))
in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
in Pipeline.php line 151
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))
in StartSession.php line 63

Where in the world did that come from? Any idea what could be going wrong here?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.