It wasn't an error, you had added the script using actions.xml, but as you deleted the file from the actions folder, you should have also deleted the mention of it in the actions.xml file, use the script as it was given to you, it may not seem like it, but using revscript makes everything faster...