php errors & issue upgrading