Skip to content

Directives are doing a fatal error #3

@robrecord

Description

@robrecord

I'm getting the following:

[18-May-2018 14:07:52 UTC] PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Illuminate\View\Compilers\BladeCompiler::directive() must be callable, array given, called in /srv/www/mywebsite.com/current/vendor/webstractions/sage-xpress/src/Blade/DirectivesRepository.php on line 20 and defined in /srv/www/mywebsite.com/current/web/app/themes/sage/vendor/illuminate/view/Compilers/BladeCompiler.php:474
Stack trace:
#0 /srv/www/mywebsite.com/current/vendor/webstractions/sage-xpress/src/Blade/DirectivesRepository.php(20): Illuminate\View\Compilers\BladeCompiler->directive('directives', Array)
#1 /srv/www/mywebsite.com/current/web/app/themes/sage/vendor/illuminate/support/Collection.php(397): SageXpress\Blade\DirectivesRepository::SageXpress\Blade\{closure}(Array, 'directives')
#2 /srv/www/mywebsite.com/current/vendor/webstractions/sage-xpress/src/Blade/DirectivesRepository.php(21): Illuminate\Support\Collection->each(Object(Closure))
#3 /srv/www/mywebsite.com/current/vendor/webstractions/sage-xpress/src/Blade/DirectivesP in /srv/www/mywebsite.com/current/web/app/themes/sage/vendor/illuminate/view/Compilers/BladeCompiler.php on line 474

This is after adding the config/app.php file and referencing it in functions.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions