This Bible contradiction is from the Skeptic's Annotated Bible.
He died at Megiddo.
2 Kings 23:29-30 View context
In his days Pharaoh-nechoh king of Egypt went up against the king of Assyria to the river Euphrates: and king Josiah went against him; and he slew him at Megiddo, when he had seen him.
And his servants carried him in a chariot dead from Megiddo, and brought him to Jerusalem, and buried him in his own sepulchre. And the people of the land took Jehoahaz the son of Josiah, and anointed him, and made him king in his father's stead.
He died in Jerusalem.
2 Chronicles 35:23-24 View context
And the archers shot at king Josiah; and the king said to his servants, Have me away; for I am sore wounded.
His servants therefore took him out of that chariot, and put him in the second chariot that he had; and they brought him to Jerusalem, and he died, and was buried in [one of] the sepulchres of his fathers. And all Judah and Jerusalem mourned for Josiah.