You're missing my point as you did with grey's original post. My fault as I should have posted later replies not the original.
The error is in phent_settype. I actually cut the above ACTION and put it in, attached to an entity and all the PH code returns the same error 'wrong/missing parameter; unexpected comma" for EVERY PH function. I've tried all manner of capitalization variations and experiments and always the same error for phent_settype. The others don't matter since if I can't get the entity registered, all else will naturally fail.
Again, the error is that I can't register an entity since settype won't work.