I need some help with a problem that has been bugging me for a couple of days.
I'm working on an Umbraco 4.7.2 site with AutoFolders installed. AutoFolders seems to work just fine when publishing nodes manually from the Backend UI, but it fails publishing the Years and Months nodes when publishing nodes from the API.
To be more precise, I am working with the Workflow for Umbraco package. I've designed a workflow that publishes nodes prior approval from a certain usertype. These nodes' DocType is set up to trigger AutoFolders. Now, if the year and month DateFolder nodes exist before publishing the new node, AutoFolders works perfectly (it moves the new node to the correct location and publishes it). But when a user approves a node and the workflow tries to publish it and triggers the AutoFolder event handler, if the year node and/or the month node are missing, AutoFolders creates the corresponding year/month node and when it tries to publish it fails with a NullReferenceException. What really baffles me is that when I debug the source code using Visual Studio (attaching to the w3wp.exe process) every variable has a value when AutoFolder tries to publish.
I'd like to know if someone has come across a similar problem when publishing nodes from the API or has come across a similar situation.
Problem publishing from API
Hello everyone,
I need some help with a problem that has been bugging me for a couple of days.
I'm working on an Umbraco 4.7.2 site with AutoFolders installed. AutoFolders seems to work just fine when publishing nodes manually from the Backend UI, but it fails publishing the Years and Months nodes when publishing nodes from the API.
To be more precise, I am working with the Workflow for Umbraco package. I've designed a workflow that publishes nodes prior approval from a certain usertype. These nodes' DocType is set up to trigger AutoFolders. Now, if the year and month DateFolder nodes exist before publishing the new node, AutoFolders works perfectly (it moves the new node to the correct location and publishes it). But when a user approves a node and the workflow tries to publish it and triggers the AutoFolder event handler, if the year node and/or the month node are missing, AutoFolders creates the corresponding year/month node and when it tries to publish it fails with a NullReferenceException. What really baffles me is that when I debug the source code using Visual Studio (attaching to the w3wp.exe process) every variable has a value when AutoFolder tries to publish.
I'd like to know if someone has come across a similar problem when publishing nodes from the API or has come across a similar situation.
is working on a reply...