"Trying to get property of non-object" error upon asset creation


(Jamie Smith) #1

Matrix Version: v5.4.0.1

I’m getting the following errors when I try to create a new asset under a specific asset or its descendents:

PHP Notice
File: [SYSTEM_ROOT]/core/include/asset_manager.inc Line: 7778
Message: Trying to get property of non-object


Matrix Warning
File: [SYSTEM_ROOT]/core/include/asset_manager.inc Line: 7779
Message: Unable to set permission for an asset that does not exist [SYS0112]

I’ve checked error.log and it looks to only repeat the above two messages.

Does anyone know what could be causing the issue?

Cheers,

Jamie

EDIT: I can successfully create an asset elsewhere and move it under the problematic asset.


(Bart Banda) #2

That’s weird, sounds like the asset might be corrupt or something? Do you have a possibility of deleting/trashing this asset all together and creating a new parent asset in its place?


(Jamie Smith) #3

Hi Bart. Nae worries. I can do that. Cheers.