Same URL for portfolio and for a page creates 404 error. Is there any filter that i can use for a child page?

Same URL for portfolio and for a page creates 404 error. Is there any filter that i can use for a child page?

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