PHP error occurred when editing text
Steps to reproduce
1.Create new text file or Open existing text file. 2.Edit a little 3.View administrator logging of the settings.
Expected behaviour
No error is output.
Actual behaviour
An error is output by PHP and files-texteditor. *This did not occur before ver.12.0.2.
Server configuration
Operating system: CentOS 7.3 Web server: nginx 1.11.13 Database: MariaDB 5.5.56 PHP version: 7.1.9 Nextcloud version: (see Nextcloud admin page) 12.0.3 Where did you install Nextcloud from: I downloaded the source from nextcloud.com.
List of activated apps:
- activity: 2.5.2
- admin_audit: 1.2.0
- apporder: 0.4.0
- bruteforcesettings: 1.0.2
- calendar: 1.5.5
- comments: 1.2.0
- contacts: 1.5.3
- dav: 1.3.0
- deck: 0.2.2
- encryption: 1.6.0
- federatedfilesharing: 1.2.0
- federation: 1.2.0
- files: 1.7.2
- files_automatedtagging: 1.2.2
- files_clipboard: 0.6.4
- files_external: 1.3.0
- files_pdfviewer: 1.1.1
- files_sharing: 1.4.0
- files_texteditor: 2.4.1
- files_trashbin: 1.2.0
- files_versions: 1.5.0
- files_videoplayer: 1.1.0
- gallery: 17.0.0
- logreader: 2.0.0
- lookup_server_connector: 1.0.0
- mail: 0.7.3
- nextcloud_announcements: 1.1
- notes: 2.3.1
- notifications: 2.0.0
- oauth2: 1.0.5
- password_policy: 1.2.2
- provisioning_api: 1.2.0
- ransomware_protection: 1.0.4
- richdocuments: 1.12.34
- serverinfo: 1.2.0
- sharebymail: 1.2.0
- sharepoint: 1.0.2
- survey_client: 1.0.0
- systemtags: 1.2.0
- tasks: 0.9.5
- theming: 1.3.0
- twofactor_backupcodes: 1.1.1
- updatenotification: 1.2.0
- workflowengine: 1.2.0
Disabled:
- bookmarks
- firstrunwizard
- user_external
- user_ldap
Nextcloud configuration:
<?php
$CONFIG = array (
'instanceid' => 'oc91??????',
'passwordsalt' => 'PASSWORDSALT',
'secret' => 'SECRET',
'trusted_domains' =>
array (
0 => 'MY-DOMAIN',
),
'datadirectory' => '/NEXTCLOUD/data',
'overwrite.cli.url' => 'https://MY-DOMAIN',
'dbtype' => 'mysql',
'version' => '12.0.3.3',
'dbname' => 'NC-DB',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'NC-DBUSER',
'dbpassword' => 'DBPASSWORD',
'installed' => true,
'log_type' => 'owncloud',
'logfile' => 'nextcloud.log',
'loglevel' => 3,
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'password' => 'PASSWORD',
),
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpsecure' => 'ssl',
'mail_from_address' => 'MAILNAME',
'mail_domain' => 'MAILDOMAIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.MAILDOMAIN',
'mail_smtpport' => '465',
'mail_smtpname' => 'MAILADDRESS',
'mail_smtppassword' => 'MAILPASSWORD',
'maintenance' => false,
'auth.bruteforce.protection.enabled' => false,
'versions_retention_obligation' => '7,auto',
'trashbin_retention_obligation' => 'auto',
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
3 => 'OC\\Preview\\BMP',
4 => 'OC\\Preview\\XBitmap',
5 => 'OC\\Preview\\MP3',
6 => 'OC\\Preview\\TXT',
7 => 'OC\\Preview\\MarkDown',
),
'defaultapp' => 'mail',
);
Client configuration
Browser: Firefox or Vivaldi Operating system: Windows 10 64bit Pro/Home
Logs
Nextcloud log (data/owncloud.log)
Error | files_texteditor | File: /Notes/SAMPLE.txt modified since opening.
Error | PHP | call_user_func() expects parameter 1 to be a valid callback, class 'OCA\Richdocuments\Storage' not found at /NEXTCLOUD/lib/private/legacy/hook.php#106
(*The following may not be related)
Error | appstoreFetcher | GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
> Error | files_texteditor | File: /Notes/SAMPLE.txt modified since opening.
This is a considerable amount in a row. Perhaps there is an automatic save.
What do you mean by "3.View administrator logging of the settings."? Do you mean "View the log file"?
"OCA\Richdocuments\Storage" sounds like a handler for rich text documents (.rtf). I wonder, why such a special handler is used...
Why do you have 'log_type' => 'owncloud' in your config.php?
And how can it be, that you have 'logfile' => 'nextcloud.log' in your config.php, but then below you write "data/owncloud.log"?
Sorry for asking all these questions, they are just for clarification. Disclaimer: I am not yet familiar with the texteditor code.
I have updated to Nextcloud 13.0.2 now. Now the above error hasn't occurred.