maybe the php code that you are using is out of date.
To change your php update go to your cpanel
Select your website and hover over settings then click general
Scroll down until you see php version and change that to PHP 5.2
If this doesn’t work then change to PHP 5.3 or futher