-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileLinkTracking causes SilverStripe\ORM\DataObject is not a subclass of DataObject
Error
#540
Comments
Just had this issue pop up again on another site. Looks like the same thing Again I added the following to use SilverStripe\Assets\Shortcodes\FileLinkTracking;
Config::modify()->set(
FileLinkTracking::class,
'owns',
[]
); I still cannot track down any more info about what is causing this issue, but I have the following dependencies installed...
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am getting a really odd issue on a new site I am building. When trying to upload a file or edit a file in the assets panel (or via an
UploadField
) I get the following error:I am using a recipe I have used before without issue, using a selection of modules I use on a lot of projects. Looking at the stack trace (below) and stepping through the debugger seems to indicate that
RecursivePublisher
is pushing through aDataObject
into aManyManyThroughList
(in relation toFileLinkTracking
).This appears to be happening when trying to check file tracking for the
Content
field on aCatalogeCategory
(https://github.com/silvercommerce/catalogue-admin/blob/1.4/src/Model/CatalogueCategory.php#L90).The only way I can get rid of the error is remove the
FileLinkTracking.owns
via _config.php, but I suspect this might cause issues elsewhere in the system?The text was updated successfully, but these errors were encountered: