Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing showing #4

Open
squareclouds opened this issue Sep 22, 2022 · 1 comment
Open

Nothing showing #4

squareclouds opened this issue Sep 22, 2022 · 1 comment

Comments

@squareclouds
Copy link

hi everyone,

pretty short and simple problem: nothing is happening :) the log is completely empty. i am working on localhost and might try it later on the server, but i dont think that it will make a difference? the accounts dropdown is also empty, so it seems its not even that is being populated. or does it only get populated when logs already exist?

grafik

any help is appreciated. i am using kirby 3.7.5 and php 8.1.10, but with kirby 3.7.3 it didnt work either.

@WA-MB
Copy link

WA-MB commented Feb 23, 2023

As soon as I try to save the changes, I get an error:

The JSON response could not be parsed.
Note: Unknown: File was created in the system's temporary directory in Unknown on line 0

Warning: Cannot modify header information - headers already sent in Unknown on line 0

when i log out of the panel the frontend page does not work anymore

site/plugins/kirby3-logger/classes/Logger.php

Call to a member function email() on null

line 159:

'user' => kirby()->user()->email(),

I can at least fix this error in Logger.php

/**
     * @param  Event  $event
     */
    public static function log(Event $event): void
    {
        if (!in_array($event->type(), self::TYPES) || $event->action() === 'render') {
            return;
        }

        $log = self::getLog($event);
        self::$connection->table('logs')->insert($log->toArray());
    }

i can install it and i see the link in the menu and the logger overview is always empty

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

No branches or pull requests

2 participants