Problem with shared links

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 28.0.1
Operating system and version (eg, Ubuntu 20.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.56
PHP version (eg, 7.4): 8.3

The issue you are facing:
When I click in the shared link to my Nextcloud entire page starts to “flashing”…

Then in admin settings I get the error:

The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply opcache.interned_strings_buffer to your PHP configuration with a value higher than `8’

But whatever value I set (16 or 32) the above error still persist.

Please help

Can you please explain exactly where and how you passed these values?

Much luck,
ernolf

Hi,

In /etc/php/8.3/cli/php.ini file edited “opcache.interned_strings_buffer=32” .

Try /etc/php/8.3/fpm/php.ini, or if you don’t use FPM, you should probably add it to: /etc/php/8.3/apache2/php.ini.

There are no “fpm” and “apache2” directories in /etc/php/8.3 location…

Is your Nextcloud actually using PHP8.3?

You can check under Administration Settings → System → PHP

…and what’s the output of:

apt list *php* --installed

It seems that I have also PHP8.1! Under Administration Settings → System → PHP is PHP8.1.27 and output of apt list *php* --installed is:

Listing... Done
php-common/bullseye,now 2:93+0~20231125.47+debian11~1.gbpc7171d all [installed,automatic]
php-intl/bullseye,now 2:8.2+93+0~20231125.47+debian11~1.gbpc7171d all [installed]
php8.1-apcu/bullseye,now 5.1.23-1+0~20231125.39+debian11~1.gbp8bf49a amd64 [installed]
php8.1-bcmath/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-bz2/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-cli/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed,automatic]
php8.1-common/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed,automatic]
php8.1-curl/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-fpm/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-gd/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-gmp/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-igbinary/bullseye,now 3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8 amd64 [installed,automatic]
php8.1-imagick/bullseye,now 3.7.0-4+0~20231125.43+debian11~1.gbpbf7e27 amd64 [installed]
php8.1-intl/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-ldap/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-mbstring/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-mysql/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-opcache/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed,automatic]
php8.1-readline/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed,automatic]
php8.1-redis/bullseye,now 6.0.2-1+0~20231128.56+debian11~1.gbp9f3071 amd64 [installed]
php8.1-smbclient/bullseye,now 1.1.1-1+0~20231125.26+debian11~1.gbp8be856 amd64 [installed]
php8.1-xml/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-zip/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.2-bz2/bullseye,now 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 [installed]
php8.2-common/bullseye,now 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 [installed,automatic]
php8.2-intl/bullseye,now 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 [installed,automatic]
php8.3-apcu/bullseye,now 5.1.23-1+0~20231125.39+debian11~1.gbp8bf49a amd64 [installed]
php8.3-bcmath/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-bz2/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-cli/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed,automatic]
php8.3-common/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-curl/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-gd/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-gmp/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-igbinary/bullseye,now 3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8 amd64 [installed,automatic]
php8.3-imagick/bullseye,now 3.7.0-4+0~20231125.43+debian11~1.gbpbf7e27 amd64 [installed]
php8.3-intl/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-mbstring/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-mysql/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-opcache/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed,automatic]
php8.3-phpdbg/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed,automatic]
php8.3-readline/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed,automatic]
php8.3-redis/bullseye,now 6.0.2-1+0~20231128.56+debian11~1.gbp9f3071 amd64 [installed]
php8.3-xml/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]
php8.3-zip/bullseye,now 8.3.1-1+0~20231221.15+debian11~1.gbp28f2f4 amd64 [installed]

So I changed the value of opcache.interned_strings_buffer to 32 in PHP8.1 and restarted apache2 and error is gone! But shared links still make Nextcloud page “flashing”…

Sorry, I’ve never seen this behaviour before, it looks like the page keeps reloading but I’m not sure what could be causing it.

Maybe an app that you have installed…? Or something in your Apache configuration…?

Is that with all shares or does it make any difference whether you share a text file, a photo or a directory?


Could you provide the output of

occ app:list --shipped=false

Much luck,
ernolf

This behaviour is related with all links.
The output of “occ app:list --shipped=false” is:

Enabled:

  • files_automatedtagging: 1.18.0
  • spreed: 18.0.1
    Disabled:
  • jsloader: 1.5.0 (installed 1.5.0)

Has jsloader ever been activated?
I don’t know the app myself, but it is only supported up to version 25. So when experimented with, it can cause unexpected things.

Much luck,
ernolf

Yes, jsloader was activated some time ago:
screenshot.1704290658

But I removed this code, saved, turned off this app and removed it completely.
I noticed that flashing issue is related only with shared FOLDERS. When I share a file from main directory then no flashing but no file content is shown. When I share PDF document from main directory and open shared link no flashing, there is Download button but the page is white blank.

EDIT
After few days Opcache error returned:

The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply opcache.interned_strings_buffer to your PHP configuration with a value higher than `8’

I removed PHP8.3 and now I have only 8.1:

php-common/bullseye,now 2:93+0~20231125.47+debian11~1.gbpc7171d all [installed,automatic]
php-intl/bullseye,now 2:8.2+93+0~20231125.47+debian11~1.gbpc7171d all [installed]
php8.1-apcu/bullseye,now 5.1.23-1+0~20231125.39+debian11~1.gbp8bf49a amd64 [installed]
php8.1-bcmath/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-bz2/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-cli/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed,automatic]
php8.1-common/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed,automatic]
php8.1-curl/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-fpm/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-gd/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-gmp/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-igbinary/bullseye,now 3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8 amd64 [installed,automatic]
php8.1-imagick/bullseye,now 3.7.0-4+0~20231125.43+debian11~1.gbpbf7e27 amd64 [installed]
php8.1-intl/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-ldap/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-mbstring/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-mysql/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-opcache/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed,automatic]
php8.1-readline/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed,automatic]
php8.1-redis/bullseye,now 6.0.2-1+0~20231128.56+debian11~1.gbp9f3071 amd64 [installed]
php8.1-smbclient/bullseye,now 1.1.1-1+0~20231125.26+debian11~1.gbp8be856 amd64 [installed]
php8.1-xml/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.1-zip/bullseye,now 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 [installed]
php8.2-bz2/bullseye,now 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 [installed]
php8.2-common/bullseye,now 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 [installed,automatic]
php8.2-intl/bullseye,now 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 [installed,automatic]

Yep, in the meantime I could reproduce this on a test instance with 28.0.1. I also found the following forum post, which provides a worakround and links to the corresponding GitHub issues: Sharing content via link broke on NC28 - #2 by swindhab

1 Like

LOL! It solves my “flashing” issue!

But what about opcache.interned_strings_buffer issue? I have a feeling that I’m editing wrong php.ini file because whatever I set there is no effect at all. Or maybe it’s a bug?
When I restart the server the above issue is gone for some time…

You have

  • multiple php installed.
  • multiple php SAPI

every sapi has its own php.ini.

Since you have php-fpm installed, it seems likely that you have to edit the /etc/php/8.1/fpm/php.ini file for this. But there is also the possibility (I can’t tell from your information) that your php is talking to your web server using libapache2-mod-php. In that case, /etc/php/8.1/apach2/php.ini is responsible.

Take a look here please:

Much luck,
ernolf

As I said before I uninstalled every PHP version except 8.1. According to your post I edited /etc/php/8.1/fpm/php.ini file and rebooted the server. Will see if this resolve the issue.

You posted the installed packages and there are some 8.2 packages as well:

simply run

sudo apt-get purge *php8.2*

… to get rid of those :wink:


rebooting the server is not needed!

A simple

sudo systemctl restart apache2 php8.1-fpm

… is enough.

to monitor the resources of my servers, I have created pasword protected admin sections, where I have all tools like phpMyAdmin etc. One of those tools is → OP cache GUI ← , a clean and responsive interface for Zend OPcache information, showing statistics, settings and cached files, and providing a real-time update for the information.

As an admin one should always know what is being used where and how much instead of being surprised by the facts again and again. :wink:

Much luck,
ernolf

ernolf, I did everything as You suggested and everything seems to be fine! :slight_smile: Thant you all - especially ernolf! :wink:

1 Like

Even if your problem has been solved. Are you really using Debian 12 Bookworm as stated above? Debian 12 Bookworm is delivered with PHP 8.2. Why don’t you just use PHP 8.2? Or do you use PHP 8.2?

Can you post

dpkg -l |grep php

Debian -- Details of package php in bookworm

I upgraded PHP to 8.2:

ii libapache2-mod-php8.2 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-common 2:93+0~20231125.47+debian11~1.gbpc7171d all Common files for PHP packages
ii php8.1-apcu 5.1.23-1+0~20231125.39+debian11~1.gbp8bf49a amd64 APC User Cache for PHP
ii php8.1-bcmath 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 Bcmath module for PHP
ii php8.1-bz2 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 bzip2 module for PHP
ii php8.1-cli 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 command-line interpreter for the PHP scripting language
ii php8.1-common 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 documentation, examples and common module for PHP
ii php8.1-curl 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 CURL module for PHP
ii php8.1-fpm 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php8.1-gd 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 GD module for PHP
ii php8.1-gmp 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 GMP module for PHP
ii php8.1-igbinary 3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8 amd64 igbinary PHP serializer
ii php8.1-imagick 3.7.0-4+0~20231125.43+debian11~1.gbpbf7e27 amd64 Provides a wrapper to the ImageMagick library
ii php8.1-intl 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 Internationalisation module for PHP
ii php8.1-ldap 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 LDAP module for PHP
ii php8.1-mbstring 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 MBSTRING module for PHP
ii php8.1-mysql 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 MySQL module for PHP
ii php8.1-opcache 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 Zend OpCache module for PHP
ii php8.1-readline 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 readline module for PHP
ii php8.1-redis 6.0.2-1+0~20231128.56+debian11~1.gbp9f3071 amd64 PHP extension for interfacing with Redis
ii php8.1-smbclient 1.1.1-1+0~20231125.26+debian11~1.gbp8be856 amd64 PHP wrapper for libsmbclient
ii php8.1-xml 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php8.1-zip 8.1.27-1+0~20231221.58+debian11~1.gbp3895b2 amd64 Zip module for PHP
ii php8.2 8.2.14-1+0~20231221.38+debian11~1.gbp698136 all server-side, HTML-embedded scripting language (metapackage)
ii php8.2-apcu 5.1.23-1+0~20231125.39+debian11~1.gbp8bf49a amd64 APC User Cache for PHP
ii php8.2-bcmath 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 Bcmath module for PHP
ii php8.2-bz2 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 bzip2 module for PHP
ii php8.2-cli 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 command-line interpreter for the PHP scripting language
ii php8.2-common 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 documentation, examples and common module for PHP
ii php8.2-curl 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 CURL module for PHP
ii php8.2-fpm 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php8.2-gd 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 GD module for PHP
ii php8.2-gmp 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 GMP module for PHP
ii php8.2-igbinary 3.2.15-1+0~20231202.49+debian11~1.gbpe9ffe8 amd64 igbinary PHP serializer
ii php8.2-imagick 3.7.0-4+0~20231125.43+debian11~1.gbpbf7e27 amd64 Provides a wrapper to the ImageMagick library
ii php8.2-intl 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 Internationalisation module for PHP
ii php8.2-ldap 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 LDAP module for PHP
ii php8.2-mbstring 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 MBSTRING module for PHP
ii php8.2-mysql 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 MySQL module for PHP
ii php8.2-opcache 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 Zend OpCache module for PHP
ii php8.2-readline 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 readline module for PHP
ii php8.2-redis 6.0.2-1+0~20231128.56+debian11~1.gbp9f3071 amd64 PHP extension for interfacing with Redis
ii php8.2-smbclient 1.1.1-1+0~20231125.26+debian11~1.gbp8be856 amd64 PHP wrapper for libsmbclient
ii php8.2-xml 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php8.2-zip 8.2.14-1+0~20231221.38+debian11~1.gbp698136 amd64 Zip module for PHP

Can I completely get rid of PHP 8.1?