Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » [User Error] Uncaught Exception: Object->__call(): the method 'backlinktracking' does not exist on 'ImageGalleryImage' again

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 660 Views
  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    [User Error] Uncaught Exception: Object->__call(): the method 'backlinktracking' does not exist on 'ImageGalleryImage' again Link to this post

    Hi Uncle Cheese!

    I ran into this problem today and checked the older threads on the topic. I had a look at FileDataObjectManager and the change with newClassInstance was there. However I was still getting the error and when I looked at the stack trace it referred to ImageGalleryManager->saveImportForm so I went and had a look and ImageGalleryManager has the old code with just $file->ClassName = $this->fileClassName.

    I replaced that with

    if($file->ClassName != $this->fileClassName) {
       $file = $file->newClassInstance($this->fileClassName);
    }

    and now everything works fine. This issue only happens with a few of the images on that installation so this is the first time this issue has popped up.

    660 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.