Custom Post Type – Permalink Problem

Thanks to Anjum for his suggestion in the comments. The problem has been solved by removing the front-slash in the rewrite slug. The error was caused by:

'rewrite' => array (
    'slug' => 'movies/',
    'with_front'=> false
),

The error has been solved by the following modification:

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

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