NC11 too many errors post installation..................Help

Hi all,

Just updated to NC 11, and it’s working good.
However, there are some error that occurred.

Server’s Info:
System: Debian Jessie
PHP 5.6
Nginx
MySQL 5.5

Enabled:
  - activity: 2.4.1
  - admin_audit: 1.1.0
  - announcementcenter: 3.0.0
  - audioplayer: 1.3.1
  - comments: 1.1.0
  - dav: 1.1.1
  - direct_menu: 0.9.3
  - external: 1.2
  - federatedfilesharing: 1.1.1
  - federation: 1.1.1
  - files: 1.6.1
  - files_accesscontrol: 1.1.2
  - files_external: 1.1.2
  - files_pdfviewer: 1.0.1
  - files_retention: 1.0.1
  - files_sharing: 1.1.1
  - files_texteditor: 2.2
  - files_trashbin: 1.1.0
  - files_versions: 1.4.0
  - files_videoplayer: 1.0.0
  - firstrunwizard: 2.0
  - folderplayer: 0.0.7
  - gallery: 16.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.0
  - notes: 2.1.0
  - notifications: 1.0.1
  - password_policy: 1.1.0
  - provisioning_api: 1.1.0
  - serverinfo: 1.1.1
  - sharebymail: 1.0.1
  - spreed: 1.1.2
  - systemtags: 1.1.3
  - templateeditor: 0.2
  - theming: 1.1.1
  - twofactor_backupcodes: 1.0.0
  - updatenotification: 1.1.1
  - workflowengine: 1.1.1
Disabled:
  - documents
  - encryption
  - files_antivirus
  - files_automatedtagging
  - spreedme
  - survey_client
  - user_external
  - user_ldap
  - user_saml

:

Error	PHP	Undefined index: turnServerProtocols at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/apps/spreed/templates/settings-admin.php#41	2016-12-13T19:45:05-0500

Error	PHP	Undefined index: turnServerProtocols at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/apps/spreed/templates/settings-admin.php#38	2016-12-13T19:45:05-0500

Error	PHP	Undefined index: turnServerProtocols at /media/54bf67db-da31-4c50-bb3c-
27140944b223/www/nextcloud/apps/spreed/templates/settings-admin.php#35	2016-12-13T19:45:04-0500


 Error	PHP	imagecreatefromstring(): Empty string or invalid image at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/legacy/image.php#597	2016-12-13T20:28:56-0500
Error	PHP	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	2016-12-13T20:28:56-0500
Error	PHP	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	2016-12-13T20:28:56-0500
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-13T20:28:56-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-13T20:28:56-0500
Error	PHP	imagecreatefromstring(): Empty string or invalid image at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/legacy/image.php#597	2016-12-13T20:28:56-0500
Error	PHP	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	2016-12-13T20:28:56-0500
Error	PHP	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	2016-12-13T20:28:56-0500
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-13T20:28:56-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-13T20:28:56-0500
Error	PHP	imagecreatefromstring(): Empty string or invalid image at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/legacy/image.php#597	2016-12-13T20:28:55-0500
Error	PHP	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	2016-12-13T20:28:55-0500
Error	PHP	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	2016-12-13T20:28:55-0500
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-13T20:28:55-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-13T20:28:55-0500
Error	PHP	imagecreatefromstring(): Empty string or invalid image at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/legacy/image.php#597	2016-12-13T20:28:55-0500
Error	PHP	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	2016-12-13T20:28:55-0500
Error	PHP	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	2016-12-13T20:28:55-0500
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-13T20:28:55-0500
Error	PHP	filesize(): stat failed for /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/data/user1/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-13T20:28:55-0500
Error	PHP	imagecreatefromstring(): Empty string or invalid image at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/legacy/image.php#597	2016-12-13T20:28:55-0500
Error	PHP	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	2016-12-13T20:28:55-0500
Error	PHP	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	2016-12-13T20:28:55-0500
Error	PHP	fopen(/media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/data/user1/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

I’m continue receiving these error messages in my log.
Need help, please.

       fwrite() expects parameter 2 to be string, array given at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php#230

    stream_get_contents() expects parameter 2 to be long, string given at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/3rdparty/sabre/http/lib/Message.php#81

    imagecreatefromstring(): Empty string or invalid image at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/lib/private/legacy/image.php#597

 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

On my fresh installation of NC 11 on Ubuntu 16.04, those apps don’t work:
(please click on the links below to see a detailled description of the errors)

@tx7, are they working on your installation?

Do you have the Nosniff & SAMEORIGIN warnings as well?

Can you save the cronjob settings?

The first 3 errors with “turnServerProtocols” are related to a known bug in the spreed app. See my issue here, where you will also find the related github issue with fix. I applied the fix (changes in files) manually and the errors are gone for me. So the next version of spreed app should solve it. (There are also other problems described in my topic, which are independent and browser related)

The following errors are related to this topic and also already forwarded to github. As long as it is not yet fixed I mentioned some workaround in the link. You have to exclude mp3 files from the preview generation to get rid of the error messages, see my answers in the linked topic for this. Of course this will also prevent the previously well shown mp3 previews, but I guess you could live with this, until the bug is fixed by the developers ;).

@MichaIng, i guess you mean the errors of @tx7, not my ones, don’t you?

I don’t have Spreed installed and the audioplayer seems to work fine.

Yes that was related to @tx7, sorry yours appeared while I was writing.

As I am not using Mail and Keeweb apps, I can not say something about that. I will try later if picture upload in gallery app works for me. Always did that via webdav so far ;).

Does this mean it is not working for you as well @MichaIng?

I had fixed the “turnServerProtocols” errors.
I don’t want disable the mp3 thumbnail.
The album cover is there for a reason.

I got this error while uploading a movie in the Share folder:
fwrite(): send of 8192 bytes failed with errno=32 Broken pipe at /media/54bf67db-da31-4c50-bb3c-27140944b223/www/nextcloud/apps/files_antivirus/lib/scanner.php#90

@Sanook,

I don’t use Mail or Keeweb.
The Gallery is working for me.

Another issue that I just found is the upload timing in the status bar is incorrect.
My movie is 4.39GB, and it saying 3 seconds left…
However, after 3 seconds, it changed to 5 seconds, and it keep change it back and forth.

The best way is probably to disable apps that are not working and report to each app possible errors.

This is probably something to be reported to the bugtracker, there shouldn’t be an issue with the antivirus-code if you haven’t enabled this app.
This fix is linked with similar error messages, and the fix didn’t make it into Nextcloud:

I checked out that link, that Antivirus fixes don’t work on NC11.

The old solution is to remove the quote around the 0 from the previous NC/OC, and it worked.
But not on NC11.

From
$qb->expr()->neq('fc.size', $qb->expr()->literal('0'))

to

$qb->expr()->neq('fc.size', $qb->expr()->literal(0))

Can you please create a bugreport on github?

I already did.