Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Getting this using github actions #20

Open
PockySweet opened this issue Oct 15, 2022 · 4 comments
Open

Getting this using github actions #20

PockySweet opened this issue Oct 15, 2022 · 4 comments

Comments

@PockySweet
Copy link

Generating new cover...

Fatal error: Uncaught TypeError: Argument 2 passed to GDaisy\Placeholder\ImagePlaceholder::apply() must be of the type array, null given, called in /dynacover/app/Command/Generate/TwitterController.php on line 61 and defined in /dynacover/vendor/erikaheidi/gdaisy/src/Placeholder/ImagePlaceholder.php:35
Stack trace:
#0 /dynacover/app/Command/Generate/TwitterController.php(61): GDaisy\Placeholder\ImagePlaceholder->apply(Resource id #69, NULL)
#1 /dynacover/vendor/minicli/minicli/src/Command/CommandController.php(38): App\Command\Generate\TwitterController->handle()
#2 /dynacover/vendor/minicli/minicli/src/App.php(159): Minicli\Command\CommandController->run(Object(Minicli\Command\CommandCall))
#3 /dynacover/app/Command/Cover/UpdateController.php(15): Minicli\App->runCommand(Array)
#4 /dynacover/vendor/minicli/minicli/src/Command/CommandController.php(38): App\Command\Cover\UpdateController->handle()
#5 /dynacover/vendor/minicli/minicli/src/App.php(159): Minicli\Command\CommandController->run(Object(Minicli\Command\CommandCa in /dynacover/vendor/erikaheidi/gdaisy/src/Placeholder/ImagePlaceholder.php on line 35
@PockySweet
Copy link
Author

My config file

{
  "width": 1500,
  "height": 500,
  "sources": {
    "twitter": {
      "count": 3,
      "class": "App\\ImageSource\\TwitterFollowerImageSource"
    }
  },
  "elements": {
    "tw1": {
      "type": "image",
      "properties": {
        "pos_x": 702,
        "pos_y": 435,
        "width": 94,
        "height": 94
      }
    },
    "tw2": {
      "type": "image",
      "properties": {
        "pos_x": 809,
        "pos_y": 435,
        "width": 94,
        "height": 94
      }
    },
    "tw3": {
      "type": "image",
      "properties": {
        "pos_x": 916,
        "pos_y": 435,
        "width": 94,
        "height": 94
      }
    },
    "cover": {
      "type": "image",
      "properties": {
        "width": 1500,
        "height": 500,
        "pos_x": 0,
        "pos_y": 0,
        "image": "background.png"
      }
    }
  }
}

@PockySweet
Copy link
Author

My dynacover.yml file

name: Update Twitter Header Image with Dynacover
on:
  schedule:
    - cron: "0 * * * *"
  workflow_dispatch:
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          path: 'dynacover_custom'
      - name: 'Update Dynacover image and upload to Twitter'
        uses: erikaheidi/[email protected]
        env:
          # Uncomment and change accordingly to customize your cover
          DYNA_DEFAULT_TEMPLATE: cover_bottom.json
          DYNA_TEMPLATES_DIR: ${{ github.workspace }}/dynacover_custom
          DYNA_IMAGES_DIR: ${{ github.workspace }}/dynacover_custom
          DYNA_TWITTER_KEY: ${{ secrets.DYNA_TWITTER_KEY }}
          DYNA_TWITTER_SECRET: ${{ secrets.DYNA_TWITTER_SECRET }}
          DYNA_TWITTER_TOKEN: ${{ secrets.DYNA_TWITTER_TOKEN }}
          DYNA_TWITTER_TOKEN_SECRET: ${{ secrets.DYNA_TWITTER_TOKEN_SECRET }}
          DYNA_GITHUB_TOKEN: ${{ secrets.DYNA_GITHUB_TOKEN }}

@PockySweet
Copy link
Author

I've tried everything ;-;
Is this just broken and im trying to use it anyway?
image

@PockySweet
Copy link
Author

It probably is something super small im missing or not seeing, like there is no way, i've read the instructions over 20 times by now and have tried all i can think of

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

No branches or pull requests

1 participant