I investigated this and found that the contents of the {step-id}.php and {step-id}Post.php files are overwritten every time the process is saved, which happens automatically every time there is some change in the process map.
To prevent this from happening, you need to change the file permissions so they are read-only.
For example, if the files are stored on a Linux system at:
/opt/processmaker/shared/sites/workflow/public/3336176725aec6847b9c588033887956/9963717885aec691c6eec28033805693.php
Then you can use these commands to make the files read-only and only allow the root user to change them:
Code: Select allchown -R root:root /opt/processmaker/shared/sites/workflow/public/3336176725aec6847b9c588033887956
chmod -R go-w root:root /opt/processmaker/shared/sites/workflow/public/3336176725aec6847b9c588033887956
That way, ProcessMaker can't overwrite the web entry files. If you need to change the DynaForm used by Web Entry, you will need to set the Apache user as the owner so that ProcessMaker can then overwrite these files:
Code: Select allchown -R apache:apache /opt/processmaker/shared/sites/workflow/public/3336176725aec6847b9c588033887956
Where the Apache user is "apache:apache" in CentOS/Red Hat, "www-data:www-data" in Debian/Ubuntu, "wwwrun:www" in SUSE/OpenSUSE or
"daemon:daemon" if a Bitnami installation in any Linux distribution.