Please report here any PHP Warning message obtained running the 2021.01 stable or 2021.03-dev versions.
Warning: htmlspecialchars() expects parameter 1 to be string, array given in .../friendica-full-2021.01/view/smarty3/compiled/b48688150f6f0a40e7c2daa2c7945be70015666d_2.file.filebrowser.tpl.php on line 44
Probably related to the latest changes to oembed:
DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 180 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): Tag svg invalid in Entity, line: 232 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): Tag defs invalid in Entity, line: 233 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): Tag mask invalid in Entity, line: 234 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): Tag path invalid in Entity, line: 236 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): Tag main invalid in Entity, line: 240 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): Tag aside invalid in Entity, line: 244 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): Tag section invalid in Entity, line: 306 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): ID photo-edit-link-wrap already defined in Entity, line: 413 in ..../src/Content/OEmbed.php on line 102
DOMDocument::loadHTML(): Tag footer invalid in Entity, line: 452 in ..../src/Content/OEmbed.php on line 102
2021.03-dev PHP 7.4
Addressed in #9949
Just in case it is important. My node setting (site > policies) for oembed...
☑️ No OEmbed rich content
Allowed OEmbed domains (exceptions):
soundcloud.com, m.soundcloud.com, vimeo.com,
PHP Warning: DOMDocument::loadHTML(): Tag path invalid in Entity, line: 1192 /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 1271 /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 1283 /src/Content/OEmbed.php on line 102
Addressed in #9949
today git pull
PHP Warning: DOMDocument::loadHTML(): Tag nav invalid in Entity, line: 565 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag header invalid in Entity, line: 567 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag time invalid in Entity, line: 755 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag main invalid in Entity, line: 799 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag article invalid in Entity, line: 884 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag header invalid in Entity, line: 885 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag figure invalid in Entity, line: 893 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag figcaption invalid in Entity, line: 897 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag time invalid in Entity, line: 927 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag figure invalid in Entity, line: 963 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag figcaption invalid in Entity, line: 967 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: expecting ';' in Entity, line: 1019 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag footer invalid in Entity, line: 1057 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Tag section invalid in Entity, line: 1058 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1133 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1156 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : h2 in Entity, line: 1183 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : span in Entity, line: 1183 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1192 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 1192 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : script in Entity, line: 1206 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : section in Entity, line: 1228 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : footer in Entity, line: 1229 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : main in Entity, line: 1229 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : div in Entity, line: 1231 in /src/Content/OEmbed.php on line 102
PHP Warning: DOMDocument::loadHTML(): Unexpected end tag : div in Entity, line: 1232 in /src/Content/OEmbed.php on line 102
Addressed in #9949
[09-Mar-2021 14:21:36 Europe/Amsterdam] PHP Warning: mysqli_stmt::free_result(): Couldn't fetch mysqli_stmt in /var/http/src/Database/Database.php on line 1607
[09-Mar-2021 14:21:36 Europe/Amsterdam] PHP Warning: mysqli_stmt::close(): Couldn't fetch mysqli_stmt in /var/http/src/Database/Database.php on line 1608
@utzer this is no PHP warning, but a warning in the friendica log. This issue here is only for php warnings.
Sorry, my bad. The first is a php warning, the second is something else.
It seams that someone performed a pentest against my instance which caused PHP warnings and notices:
PHP Warning: preg_match() expects parameter 2 to be string, array given in /src/Core/L10n.php on line 191
PHP Notice: Array to string conversion in /src/Core/L10n.php on line 140
PHP Notice: Array to string conversion in /src/Core/L10n.php on line 145
request: "GET /index.php?setLang=vuln-test&lang[vuln-test][file]=../../../../../../../../../../../../etc/passwd
PHP Warning: file_exists() expects parameter 1 to be a valid path, string given in /src/Core/L10n.php on line 140
PHP Warning: file_exists() expects parameter 1 to be a valid path, string given in /src/Core/L10n.php on line 145
request: "GET /cms/?lang=../../../../../../../../../etc/passwd%00.png&p_id=60
Just got this after replying to an e-mail:
PHP Notice: Trying to access array offset on value of type bool in
/misc/www/friendica/src/Protocol/ActivityPub/Transmitter.php on line 890
That came from a worker.
Am consistently getting this when I send e-mail, but the recipient IS receiving the e-mail:
PHP Notice: Trying to access array offset on value of type bool in
/misc/www/friendica/src/Protocol/ActivityPub/Transmitter.php on line 890
PHP Notice: Undefined index: src in /src/Content/OEmbed.php on line 194
PHP Notice: Undefined index: width in /src/Content/OEmbed.php on line 195
PHP Notice: Undefined index: height in /src/Content/OEmbed.php on line 196
PHP Warning: key() expects parameter 1 to be array, string given in src/Util/JsonLD.php on line 183
Addressed in #10084