Error when trying to save custom post type settings (ERROR: options page not found)

This worked:

“Error: Options Page Not Found” on Settings Page Submission for an OOP Plugin

I’d like to understand why register_setting isn’t properly adding the property to the whitelisted list to begin with though.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)