Skip to content

Installing codesh plugin v2.0.0 causes PHP compile error #2491

@cortices

Description

@cortices

I updated my Grav CMS in docker container to latest (1.7.49.5).

I then opened the plugins section, and clicked install on the Code Syntax Highlighter [codesh] plugin. (https://github.com/trilbymedia/grav-plugin-codesh)

After this installed itself and the dependency (shortcode core) it caused a PHP compile error breaking both the user and admin side of Grav.

Whoops \ Exception \ ErrorException (E_COMPILE_ERROR)
Declaration of Grav\Framework\Cache\AbstractCache::get($key, $default = null) must be compatible with Psr\SimpleCache\CacheInterface::get(string $key, mixed $default = null): mixed

I've reinstalled the shortcode-core plugin first and confirmed that doesn't create the issue. Then I reinstalled codesh via command line gpm, and got the same issue until I uninstalled it.

See attached screenshot and HTML saved file of the error.

Image

grav codesh error 1.html

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