Error : “Cannot use object of type WP_Post as array in”

This error is telling you that a post object has been passed into a function or method where an array was expected. The file you cited is the location there whe error was reported. Use a stack trace to determine where the error originated from to solve your problem.

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