You are trying to use pagination on a value that is not an array!