Question: how to fix an error has occurred on ps4?
Answer: Go to PlayStation Network (PSN) via your PC browser or mobile device.
Then you can make the necessary changes. ... 
Save the changes and then go to your PS4 and restart it.
Press the PlayStation Button.
Choose Settings.
Choose System Software Update.