daycry / cronjob

- Manage Cron jobs in Codeigniter 4
MIT License
64 stars 20 forks source link

Error: Call to a member function getLogs() on null #28

Closed bgeneto closed 8 months ago

bgeneto commented 8 months ago

Hello! After the latest upgrade I'm getting the followin while trying to access the logs (gear icon):

Call to a member function getLogs() on null
VENDORPATH/daycry/cronjob/src/Traits/LogTrait.php at line 64
return $this->handler->getLogs($this->name);

Also I cannot run my migrations anymore:

php spark migrate --all 
[CodeIgniter\Database\Exceptions\DatabaseException]
Duplicate column name 'context'
at SYSTEMPATH/Database/BaseConnection.php:647

Because I'm using CI 4.4.6 settings package (required by shield) and it has a AddContextColumn migration class that adds this context column already.

Also, what public string $papa = 'file'; means in the new config file?

TIA.

daycry commented 8 months ago

I Will check this error.

I means that is muy mistake.

I Will try to refactor this Code.

On Sat, 24 Feb 2024, 20:32 Bernhard Enders, @.***> wrote:

Hello! After the latest upgrade I'm getting the followin while trying to access the logs (gear icon):

Call to a member function getLogs() on null VENDORPATH/daycry/cronjob/src/Traits/LogTrait.php at line 64 return $this->handler->getLogs($this->name);

Also I cannot run my migrations anymore:

php spark migrate --all [CodeIgniter\Database\Exceptions\DatabaseException] Duplicate column name 'context' at SYSTEMPATH/Database/BaseConnection.php:647

Because I'm using CI 4.4.6 settings package (required by shield) and it has a AddContextColumn migration class that adds this context column already.

Also, what public string $papa = 'file'; means in the new config file?

TIA.

— Reply to this email directly, view it on GitHub https://github.com/daycry/cronjob/issues/28, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ5DP2KSF33JLXGCQ7EEHTYVI547AVCNFSM6AAAAABDYHLI3WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TENBVGU3TSNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

daycry commented 8 months ago

Errors fixed in v2.2.22. Integrated with Codeigniter4/settings for more compatibilities with other vendors like SHIELD.

Fixed: Get logs.