Word /blog/ in slug post, problems in CPT. Solutions?

To Fix it, simply set with_front to false where the custom post types are registered:

'rewrite' => array('slug' => 'portfolio', 'with_front' => false),

With this Custom post type will not get 404 error

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