Skip to content

Installation when Timber is installed via Composer #9

@timknight

Description

@timknight

Are there special considerations that need to made with installing sugar when Timber is installed through Composer? Currently when installing it and trying to execute the dummy function I get an error:

Uncaught Error: Class 'Twig_Filter_Function' not found in /wp-content/plugins/sugar/timber-sugar.php

I'm loading Timber within the functions.php exactly as defined on https://timber.github.io/docs/getting-started/setup/#via-github-for-developers.

I've installed Sugar within a different instance where Timber is installed as a WordPress plugin instead and everything seems to function without any issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions