Custom Post Type archive page listing a 404 or single post

Turns out I had has-archive instead of has_archive. After a permalink refresh, the archive page now appears.

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