Jump to:

5515 Posts in 1734 Topics by 1220 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Object of class Image could not be converted to int

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 986 Views
  • _Vince
    Avatar
    Community Member
    158 Posts

    Object of class Image could not be converted to int Link to this post

    I'm intermittently getting this warning. I've only seen it since upgrading to 2.3.4

    How do I fix this?

    [Notice] Object of class Image could not be converted to int
    GET /uss/

    Line 1894 in C:\xampplite\htdocs\uss\sapphire\core\model\DataObject.php

    1894             if((!isset($this->record[$fieldName]) && $val) || (isset($this->record[$fieldName]) && $this->record[$fieldName] != $val)) {
    1895                // Value has changed as well, not just the type
    1896                $this->changed[$fieldName] = 2;
    1897             }

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Object of class Image could not be converted to int Link to this post

    Could you post the backtrace. Do you have any custom code on the page that could be causing this error?

  • _Vince
    Avatar
    Community Member
    158 Posts

    Re: Object of class Image could not be converted to int Link to this post

    Cheers, next time the warning comes up I'll put up the backtrace.

    986 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.