Hi I just updated the NC to the latest version, everything works fine, but the console throws errors if I share the folder with MP3s with the public link.
this is only the case of MP3s, everything else works fine.
Error PHP imagecreatefromstring(): Empty string or invalid image at /var/www/cloud_nextcloud/lib/private/legacy/image.php#575 2016-11-17T09:00:15+00:00 –
Error PHP fclose() expects parameter 1 to be resource, boolean given at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#205 2016-11-17T09:00:15+00:00 –
Error PHP fread() expects parameter 1 to be resource, boolean given at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#204 2016-11-17T09:00:15+00:00 –
Error PHP fopen(/mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#203 2016-11-17T09:00:15+00:00 –
Error PHP filesize(): stat failed for /mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#198 2016-11-17T09:00:15+00:00 –
Error PHP fopen(/mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#203 2016-11-17T09:00:15+00:00 –
Error PHP filesize(): stat failed for /mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#198 2016-11-17T09:00:15+00:00 –
Info admin_audit File accessed: “/var/www/cloud_nextcloud/core/img/filetypes/audio.svg” 2016-11-17T09:00:15+00:00 –
Info admin_audit File accessed: “/music/demo_SIM.mp3” 2016-11-17T09:00:15+00:00 –
Error PHP imagecreatefromstring(): Empty string or invalid image at /var/www/cloud_nextcloud/lib/private/legacy/image.php#575 2016-11-17T09:00:15+00:00 –
Error PHP fclose() expects parameter 1 to be resource, boolean given at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#205 2016-11-17T09:00:15+00:00 –
Error PHP fread() expects parameter 1 to be resource, boolean given at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#204 2016-11-17T09:00:15+00:00 –
Error PHP fopen(/mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#203 2016-11-17T09:00:15+00:00 –
Error PHP filesize(): stat failed for /mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#198 2016-11-17T09:00:15+00:00 –
Info admin_audit File accessed: “/var/www/cloud_nextcloud/core/img/filetypes/audio.svg” 2016-11-17T09:00:15+00:00 –
Info admin_audit File accessed: “/music/demo_rust-003-intro.mp3” 2016-11-17T09:00:15+00:00 –
Error PHP imagecreatefromstring(): Empty string or invalid image at /var/www/cloud_nextcloud/lib/private/legacy/image.php#575 2016-11-17T09:00:15+00:00 –
Error PHP fclose() expects parameter 1 to be resource, boolean given at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#205 2016-11-17T09:00:15+00:00 –
Error PHP fread() expects parameter 1 to be resource, boolean given at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#204 2016-11-17T09:00:15+00:00 –
Error PHP fopen(/mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#203 2016-11-17T09:00:15+00:00 –
Error PHP filesize(): stat failed for /mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg at /var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#198 2016-11-17T09:00:15+00:00 –
Info admin_audit File accessed: “/var/www/cloud_nextcloud/core/img/filetypes/audio.svg” 2016-11-17T09:00:15+00:00 –
Info admin_audit File accessed: “/music/demo_happy_child.mp3” 2016-11-17T09:00:15+00:00 -
Actually something is wrong here… why the path is /mnt/external_hdd/cloud/nextcloud_data/admin/files/var/www/cloud_nextcloud/core/img/filetypes/audio.svg
my nexcloud web folder is located here /var/www/cloud_nextcloud/ not sure why it’s adding it to the “data” folder that I specified on an external HDD which in my case is /mnt/external_hdd/cloud/nextcloud_data/.
Can anybody please let me know if it happens to their setup or it’s only me?
the issue is strange - but not related to Audio Player.
within the sharing dialog, the preview images for MP3 files are created. if your file has a cover art, this will be the logo.
if not, the /core/img/filetypes/audio.svg (the note) will be displayed.
the strange thing is, that it is somehow working because the icons are actually being displayed.
also your log says thisInfo admin_audit File accessed: "/var/www/cloud_nextcloud/core/img/filetypes/audio.svg"
are you sure that your installation is correct?
because whats strange to me is, that your error files/line,numbers don´t even have the mentioned rows.
e.g.:
/var/www/cloud_nextcloud/lib/private/Files/Storage/Local.php#205
If you use a current version (10.0.1) and your file-integrity check doesn’t return errors, your code should be fine. On github is the development version which can be different in some points.
hello,
I can´t tell you the solution. I only know that it works in my OC Testinstance on 9.1.2
the file itself does not contain any ID3 information. and the icon is being displayed in your page.
fclose() expects parameter 1 to be resource, boolean given at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/Files/Storage/Local.php#218
fread() expects parameter 1 to be resource, boolean given at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/Files/Storage/Local.php#217
Error PHP fopen(/media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/data/admin/files/media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/Files/Storage/Local.php#216 2016-12-14T19:25:45-0500
Error PHP filesize(): stat failed for /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/data/admin/files/media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/core/img/filetypes/audio.svg at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/Files/Storage/Local.php#211 2016-12-14T19:25:45-0500
Error PHP imagecreatefromstring(): Empty string or invalid image at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/legacy/image.php#597
@depawlur
I set up a NC11 to validate this.
I can confirm that I am seeing the same errors. it occurs for every MP3 where NC can not derive a cover art from the ID3.
In this case an error 500 is triggered by NC and the stock “note” icon is being displayed.
In my case I have one with a cover and 3 without.
its not related to Audio Player;
And its not influencing the Functionality of the sharing player;
…I will try to find out what the issue is because it should be corrected in NC core…