Coder Social home page Coder Social logo

Comments (5)

colymba avatar colymba commented on July 30, 2024

weird.. it should be trying to access the Image class for Thumbnail... does this helps with the config: #8

If not, can you post a full backtrace so we see where things go sideways.

from silverstripe-restfulapi.

toddvalentine avatar toddvalentine commented on July 30, 2024

I am still getting the error after adding the config via YML. I will run through the trace as well.

Trace

ReflectionClass->__construct(Thumbnail)
InjectionCreator.php:18

InjectionCreator->create(Thumbnail,Array)
Injector.php:491

Injector->instantiate(Array,Thumbnail)
Injector.php:797

Injector->get(Thumbnail)
Core.php:155

singleton(Thumbnail)
RESTfulAPI.php:416

RESTfulAPI::isAPIEnabled(Thumbnail)
RESTfulAPI_BasicSerializer.php:164

RESTfulAPI_BasicSerializer->formatDataObject(CalendarItem)
RESTfulAPI_BasicSerializer.php:240

RESTfulAPI_BasicSerializer->formatDataList(DataList)
RESTfulAPI_BasicSerializer.php:102

RESTfulAPI_BasicSerializer->serialize(DataList)
RESTfulAPI.php:282

RESTfulAPI->index(SS_HTTPRequest)
RequestHandler.php:288

RequestHandler->handleAction(SS_HTTPRequest,index)
Controller.php:194

Controller->handleAction(SS_HTTPRequest,index)
RequestHandler.php:200

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153

Controller->handleRequest(SS_HTTPRequest,DataModel)
Director.php:360

Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:152

Director::direct(/api/CalendarItem,DataModel)
main.php:189

from silverstripe-restfulapi.

colymba avatar colymba commented on July 30, 2024

seems to be coming from the isAPIEnabled called on line 164 of the BasicSerializer. Working on a fix, shouldn't be long.

from silverstripe-restfulapi.

colymba avatar colymba commented on July 30, 2024

just pushed a fix f5b0668. update to the latest master and give it a try.

from silverstripe-restfulapi.

toddvalentine avatar toddvalentine commented on July 30, 2024

Updated and all is working. Thanks!

from silverstripe-restfulapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.