Unable to access the query variables in the template

I have WooCommerce installed. It has registered the product post type which was conflicting with it.

I renamed to endpoint and it works.

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