Hi, I’m running NC 10.0 on Ubuntu 16.04 LTS.
I’ve been fiddling with getting Gallery (or Galleryplus) to display my pictures in RAW CR2 format. I got from a german speaking thread where a user had been using imagick and its PECL, together with some definitions in the config.php file. Now, with that installed, I define this in config.php, but no dice. Is this feature not available at all, or am I doing it all wrong?
Any insight is much appreciated.
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\Preview\BMP',
1 => 'OC\Preview\Font',
2 => 'OC\Preview\GIF',
3 => 'OC\Preview\Illustrator',
4 => 'OC\Preview\JPEG',
5 => 'OC\Preview\MarkDown',
6 => 'OC\Preview\Movie',
7 => 'OC\Preview\MP3',
8 => 'OC\Preview\PDF',
9 => 'OC\Preview\Photoshop',
10 => 'OC\Preview\PNG',
11 => 'OC\Preview\Postscript',
12 => 'OC\Preview\Raw',
13 => 'OC\Preview\SVG',
14 => 'OC\Preview\TIFF',
15 => 'OC\Preview\TXT',
16 => 'OC\Preview\XBitmap',
),
Schmu
November 21, 2016, 5:18pm
2
Hi,
I have the same problem and would be happy to receive some tips as well. I added ‘OC\Preview\TIFF’, restarted Apache, but nothing changes. There is no preview for the tiff files in my folder.
Nextcloud 10.0
Ubuntu 16.4 LTS
Latest Apache
PHP 7
Somebody with an idea?
tflidd
November 21, 2016, 5:49pm
3
Are they larger than 50 MB?
-> setting in config/config.php: ‘preview_max_filesize_image’ => 50,
Can you check your logfile for errors?
Schmu
November 21, 2016, 6:00pm
4
The files are only 7 MB big.
Oh yes, there is an error message:
apache2[30332]: {PHP} Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/nextcloud/lib/private/Files/Filesystem.php:773#012Stack trace:#012#0 /var/www/nextcloud/lib/private/Files/View.php(2034): OC\Files\Filesystem::normalizePath('/Name/files...')#012#1 /var/www/nextcloud/lib/private/Files/View.php(1152): OC\Files\View->unlockFile('/Photos/raw...', 1)#012#2 [internal function]: OC\Files\View->OC\Files\{closure}()#012#3 /var/www/nextcloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))#012#4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close()#012#5 {main}#012 thrown at /var/www/nextcloud/lib/private/Files/Filesystem.php#773
Don’t know what that means.
Thanks for your help!
tflidd
November 21, 2016, 8:47pm
5
There are already a number of similar errors on the bug tracker. Check if any of the cases applies to yours, if not open a new issue.
opened 05:35PM - 25 Jun 16 UTC
closed 03:13PM - 19 Jan 17 UTC
bug
feature: filesystem
### Steps to reproduce
Not sure. Have been syncing a large amount of data with … the newest owncloud client (nothing in the logs there).
### Expected behaviour
No errors
### Actual behaviour
Sometimes I get this error:
```
{"reqId":"hs+\/xNcxkbjTw9vwerxn","remoteAddr":"xxx.xxx.xxx.xxx","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/nextcloud\/lib\/private\/files\/filesystem.php:798\nStack trace:\n#0 \/var\/www\/nextcloud\/lib\/private\/files\/view.php(2011): OC\\Files\\Filesystem::normalizePath('\/igor\/files\/Pho...')\n#1 \/var\/www\/nextcloud\/lib\/private\/files\/view.php(1129): OC\\Files\\View->unlockFile('\/Photos\/Norwege...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/nextcloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n thrown at \/var\/www\/nextcloud\/lib\/private\/files\/filesystem.php#798","level":3,"time":"2016-06-25T18:49:46+02:00","method":"PUT","url":"\/remote.php\/webdav\/somepathtofile","user":"me"}
```
### Server configuration
**Operating system**:
Mint 17.3
**Web server:**
1.11.1
**Database:**
MySQL 5.5.49
**PHP version:**
PHP 7.0.8
**Nextcloud version:** (see Nextcloud admin page)
9.0.51
**Updated from an older Nextcloud/ownCloud or fresh install:**
Fresh
**Where did you install Nextcloud from:**
https://download.nextcloud.com/server/releases/nextcloud-9.0.51.zip
**Signing status (Nextcloud 9.0 and above):**
```
No errors have been found.
```
**List of activated apps:**
```
Enabled:
- activity: 2.2.1
- admin_audit: 1.0.0
- calendar: 1.2.2
- comments: 0.2
- contacts: 1.3.1.0
- dav: 0.1.6
- direct_menu: 0.8.0
- documents: 0.12.0
- federatedfilesharing: 0.1.0
- federation: 0.0.4
- files: 1.4.4
- files_pdfviewer: 0.8.1
- files_sharing: 0.9.1
- files_texteditor: 2.1
- files_trashbin: 0.8.0
- files_versions: 1.2.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- galleryplus: 15.1.0
- logreader: 1.1.2
- notifications: 0.2.3
- provisioning_api: 0.4.1
- systemtags: 0.2
- templateeditor: 0.1
- updatenotification: 0.1.0
```
**The content of config/config.php:**
```
{
"system": {
"instanceid": "ochgoz86g7jo",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"xxx.xxx.xxx.xxx",
"xxx.xxx.xxx.xxx",
"xxx.xxx.xxx.xxx",
"localhost"
],
"datadirectory": "\/home\/me\/nextcloud\/data",
"overwrite.cli.url": "me.org",
"dbtype": "mysql",
"version": "9.0.51.0",
"dbname": "nextcloud",
"dbhost": "localhost",
"memcache.local": "\\OC\\Memcache\\Redis",
"filelocking.enabled": "true",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "localhost",
"port": 6379,
"timeout": 0,
"dbindex": 0
},
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "Europe\/Berlin",
"loglevel": 2,
"logfile": "\/var\/log\/nextcloud.log",
"log_rotate_size": 10485760,
"installed": true,
"asset-pipeline.enabled": false
}
}
```
/etc/nginx/conf.d/default.conf
```
upstream php-handler {
#server 127.0.0.1:9000;
server unix:/var/run/php/php7.0-fpm.sock;
}
server {
listen 80;
server_name xxx;
# enforce https
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name xxx;
ssl_certificate /etc/letsencrypt/live/xxx/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/xxx/privkey.pem;
ssl_dhparam /etc/letsencrypt/live/xxx/dhparam.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
# ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
# Add headers to serve security related headers
# Before enabling Strict-Transport-Security headers please read into this
# topic first.
add_header Strict-Transport-Security "max-age=15768000;
# includeSubDomains; preload;";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
# Path to the root of your installation
root /var/www/nextcloud/;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
# The following 2 rules are only needed for the user_webfinger app.
# Uncomment it if you're planning to use this app.
#rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
#rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json
# last;
location = /.well-known/carddav { return 301
$scheme://$host/remote.php/dav; }
location = /.well-known/caldav { return 301
$scheme://$host/remote.php/dav; }
location /.well-known/acme-challenge { }
# set max upload size
client_max_body_size 512M;
fastcgi_buffers 64 4K;
# Disable gzip to avoid the removal of the ETag header
gzip off;
# Uncomment if your server is build with the ngx_pagespeed module
# This module is currently not supported.
#pagespeed off;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;
location / {
rewrite ^ /index.php$uri;
}
location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
deny all;
}
location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
deny all;
}
location ~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|ocs-provider/.+|core/templates/40[34])\.php(?:$|/) {
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
#Avoid sending the security headers twice
fastcgi_param modHeadersAvailable true;
fastcgi_param front_controller_active true;
fastcgi_pass php-handler;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
}
location ~ ^/(?:updater|ocs-provider)(?:$|/) {
try_files $uri/ =404;
index index.php;
}
# Adding the cache control header for js and css files
# Make sure it is BELOW the PHP block
location ~* \.(?:css|js)$ {
try_files $uri /index.php$uri$is_args$args;
add_header Cache-Control "public, max-age=7200";
# Add headers to serve security related headers (It is intended to
# have those duplicated to the ones above)
# Before enabling Strict-Transport-Security headers please read into
# this topic first.
# add_header Strict-Transport-Security "max-age=15768000;
# includeSubDomains; preload;";
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
# Optional: Don't log access to assets
access_log off;
}
location ~* \.(?:svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ {
try_files $uri /index.php$uri$is_args$args;
# Optional: Don't log access to other assets
access_log off;
}
}
```
Nothing in the server logs.
**Are you using external storage, if yes which one:** local/smb/sftp/...
no
**Are you using encryption:** yes/no
no
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
no
Seems related:
https://github.com/owncloud/core/issues/22370
opened 03:47PM - 29 Aug 16 UTC
closed 02:56PM - 25 Apr 17 UTC
bug
0. Needs triage
**Operating system**: Debian 8
**Web server:** Apache 2.4
**Database:** mysql 5.… 5.49-0+deb8u1
**PHP version:** 7.02
**Nextcloud version:** 10 / 9.1.0.16 - was also in 9.0.53
`Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/htdocs/lib/private/Files/Filesystem.php:773 Stack trace: #0 /var/www/htdocs/lib/private/Files/View.php(2034): OC\Files\Filesystem::normalizePath('/MaT/files/Musi...') #1 /var/www/htdocs/lib/private/Files/View.php(1152): OC\Files\View->unlockFile('/Music - World/...', 1) #2 [internal function]: OC\Files\View->OC\Files\{closure}() #3 /var/www/htdocs/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure)) #4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close() #5 {main} thrown at /var/www/htdocs/lib/private/Files/Filesystem.php#773`
This happens with the audioplayer app from Rello -> https://github.com/Rello/audioplayer
He told me it is an core related issue and not with the app - he cannot resolve it
I found the issue now also when i click normal songs in folders switch from one to the other by short click