Custom menu linking to page not found

I figured it out.

The menu name was “Search” so wordpress redirected the subpages to the wordpress search results page and was assuming the search functionality.

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