Fatal error on trigger event 'create asset'


(Robin Bilney) #1

Hi all,

 

I'm trying to set up a trigger that will create a Product asset whenever an Image asset is created within a certain folder.  Matrix is throwing a fatal error.  I thought it might be something to do with the Product asset type, so I tried creating a Standard Page as well, but a similar error occured. Here are the errors:

 

Fatal error: Call to undefined method Product_Edit_Fns::processFileUpload() in /var/www/html/mysource_matrix/core/assets/files/file/file.inc on line 255

 

Fatal error: Call to undefined method Page_Standard_Edit_Fns::processFileUpload() in /var/www/html/mysource_matrix/core/assets/files/file/file.inc on line 255

 

 

Here are my trigger details:

 

Event:  

  • Asset Created

Condition: 

  • Asset is of type: Image
  • Tree Location: Items [Folder]

Action:

  • Create Asset
  • Ignore Permissions
  • Standard Page linked under the broadcasting asset using a TYPE_2 link
  • Set Attribute Values:
    • Name - Text :  %asset_attribute_title%
  • Replace keywords in the attribute value

 

Any one got any ideas as to what's going wrong?

 

Thanks,

Robin.


(Joel Porgand) #2

Your trigger is trying to create the standard page linked under the image asset, which isn't allowed.


(Robin Bilney) #3

Ah I see... thanks!