bnomei / kirby3-janitor

Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code, CLI or a cronjob
https://forum.getkirby.com/t/kirby3-janitor-plugin/23573
MIT License
88 stars 7 forks source link

Generate thumbs from existing thumb jobs error #126

Open theamnesic opened 1 month ago

theamnesic commented 1 month ago

Hi!

This example seems not working anymore:

janitor_thumbssite:
  type: janitor
  command: 'janitor:thumbs --site'
  label: Generate thumbs from existing thumb jobs (full site)

I've got this error:

array_shift(): Argument #1 ($array) must be of type array, null given

Kirby 4.3.0 Janitor 4.2.0

Thanks!

bnomei commented 4 weeks ago

thanks @theamnesic i will take a look this weekend.

bnomei commented 3 weeks ago

@theamnesic just tried with v4.3.1 of janitor and i cant replicate with my default test setup

vendor/bin/kirby janitor:render --site
2 languages
1 pages
Rendering Pages...
[1] home
0 sec
1 images found in rendered content
0 pages failed rendering
1 pages rendered
vendor/bin/kirby janitor:thumbs --site --debug
0 existing thumbs
1 thumb job files found
Generating Thumbs...
✔ /Users/bnomei/Sites/kirby3-janitor/tests/media/pages/home/dc67e35951-1724053022/.jobs/test-128x.jpg.json
0 sec
0 jobs failed
1 thumbs created