FATAL ERROR when I try to change the .php according to required and optional items rule

Nectar_Arrow_Walker_Nav_Menu apparently extends the WordPress Walker class. This means that its methods’ arguments need to match the original class methods’ arguments:

public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) {}

The WordPress class doesn’t have any optional parameters so it doesn’t have this issue. Make sure your method’s arguments match WordPress’ and don’t make any of them optional.

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