Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Class 'Kirby' not found in kirby-twig/config.php #1

Closed
MathiasGmeiner opened this issue Oct 11, 2018 · 5 comments
Closed

Class 'Kirby' not found in kirby-twig/config.php #1

MathiasGmeiner opened this issue Oct 11, 2018 · 5 comments

Comments

@MathiasGmeiner
Copy link

Hey, I tried to install this module on a clean Kirby 3 Beta 6 installation with PHP 7.1

Steps

  1. I installed it with composer, as written in the documentation.
  2. Changed home.php to home.twig an modified the snippets to .twig
  3. Reload of the page

Error:

Fatal error: Uncaught Error: Class 'Kirby' not found in /Users/.../Sites/.../vendor/mgfagency/kirby-twig/config.php on line 5

Have I missed something? #

@seehat
Copy link
Contributor

seehat commented Oct 12, 2018

Hey @MathiasGmeiner, your steps were right.

I think it only currently works with the composer based kirby install. (devkit) This is not intended.
Will fix this.

@MathiasGmeiner
Copy link
Author

Thanks! In the meantime I try to change my installation to the devkit.

@qroac
Copy link

qroac commented Oct 15, 2018

Anything new on how to use this in a non-devkit setup?
I'm really interested in this plugin

@seehat
Copy link
Contributor

seehat commented Oct 17, 2018

The problem is this issue: https://github.com/k-next/kirby/issues/762

A workaround is using the devkit for now or with the starterkit manually downloading the repo to the plugin folder and installing composer dependencies inside the plugin.

I will fix this, as soon as there is an official way to go for plugins.

@seehat seehat closed this as completed Oct 17, 2018
@seehat seehat reopened this Oct 17, 2018
@seehat
Copy link
Contributor

seehat commented Feb 20, 2019

This should be fixed in 1.0.7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants