"Create public link" button is non-clickable

I’ve been at this for two days, along with Claude.ai, troubleshooting it but we got nowhere, even after reinstall and creating new test users.

Data partition was wiped, root intact, including configs and database.

After data partition recovery, the “Create public link” button in Nextcloud web UI won’t click - it renders as <span role="generic"> instead of an interactive button. Desktop app sharing works fine. Tried everything including complete Nextcloud reinstall - issue persists. Backend APIs return 200, all configs correct. Suspect database corruption from partition recovery.

TL;DR:


Public Link Sharing Button Not Clickable in Web UI (Desktop App Works)

Environment

  • Nextcloud Version: 32.0.0 (upgraded from 31.0.9)
  • Installation: Native (not Docker/Snap)
  • OS: Ubuntu
  • Web Server: Apache 2.4.58
  • PHP: 8.3.6
  • Database: MySQL/MariaDB
  • Reverse Proxy: Nginx with HTTPS

Problem Description

The “Create public link” button in the Nextcloud web UI is completely non-clickable. It appears as plain text with a blue circle icon but has no interactivity:

  • No cursor change on hover
  • No response to clicks
  • Just displays as static text

However, public link sharing works perfectly through the desktop application. Other sharing features (internal shares, email shares) work normally in the web UI. Once the share is created via desktop app, web UI can then modify all aspects of it, it just cannot create it.

Background

This issue appeared after recovering from a data partition corruption. The system partition (/var/www/html/nextcloud) remained intact, but /data/nextcloud had to be restored from backups. During recovery, some file permissions may have been modified.

Technical Findings

Browser Console Errors

JavaScript errors appear on page load:

  • TypeError: this.fetchDisplayName is not a function (VersionTab.vue:170)
  • Uncaught (in promise) TypeError: o[e] is not a function

Element Inspection

Using browser dev tools to inspect the “Create public link” element reveals:

  • Rendering as a <span> with role="generic"
  • Keyboard-focusable: NO
  • Should be an interactive button element but isn’t

API Behavior

Network tab shows all sharing API calls to /ocs/v2.php/apps/files_sharing/ return 200 OK. The backend is functioning correctly - this is purely a frontend rendering issue.

Configuration Status

All sharing settings are properly enabled:

  • shareapi_allow_links: true
  • shareapi_enabled: yes
  • sharing.enable_share_by_link: true
  • Admin UI shows “Allow users to share via link” enabled
  • No groups excluded from link sharing
  • All share permissions enabled

Troubleshooting Steps Attempted

Basic Testing

  • Tested in multiple browsers (Firefox, Chrome) and private/incognito mode
  • Cleared browser cache completely (Ctrl+Shift+Delete)
  • Created fresh user account and tested - same issue
  • Verified user has “Create” permission in share settings

App Management

  • Disabled and re-enabled files_sharing app
  • Disabled potentially conflicting apps: activity, files_versions, notifications, recommendations
  • Reinstalled files_sharing from fresh Nextcloud download

Cache and Asset Regeneration

Deleted and regenerated all JS/CSS assets:

  • Removed /var/www/html/nextcloud/data/appdata_*/js
  • Removed /var/www/html/nextcloud/data/appdata_*/css
  • Ran occ maintenance:repair

Database Maintenance

  • Ran occ db:add-missing-indices
  • Ran occ db:add-missing-columns
  • Ran occ maintenance:repair

Core Integrity

  • Ran occ integrity:check-core
  • Initially failed on .user.ini hash mismatch
  • Restored file from clean download
  • Check now passes

Complete Nextcloud Reinstall

Performed full reinstall of Nextcloud 32.0.0:

  1. Created LVM snapshot for safety
  2. Moved existing installation to .backup
  3. Downloaded fresh nextcloud-32.0.0.zip
  4. Extracted and copied config.php
  5. Set proper ownership (www-data:www-data)
  6. Ran upgrade process
  7. Issue persists after complete reinstall

Permission Verification

Verified all file permissions are correct:

  • /data/nextcloud/data owned by www-data:www-data
  • All appdata_* directories have proper ownership
  • Checked both system and data partition permissions

Current Status

:white_check_mark: Working:

  • Backend sharing API (all calls return 200)
  • Desktop app can create public links successfully
  • Internal shares work in web UI
  • Email shares work in web UI

:cross_mark: Not Working:

  • “Create public link” button in web UI
  • Button renders as non-interactive span element

Questions

The fact that a complete fresh install didn’t fix this suggests the issue lies in the database or some persistent configuration that survived the reinstall.

Has anyone encountered:

  1. Sharing buttons rendering as non-interactive elements with role="generic"?
  2. Database table corruption that causes this specific Vue rendering issue?
  3. PHP extensions or Redis configurations that might affect Vue.js component rendering?
  4. Data partition recovery corrupting specific database entries that affect frontend rendering?

Any insights would be greatly appreciated!

1 Like

Same problem:Working in Docker Nextcloud Hub 10 (31.0.9) - Issue: When browsing images in the shared link’s secondary folder (/Shares/Photo) on a mobile device or PC, I cannot use the “<>” button to navigate back and forth.
This issue works fine in Nextcloud Hub 10 (31.0.7) and the primary folder (/Shares).

2 Likes

Hi, I have same problem, cannot use the “<>” button to navigate back and forth.

2 Likes

Interesting. So perhaps my issue is not related to the wipe and restore but the fact that a new version got installed. I’m on Hub 25 Autumn (32.0.0) now. I don’t remember the previous version but it was probably whatever was released before that one. All was fine then.

Did this start with a new version you installed? Similarly to both myself and @Benny_Wong

Same issue in version Nextcloud Hub 25 Autumn (32.0.0).

No, only update to version Nextcloud Hub 10 (31.0.9) from 31.0.8.
Operating system:
Ubuntu Linux 24.04.3 up-to-date
Applications: only recommended + Collabora Office

It looks like the issue is frontend-related, not permissions or config. The errors suggest that part of the files_sharing Vue component didn’t load or bind correctly.

Since it persists after a full reinstall, it’s probably tied to cached appdata or database entries that survived the recovery.

You can try: Running

sudo -u www-data php occ files_sharing:cleanup

sudo -u www-data php occ maintenance:repair

Remove and rebuild the appdata cache folder again (especially /appdata_*/js and /appdata_*/css).

Check if you have multiple versions of files_sharing left over in /apps or /custom_apps.

If that doesn’t help, try creating a new clean database (just for test) with the same config and see if the UI behaves normally, that can confirm if it’s data-related or core code.

Marvin

Accuweb.Cloud Support Engineer