Cannot share files anymore


Nextcloud version (eg, 10.0.2): 12.0.2
Operating system and version (eg, Ubuntu 16.04): rasphian jessie
Apache or nginx version (eg, Apache 2.4.25): 1.10.3
PHP version (eg, 5.6): 7.0
Is this the first time you’ve seen this error?: Yes

The issue you are facing:
No link available for sharing despite sharing activated in admin section. It used to work but suddenly stop. All share are unavailable to who they were share to, while the files stay accessible to the ones doing the share

The output of your Nextcloud log in Admin > Logging:
Error PHP Undefined index: loginForm at …/nextcloud/apps/ojsxc/settings/personal.php#22 2017-08-30T22:34:19+0300
Error PHP Undefined index: loginForm at …/nextcloud/apps/ojsxc/settings/personal.php#22 2017-08-30T22:33:58+0300
Error PHP Cannot retrieve value of undefined directive Core.AggressivelyRemoveScript invoked on line 352 in file …/nextcloud/apps/news/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer.php at …/nextcloud/apps/news/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php#901 2017-08-30T22:30:12+0300
Error PHP Cannot retrieve value of undefined directive Core.LegacyEntityDecoder invoked on line 337 in file …/nextcloud/apps/news/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer.php at …/nextcloud/apps/news/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php#901 2017-08-30T22:30:12+030

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):
$CONFIG = array (
‘instanceid’ => ‘’,
‘passwordsalt’ => ‘’,
‘secret’ => ‘’,
‘trusted_domains’ =>
array (
1 => ‘’,
),
‘datadirectory’ => ‘/var/www/html//public_html/nextcloud/data’,
‘overwrite.cli.url’ => ‘https:///nextcloud’,
‘overwritehost’ => ‘’,
‘overwriteprotocol’ => ‘https’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘12.0.2.0’,
‘dbname’ => ‘nextcloud12’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘’,
‘dbpassword’ => ‘’,
‘installed’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.distributed’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘password’ => ‘’,
‘timeout’ => 1.5,
),
‘mail_from_address’ => ‘nextcloud’,
‘mail_smtpmode’ => ‘php’,
‘mail_domain’ => ‘’,
‘enable_previews’ => true,
‘enabledPreviewProviders’ =>
array (
0 => ‘OC\Preview\Image’,
1 => ‘OC\Preview\MP3’,
2 => ‘OC\Preview\TXT’,
3 => ‘OC\Preview\MarkDown’,
4 => ‘OC\Preview\PDF’,
5 => ‘OC\Preview\Epub’,
6 => ‘OC\Preview\MSOffice2003’,
7 => ‘OC\Preview\MSOffice2007’,
8 => ‘OC\Preview\MSOfficeDoc’,
9 => ‘OC\Preview\OpenDocument’,
10 => ‘OC\Preview\StarOffice’,
),
‘log_type’ => ‘file’,
‘session_keepalive’ => true,
‘maintenance’ => false,
‘updater.secret’ => ‘’,
‘theme’ => ‘’,
‘loglevel’ => 2,
);

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


Have you done any changes to your installation (e.g. update php version)?

No, that’s the weird part. Appart from a few plugin update from time to time.
After it stopped working I updated to 12.0.2 but it did not solve the issue.

Actually I realized that I might have had an update on php. Not of version but still. Anything I can do to debug this?

Well this is setting a high level of stupidity: For whatever reason, the file sharing app was disabled…

I cannot agree more. The level of stupidity is astounding!