MySource Error: "" is not a valid asset ID

Periodically, I get a strange error, and I am really not sure why.

[codebox]*Back Trace*

0 => array (

"function" => "sq_error_handler",

"args" => array (

0 => 256,

1 => "[ASSERT EXCEPTION] [NULL] \"\" is not a valid asset ID (LINE 919 IN [SYSTEM_ROOT]/core/include/asset_manager.inc) [SYS0270]",

2 => "[SYSTEM_ROOT]/core/include/locale_manager.inc",

3 => 504,

4 => array (

[Max Depth Reached]

)

)

),

1 => array (

"file" => "[SYSTEM_ROOT]/core/include/locale_manager.inc",

"line" => 504,

"function" => "trigger_error",

"args" => array (

0 => "[ASSERT EXCEPTION] [NULL] \"\" is not a valid asset ID (LINE 919 IN [SYSTEM_ROOT]/core/include/asset_manager.inc) [SYS0270]",

1 => 256

)

),

2 => array (

"file" => "[SYSTEM_ROOT]/core/include/general.inc",

"line" => 1120,

"function" => "raiseerror",

"class" => "locale_manager",

"type" => "->",

"args" => array (

0 => "SYS0270",

1 => 256,

2 => array (

[Max Depth Reached]

)

)

),

3 => array (

"file" => "[SYSTEM_ROOT]/core/include/assertions.inc",

"line" => 508,

"function" => "trigger_localised_error",

"args" => array (

0 => "SYS0270",

1 => 256,

2 => "[NULL] \"\" is not a valid asset ID",

3 => 919,

4 => "[SYSTEM_ROOT]/core/include/asset_manager.inc"

)

),

4 => array (

"file" => "[SYSTEM_ROOT]/core/include/assertions.inc",

"line" => 482,

"function" => "trigger_exception",

"args" => array (

0 => "[NULL] \"\" is not a valid asset ID",

1 => ,

2 => 1

)

),

5 => array (

"file" => "[SYSTEM_ROOT]/core/include/asset_manager.inc",

"line" => 919,

"function" => "assert_valid_assetid",

"args" => array (

0 =>

)

),

6 => array (

"file" => "[SYSTEM_ROOT]/core/include/asset.inc",

"line" => 3853,

"function" => "getasset",

"class" => "asset_manager",

"type" => "->",

"args" => array (

0 =>

)

),

7 => array (

"file" => "[SYSTEM_ROOT]/core/include/asset.inc",

"line" => 3767,

"function" => "_checkpermissionaccess",

"class" => "file",

"type" => "->",

"args" => array (

0 => 2,

1 => array (

[Max Depth Reached]

),

2 => 1

)

),

8 => array (

"file" => "[SYSTEM_ROOT]/core/include/asset.inc",

"line" => 3676,

"function" => "checkaccess",

"class" => "file",

"type" => "->",

"args" => array (

0 => 2,

1 => ""

)

),

9 => array (

"file" => "[SYSTEM_ROOT]/core/include/asset.inc",

"line" => 3608,

"function" => "liveeditaccess",

"class" => "file",

"type" => "->",

"args" => array (

0 => ""

)

),

10 => array (

"file" => "[SYSTEM_ROOT]/core/assets/system/triggers/trigger_condition_types/trigger_condition_access_permission/trigger_condition_access_permission.inc",

"line" => 72,

"function" => "writeaccess",

"class" => "file",

"type" => "->",

"args" => array (

[Empty]

)

),

11 => array (

"function" => "evaluate",

"class" => "trigger_condition_access_permission",

"type" => "::",

"args" => array (

0 => array (

[Max Depth Reached]

),

1 => array (

[Max Depth Reached]

)

)

),

12 => array (

"file" => "[SYSTEM_ROOT]/core/assets/system/triggers/trigger_manager/trigger_manager.inc",

"line" => 1182,

"function" => "call_user_func_array",

"args" => array (

0 => array (

[Max Depth Reached]

),

1 => array (

[Max Depth Reached]

)

)

),

13 => array (

"file" => "[SYSTEM_ROOT]/core/assets/system/triggers/trigger_manager/trigger_manager.inc",

"line" => 850,

"function" => "_executetrigger",

"class" => "trigger_manager",

"type" => "->",

"args" => array (

0 => array (

[Max Depth Reached]

),

1 => array (

[Max Depth Reached]

)

)

),

14 => array (

"file" => "[SYSTEM_ROOT]/core/include/mysource.inc",

"line" => 2652,

"function" => "broadcastevent",

"class" => "trigger_manager",

"type" => "->",

"args" => array (

0 => "trigger_event_asset_accessed",

1 => new file Object (

[Max Depth Reached]

),

2 =>

)

),

15 => array (

"file" => "[SYSTEM_ROOT]/core/include/mysource.inc",

"line" => 460,

"function" => "broadcasttriggerevent",

"class" => "mysource",

"type" => "->",

"args" => array (

0 => "trigger_event_asset_accessed",

1 => new file Object (

[Max Depth Reached]

)

)

),

16 => array (

"file" => "[SYSTEM_ROOT]/core/web/index.php",

"line" => 31,

"function" => "start",

"class" => "mysource",

"type" => "->",

"args" => array (

[Empty]

)

) [/codebox]



Any idea what is causing this?

Does the trigger that checks write access as a condition have any assets selected (maybe for tree location) that are no longer valid? What are the events it is listening for?


If you disable it, do you still get the error (assuming you can reproduce it reliably)?

[quote]Does the trigger that checks write access as a condition have any assets selected (maybe for tree location) that are no longer valid? What are the events it is listening for?


If you disable it, do you still get the error (assuming you can reproduce it reliably)?[/quote]



Thanks Greg, I found 2 triggers that were referring to assets that had been removed, and I was not actively using these triggers. Thanks for pointing me in the right direction.