address enqueue scripts problems to stop php error messages from wordpress