Call to a member function contentGet() on a non-object