Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

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


Go to End


1166 Views

Avatar
MarcusDalgren

Community Member, 288 Posts

9 April 2010 at 8:33pm

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.