Sharing tab is missing. Unable to share any file or folder

Nextcloud version (eg, 18.0.2): 18.0.7
Operating system and version (eg, Ubuntu 20.04): Raspbian Buster
Apache or nginx version (eg, Apache 2.4.25): 2.4.38
PHP version (eg, 7.1): 7.3

The issue you are facing:
In the Files page, when I click on any file or folder, a sidebar opens on the right. There are multiple tabs in that sidebar like Activity, Comments, etc. There used to be a “Sharing” tab and it has disappeared. There’s just an empty space. I’ve shared folders before using the same tab, but for some reason, it’s not showing up now. I’ve tested this in multiple browsers and it’s the same issue. I do want to mention that I’m using NextCloudPi.

Is this the first time you’ve seen this error?: Yes

Steps to replicate it:

  1. Log in to NextCloud
  2. Go to Files
  3. Click on any file or folder and see that the right sidebar opens
  4. Sharing tab is missing

The output of your Nextcloud log in Admin > Logging:

Info	updater	\OC\Updater::resetLogLevel: Reset log level to Warning(2)		2020-07-19T12:02:47-0700
Info	updater	\OC\Updater::maintenanceDisabled: Turned off maintenance mode		2020-07-19T12:02:47-0700
Info	updater	\OC\Updater::updateEnd: Update successful		2020-07-19T12:02:47-0700
Info	updater	\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check		2020-07-19T12:02:47-0700
Debug	no app in context	JSCombiner: successfully cached: merged-template-prepend.js		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postCreate: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:57-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preCreate: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postCreate: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preCreate: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postCreate: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::postWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preCreate: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Debug	no app in context	Deprecated event type for \OCP\Files::preWrite: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:56-0700
Info	updater	\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...		2020-07-19T12:01:54-0700
Info	updater	\OC\Repair::step: Repair step: Reset generated avatar flag		2020-07-19T12:01:54-0700
Debug	no app in context	Deprecated event type for \OC\Repair::step: Symfony\Component\EventDispatcher\GenericEvent		2020-07-19T12:01:54-0700

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => '<password_salt>',
  'secret' => '<secret>',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    1 => '<ip>',
    3 => '<custom.domain>',
    2 => '<custom.domain>',
    4 => '<custom.domain>',
    12 => '<custom.domain>',
    20 => '<custom.domain>',
    11 => '<ip>',
  ),
  'datadirectory' => '/home/pi/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '18.0.7.1',
  'overwrite.cli.url' => '<custom.domain>',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => '<db_password>',
  'installed' => true,
  'instanceid' => '<instance_id>',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => '<password>',
  ),
  'tempdirectory' => '/home/pi/nextcloud/data/tmp',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => '<from_address>',
  'mail_domain' => '<domain>',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'loglevel' => '2',
  'log_type' => 'file',
  'maintenance' => false,
  'theme' => '',
  'htaccess.RewriteBase' => '/',
  'logfile' => '/home/pi/nextcloud/data/nextcloud.log',
  'updater.secret' => '<updater_secret>',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => '<smtp_name>',
  'mail_smtppassword' => '<smtp_password>',
);

The output of your Apache/nginx/system log in /var/log/____:

[Sun Jul 19 18:46:31.335432 2020] [authz_host:error] [pid 1018:tid 1715205152] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/reboot.svg failed, reason: unable to get the remote host name
[Sun Jul 19 18:46:31.335719 2020] [authz_host:error] [pid 1018:tid 1706804256] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/search.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.433324 2020] [authz_host:error] [pid 1018:tid 1723606048] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.433450 2020] [authz_host:error] [pid 1018:tid 1706804256] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/nc-button.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.442784 2020] [authz_host:error] [pid 1018:tid 1723606048] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.443851 2020] [authz_host:error] [pid 1018:tid 1706804256] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.446828 2020] [authz_host:error] [pid 1018:tid 1706804256] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.447943 2020] [authz_host:error] [pid 1018:tid 1740407840] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/menu.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.448711 2020] [authz_host:error] [pid 1018:tid 1723606048] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.449230 2020] [authz_host:error] [pid 1018:tid 1715205152] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.453527 2020] [authz_host:error] [pid 1018:tid 1715205152] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.453527 2020] [authz_host:error] [pid 1018:tid 1723606048] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /img/red-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.0.14:4443/css/ncp.css
[Sun Jul 19 18:46:31.525060 2020] [authz_host:error] [pid 1018:tid 1723606048] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Jul 19 18:46:31.609682 2020] [authz_host:error] [pid 1018:tid 1715205152] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sun Jul 19 18:46:35.750051 2020] [authz_host:error] [pid 1018:tid 1723606048] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Jul 19 18:46:35.783928 2020] [authz_host:error] [pid 1018:tid 1723606048] [client 192.168.0.224:60721] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Jul 19 18:52:53.363387 2020] [authz_host:error] [pid 1017:tid 1681601568] [client 192.168.0.224:61548] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sun Jul 19 19:03:55.361643 2020] [authz_host:error] [pid 1018:tid 1757201440] [client 192.168.0.224:62825] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sun Jul 19 20:00:09.948324 2020] [proxy_fcgi:error] [pid 1018:tid 1757201440] [client 192.168.0.224:62825] AH01067: Failed to read FastCGI header
[Sun Jul 19 20:00:10.056031 2020] [proxy_fcgi:error] [pid 1018:tid 1757201440] (104)Connection reset by peer: [client 192.168.0.224:62825] AH01075: Error dispatching request to :4443:
[Sun Jul 19 20:00:12.931504 2020] [mpm_event:notice] [pid 1016:tid 1995686416] AH00491: caught SIGTERM, shutting down
[Sun Jul 19 20:00:37.030067 2020] [ssl:warn] [pid 860:tid 1995727376] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 19 20:00:37.178602 2020] [ssl:warn] [pid 1056:tid 1995727376] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 19 20:00:37.184318 2020] [mpm_event:notice] [pid 1056:tid 1995727376] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Sun Jul 19 20:00:37.184460 2020] [core:notice] [pid 1056:tid 1995727376] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jul 19 20:00:39.750374 2020] [authz_host:error] [pid 1057:tid 1983845408] [client 192.168.0.224:52563] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sun Jul 19 20:00:39.751241 2020] [proxy:error] [pid 1057:tid 1983845408] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.3-fpm.sock (*) failed
[Sun Jul 19 20:00:39.751353 2020] [proxy_fcgi:error] [pid 1057:tid 1983845408] [client 192.168.0.224:52563] AH01079: failed to make connection to backend: httpd-UDS


This is the screenshot of just the right sidebar when I clicked on the Test.md file in the Files app. In the attached image, you can see that the third tab is blank. It was supposed to be the Sharing tab.

Hi, I found this post while I was searching for a solution for the same problem. In the end it was my ad blocker (uBlock) that made the tabs disappear.

3 Likes