Edit: i solved the problem by adding cot_incfile to forms.php but i still wonder why it doesnt work on live but works on localhost
It happens because on localhost it has a different order of plugin execution. Some other plugin already includes forms.php befor this plugin on localhost but not on live server.