craftcms / element-api

Create a JSON API/Feed for your elements in Craft.
MIT License
498 stars 56 forks source link

Element API tries to access GeneralConfig::baseUrl #172

Closed LeoWie93 closed 1 year ago

LeoWie93 commented 1 year ago

Description

I updated a Craft 3.7.x Application to 4.2.5.2 and the "element-api" plugin stopped working.

Maybe it has something todo that i switched from using an array inside "general.php" and i am now using GeneralConfig::create()?

This is the error message that is being thrown: image

Steps to reproduce

  1. Use element-api plugin
  2. use GeneralConfig::create inside general.php

Additional info

LeoWie93 commented 1 year ago

The error was the wrong usage of the new general and custom config in my Asset Service. Closing this issue