Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image viewer problems (oC X) #27779

Closed
mafony opened this issue May 1, 2017 · 3 comments
Closed

image viewer problems (oC X) #27779

mafony opened this issue May 1, 2017 · 3 comments

Comments

@mafony
Copy link

mafony commented May 1, 2017

Steps to reproduce

  1. Web - [any jpeg folder] - click on jpg - no download button in right top.
  2. Web - [any jpeg folder] - gallery view- click on jpg - download button exist in right top.

Expected behaviour

Web - [any jpeg folder] - click on jpg - download button shuld be in right top.

Actual behaviour

No download button as expected.

Server configuration

Operating system: freebsd 10.3

Web server: lighttpd 1.4.45 and now nginx 1.10.3

Database: mysql

PHP version: 5.6

ownCloud version: 10.0.0

Updated from an older ownCloud or fresh install: (update fail) fresh install

Where did you install ownCloud from: owncloud.org

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

no errors.

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => '...',
  'passwordsalt' => '...',
  'secret' => '...',
  'trusted_domains' => 
  array (
    0 => '...',
  ),
  'datadirectory' => '/data_root',
  'files_external_allow_create_new_local' => true,
  'overwrite.cli.url' => 'https://...',
  'dbtype' => 'mysql',
  'version' => '10.0.0.12',
  'dbname' => 'ocdb',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => '...',
  'dbpassword' => '...',
  'log_type' => 'syslog',
  'syslog_tag' => 'owncloud',
  'logtimezone' => '...',
  'loglevel' => 2,
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'asset-pipeline.enabled' => true,
  'maintenance' => false,
  'singleuser' => false,
);

List of activated apps:

Enabled:
  - activity: 2.3.3
  - comments: 0.3.0
  - configreport: 0.1.1
  - contacts: 1.5.2
  - dav: 0.2.8
  - federatedfilesharing: 0.3.0
  - federation: 0.1.0
  - files: 1.5.1
  - files_external: 0.7.0
  - files_pdfviewer: 0.8.1
  - files_sharing: 0.10.0
  - files_texteditor: 2.1
  - files_trashbin: 0.9.0
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - gallery: 15.0.0
  - market: 0.1.0
  - notifications: 0.3.0
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - templateeditor: 0.1
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - example-theme
  - external
  - files_antivirus
  - user_external

Are you using external storage, if yes which one: local/smb/sftp/...
local
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no

Client configuration

Browser: chrome, IE

Operating system: win7, android

Logs

Web server error log

no errors (past day)

ownCloud log (data/owncloud.log)

Apr 30 20:22:14 jail2 owncloud[37852]: {PHP} file_get_contents(/data_root//files/usr/local/www/owncloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /usr/local/www/owncloud/lib/private/Files/Storage/Local.php#208
Apr 30 20:22:14 jail2 owncloud[37852]: {PHP} imagecreatefromstring(): Empty string or invalid image at /usr/local/www/owncloud/lib/private/legacy/image.php#572
Apr 30 20:22:14 jail2 owncloud[37852]: {PHP} file_get_contents(/data_root//files/usr/local/www/owncloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /usr/local/www/owncloud/lib/private/Files/Storage/Local.php#208
Apr 30 20:22:14 jail2 owncloud[37852]: {PHP} imagecreatefromstring(): Empty string or invalid image at /usr/local/www/owncloud/lib/private/legacy/image.php#572
Apr 30 21:56:21 jail2 owncloud[50096]: {PHP} file_get_contents(/data_root//files/usr/local/www/owncloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /usr/local/www/owncloud/lib/private/Files/Storage/Local.php#208
Apr 30 21:56:21 jail2 owncloud[50096]: {PHP} imagecreatefromstring(): Empty string or invalid image at /usr/local/www/owncloud/lib/private/legacy/image.php#572
Apr 30 21:56:21 jail2 owncloud[50096]: {PHP} file_get_contents(/data_root//files/usr/local/www/owncloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /usr/local/www/owncloud/lib/private/Files/Storage/Local.php#208
Apr 30 21:56:21 jail2 owncloud[50096]: {PHP} imagecreatefromstring(): Empty string or invalid image at /usr/local/www/owncloud/lib/private/legacy/image.php#572
@beswan
Copy link

beswan commented May 4, 2017

I have the same problem. This problem also corrupts the downloaded image and video files.
When I upload image and video files using ShareX 11.7 client, this issue was not reproduced.
I guess that web ui misused some file path related function...
(#27770 issue seems to have same causes.)

@PVince81
Copy link
Contributor

raised in gallery app owncloud/gallery#722

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants