~razdvizh


#3 installation staticmath-server 1 year, 4 months ago

Comment by ~razdvizh on ~fd/grav-plugin-staticmath

admin plugin I mean

#3 installation staticmath-server 1 year, 4 months ago

Ticket created by ~razdvizh on ~fd/grav-plugin-staticmath

Do I need access to server with root? Can this plugin also be installable by grav plugin?

#2 error after installation plugin 1 year, 4 months ago

Ticket created by ~razdvizh on ~fd/grav-plugin-staticmath

TypeError Failed to create closure from callable: class 'Grav\Plugin\StaticmathPlugin' does not have a method 'onGetPageBlueprints' public_html/vendor/symfony/event-dispatcher/EventDispatcher.php

 * Optimizes the internal list of listeners for the given event by priority.
 */
private function optimizeListeners(string $eventName): array
{
    krsort($this->listeners[$eventName]);
    $this->optimized[$eventName] = [];

    foreach ($this->listeners[$eventName] as &$listeners) {
        foreach ($listeners as &$listener) {
            $closure = &$this->optimized[$eventName][];
            if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && 2 >= \count($listener)) {
                $closure = static function (...$args) use (&$listener, &$closure) {
                    if ($listener[0] instanceof \Closure) {
                        $listener[0] = $listener[0]();
                        $listener[1] = $listener[1] ?? '__invoke';
                    }
                    ($closure = \Closure::fromCallable($listener))(...$args);
                };
            } else {
                $closure = $listener instanceof \Closure || $listener instanceof WrappedListener ? $listener : \Closure::fromCallable($listener);
            }
        }
    }

    return $this->optimized[$eventName];
}

}

Arguments

"Failed to create closure from callable: class 'Grav\Plugin\StaticmathPlugin' does not have a method 'onGetPageBlueprints'"