-
Notifications
You must be signed in to change notification settings - Fork 279
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
TypeError: htmlspecialchars() expects parameter 1 to be string, int given #2727
Comments
Same issue here, hope that someone can solve this issue. I have the same errors as shown above. |
@kesselb maybe you have and idea? |
cc @nextcloud/server-triage |
@nickvergessen seems activity related |
Do you have numeric userids? |
Thanks for the reply!
No, I don't. Any other idea? |
Feel free to delete the names again. I will find it out tomorrow |
Does this happen regularly for anyone or one time thing? In if (isset($parameter['link'])) { before add: if (!is_string($replacement)) {
\OC::$server->getLogger()->error("App {$event->getApp()} has activity with non-string placeholder $placeholder", [
'app' => 'server-24434',
]);
} check your log for |
Thanks for the fast resolution!
It happens regularly. I've applied the logger and this was the new log message:
Installed is Deck 1.2.3 |
@nickvergessen should I report this to the Deck repository? |
So the problem is deck/lib/Activity/ActivityManager.php Lines 402 to 405 in 199cccf
Which leaves the original stack/list id as |
Patch is at https://github.com/nextcloud/deck/pull/2729/files Feel free to try it |
I've applied the fix. We'll see tomorrow if it works, thanks! |
The please apply #2727 (comment) as your issue might be a different app. |
The error message hasn't come up again since I've applied the fix but I'm not sure if it works since I didn't get any summary mail since then which seems a bit strange to me. |
It's only attempted once a day |
Yes but I've applied the fix ~45h ago... |
Unfortunately the error returned. I've applied the logger from #2727 (comment) again and now get this message again:
Deck is now at version 1.2.4 on my NC20 instance. |
Sry, but the new issue is not excactly the same: it is now called:
|
@szaimen I see this error in 22.2.3 as well. Maybe this should be a new issue since it's a different error? |
How to use GitHub
Steps to reproduce
Don't know how to reproduce exactly. Most likely it has to do with the cronjob that tries to send activity mails.
Expected behaviour
No error report in the logs
(and an activity mail should be send)
Actual behaviour
error report in the logs
Server configuration detail
Operating system: Linux 5.4.0-54-generic nextcloud/server#60-Ubuntu SMP Fri Nov 6 10:37:59 UTC 2020 x86_64
Webserver: Apache (fpm-fcgi)
Database: pgsql PostgreSQL 12.5 (Ubuntu 12.5-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 64-bit
PHP version:
7.4.3
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, cgi-fcgi, json, apcu, igbinary, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, redis, ldap, exif, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, readline, shmop, SimpleXML, smbclient, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, libsmbclient, Zend OPcache
Nextcloud version: 20.0.2 - 20.0.2.2
Updated from an older Nextcloud/ownCloud or fresh install: Updated from 20.0.1
Where did you install Nextcloud from: Nextcloud VM
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: local
Are you using encryption: No
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.47
Operating system: As shown in the Browser useragent
Logs
Web server error log
Nextcloud log
Browser log
Insert your browser log here, this could for example include:
The text was updated successfully, but these errors were encountered: