Hi Mirela, thank you very much. I’ve already solved it. I’m quite new to WP.
I’ve just commented a line where the function ‘set_time_limit(0);’ was mentioned. And it helped. I hope it will not cause some issues later. I can also change max_execution_time setting on the server level if it helps.
Just let me know if this workaround is OK, or something else should be done.