get_the_ID() fails the first time, returns a value the second time it’s called

get_the_ID() fails the first time, returns a value the second time it’s called

File not found.