Error after moving to ip for a domain name

After the transition to ip address for a domain name in the log the error occurred:

Argument 8 passed to OC\Core\Controller\AvatarController::__construct() must implement interface OCP\Files\Folder, null given, called in /var/www/owncloud/core/Application.php on line 96 and defined at /var/www/owncloud/core/Controller/AvatarController.php#88

My actions are the steps:
1. Step
I create a file in /etc/apache2/conf-available/ with the name owncloud.conf
and he wrote in his configuration

<Directory "/var/www/owncloud">

    SSLRenegBufferSize 10486000
    LimitRequestBody 0

    Options +FollowSymLinks
    AllowOverride All

    <IfModule mod_dav.c>
      Dav off

    SetEnv HOME /var/www/owncloud
    SetEnv HTTP_HOME /var/www/owncloud

<Directory "/var/www/owncloud/data/">
  # just in case if .htaccess gets disabled
  Require all denied
  1. Step
    I create a file in /etc/apache2/sites-available/ with the name owncloud_ssl.conf
    and he wrote in his configuration
<IfModule mod_ssl.c>
        <VirtualHost *:443>
 <IfModule mod_headers.c>
      Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"


                ServerAdmin webmaster@localhost

                DocumentRoot /var/www/owncloud

                ErrorLog ${APACHE_LOG_DIR}/error.log
                CustomLog ${APACHE_LOG_DIR}/access.log combined

                SSLEngine on
                SSLProtocol all -SSLv2

                SSLCertificateFile      /etc/apache2/ssl/owncloud.crt
                SSLCertificateKeyFile /etc/apache2/ssl/owncloud.key

                <FilesMatch "\.(cgi|shtml|phtml|php)$">
                                SSLOptions +StdEnvVars

                <Directory /usr/lib/cgi-bin>
                                SSLOptions +StdEnvVars

                BrowserMatch "MSIE [2-6]" \
                                nokeepalive ssl-unclean-shutdown \
                                downgrade-1.0 force-response-1.0

                BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

  1. Step
    Activated, these two configuration using commands

    a2enconf owncloud.conf
    a2ensite owncloud_ssl.conf

  2. Step
    apache2 restart

  3. Step
    Add to config.php

 'trusted_domains' =>
  array (
   0 => '*.*.*.*',
   1 => '',

I wanted to make owncloud worked

Please tell me what I did wrong?
Why is this error?
Thank you!

OS: Ubuntu Server 14.04.05
Web Server Apache2
Owncloud 9.1.3