Coder Social home page Coder Social logo

Comments (5)

Vivalldi avatar Vivalldi commented on August 22, 2024 1

@loganfreeman I also have this issue. It seems to appear only in production environments for me. the plugin works fine in localhost development though in production it fails

@kalebheitzman I would take a look at how other plugins call grav and it's config

from grav-plugin-datetools.

kalebheitzman avatar kalebheitzman commented on August 22, 2024

@Vivalldi are there any plugins you would recommend specifically that I look at? Thanks.

from grav-plugin-datetools.

Vivalldi avatar Vivalldi commented on August 22, 2024

So the grav object is a protected attribute of the plugin class. So in the login plugin it calls $this->grav['config'] which calls the config container

from grav-plugin-datetools.

daz3dpr0z avatar daz3dpr0z commented on August 22, 2024

I have just installed datetools as it was required by the event plugin. Then on loading my site after the install it appears i also have a similar issue

Access to undeclared static property: Grav\Plugin\DateTools::$grav

It seems to throw the error at the following point in the datetools.php

$this->config = self::$grav['config'];

I can set enabled: false in the .yaml file and my site works again .

Perhaps i should have opened another thread for this issue. if so let me know and i will create a new one.

regards jimmy

from grav-plugin-datetools.

kalebheitzman avatar kalebheitzman commented on August 22, 2024

This is fixed with v1.0.3. Pushing the release today.

from grav-plugin-datetools.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.