issue #479 Call to a member function get_file_url() on a non-object