You still need local storage, your local storage is full. iCloud Photo Library stores media in the cloud AND local at the same time. You can use a third party solution like Google Photo, or Dropbox to store photos and videos so you can free up space on your device. Also try to delete old message threads and apps you don't use.