Follow-up to #5470
If you intend to fix specific Notice messages, please report back to this thread once you're done with your PR.
Undefined index: request in src/Network/Probe.php Undefined offset: 504 in addon/buffer/bufferapp.phpUndefined variable: items in src/Worker/Delivery.phpUndefined index: download_content_length in src/Util/ParseUrl.phpUndefined index: id in src/Protocol/Diaspora.phpUndefined variable: id in addon/statusnet/statusnet.phpUndefined index: download_content_length in src/Util/ParseUrl.phpUndefined index: photo in src/Protocol/ActivityPub/Receiver.phpiconv(): Wrong charset, conversion from 'MS949' to 'UTF-8//TRANSLIT' is not allowed in src/Util/ParseUrl.phpUndefined index: timezone in src/Protocol/Diaspora.phpArray to string conversion in src/Database/DBA.phpbasename() expects parameter 1 to be string, array given in src/Model/Photo.phpArray to string conversion in src/Database/DBA.phpUndefined index: host in src/Util/Network.phpUndefined index: object-type in src/Protocol/OStatus.phpUndefined variable: lang in view/php/default.phpUndefined property: stdClass::$annotation in addon/fromgplus/fromgplus.phpUndefined index: @id in src/Model/APContact.phpUndefined index: return_path in src/Module/Login.phpUndefined index: register_policy in src/Protocol/PortableContact.phpUndefined index: register_policy in src/Protocol/PortableContact.phpUndefined index: host in src/Util/Network.phpUndefined index: title in src/Content/Text/BBCode.phpTrying to get property 'instance_with_ssl' of non-object in src/Model/GContact.phpUndefined offset: 9001 in mod/admin.phpUndefined index: host in src/Util/Network.phpUndefined index: 0.9.0 in mod/admin.phpUndefined index: title in src/Content/Text/BBCode.phpUndefined index: metadata in src/Protocol/PortableContact.phpUndefined index: REMOTE_ADDR in src/Worker/GProbe.phpUndefined index: title in src/Content/Text/BBCode.phpUndefined index: info in src/Protocol/PortableContact.phpUndefined index: uri in /.../src/Protocol/OStatus.phpArray to string conversion in .../src/Content/Text/BBCode.php on line 1119Undefined index: info in /src/Protocol/PortableContact.php on line 1378Trying to get property 'status' of non-object in /addon/jappixmini/jappixmini.php on line 669Undefined offset: 1 in /var/www/friendica/src/Protocol/Email.php on line 517Reported by @AlfredSK in https://github.com/friendica/friendica/issues/5470#issuecomment-423652448 Fixed in #5936
Undefined index: request in .../src/Network/Probe.php on line 945
Undefined index: confirm in .../src/Network/Probe.php on line 946
Undefined index: notify in .../src/Network/Probe.php on line 947
Undefined index: poll in .../src/Network/Probe.php on line 948
Undefined index: photo in .../src/Network/Probe.php on line 949
Undefined index: name in .../src/Network/Probe.php on line 950
Undefined index: pubkey in .../src/Network/Probe.php on line 951
Undefined index: uid in .../include/enotify.php on line 37
Undefined index: uid in .../include/enotify.php on line 40
Undefined index: verb in .../include/enotify.php on line 476
Undefined index: otype in .../include/enotify.php on line 477
Reported by @copiis in https://github.com/friendica/friendica/issues/5470#issuecomment-423745878 Fixed in https://github.com/friendica/friendica-addons/pull/755
PHP Notice: Undefined offset: 504 in addon/buffer/bufferapp.php on line 133
Reported by @copiis in https://github.com/friendica/friendica/issues/5470#issuecomment-428870383 Fixed in https://github.com/friendica/friendica/pull/5941
PHP Notice: Undefined variable: items in src/Worker/Delivery.php on line 174
Reported by @AlfredSK in https://github.com/friendica/friendica/issues/5470#issuecomment-428893398 Fixed in #5941
Undefined index: download_content_length in .../src/Util/ParseUrl.php on line 144
Undefined variable: type in .../mod/parse_url.php on line 79
Fixed in https://github.com/friendica/friendica-addons/pull/747:
Undefined index: shortcode in .../addon/mastodoncustomemojis/mastodoncustomemojis.php on line 100
Undefined index: shortcode in .../addon/mastodoncustomemojis/mastodoncustomemojis.php on line 99
Undefined index: static_url in .../addon/mastodoncustomemojis/mastodoncustomemojis.php on line 100
Reported by @haraldh in https://github.com/friendica/friendica/issues/5470#issuecomment-429854954 Fixed in https://github.com/friendica/friendica/pull/5941
PHP Notice: Undefined index: id in src/Protocol/Diaspora.php on line 2143
Reported by @haraldh in https://github.com/friendica/friendica/issues/5470#issuecomment-429855039 Fixed by https://github.com/friendica/friendica-addons/pull/753
PHP Notice: Undefined variable: id in addon/statusnet/statusnet.php on line 661
Reported by @copiis in https://github.com/friendica/friendica/issues/5470#issuecomment-429873625 (Duplicate of https://github.com/friendica/friendica/issues/5932#issuecomment-429897149)
PHP Notice: Undefined index: download_content_length in src/Util/ParseUrl.php on line 144
The one from @haraldh in the statusnet connector had recently been fixed by me.
Nope, it appears you fixed a different notice in https://github.com/friendica/friendica-addons/pull/749, this one is still valid.
Notice: Undefined index: photo in src/Protocol/ActivityPub/Receiver.php on line 464
Stack trace:
1. {main}() index.php:0
2. Friendica\Module\Inbox::rawContent() index.php:349
3. Friendica\Protocol\ActivityPub\Receiver::processInbox() src/Module/Inbox.php:51
4. Friendica\Protocol\ActivityPub\Receiver::processActivity() src/Protocol/ActivityPub/Receiver.php:110
5. Friendica\Protocol\ActivityPub\Receiver::prepareObjectData() src/Protocol/ActivityPub/Receiver.php:288
6. Friendica\Protocol\ActivityPub\Receiver::getReceivers() src/Protocol/ActivityPub/Receiver.php:171
7. Friendica\Protocol\ActivityPub\Receiver::switchContacts() src/Protocol/ActivityPub/Receiver.php:443
8. Friendica\Protocol\ActivityPub\Receiver::switchContact() src/Protocol/ActivityPub/Receiver.php:500
PHP Notice: iconv(): Wrong charset, conversion from 'MS949' to 'UTF-8//TRANSLIT' is not allowed in src/Util/ParseUrl.php on line 191
PHP Notice: Undefined index: timezone in src/Protocol/Diaspora.php on line 3441
PHP Notice: Undefined index: timezone in src/Protocol/Diaspora.php on line 3444
I'm not sure what we can do about the iconv() error, it looks like it choked on an unsupported Korean encoding.
AFAIK you cannot catch the notice from iconv.
Then we're done here for the moment! 馃帀
PHP Notice: Array to string conversion in Database/DBA.php on line 463
Duplicate (with trace) in https://github.com/friendica/friendica/issues/5932#issuecomment-431664298
Reported by @copiis in https://github.com/friendica/friendica/issues/5911#issuecomment-431574921
PHP Warning: basename() expects parameter 1 to be string, array given in src/Model/Photo.php on line 107
PHP Warning: parse_url() expects parameter 1 to be string, array given in src/Util/Network.php on line 96
Duplicate (with trace) in https://github.com/friendica/friendica/issues/5932#issuecomment-431664298
@MrPetovan That notice indicates some deeper problem. So we should find the root of this and we shouldn't simply sanitize the function calls.
I have stack traces for those.
Notice: Array to string conversion in src/Database/DBA.php on line 463
Stack trace:
1. {main}() index.php:0
2. Friendica\Module\Magic::init() index.php:342
3. Friendica\Model\Contact::getIdForURL() src/Module/Magic.php:36
4. Friendica\Network\Probe::uri() src/Model/Contact.php:1089
5. Friendica\Protocol\ActivityPub::probeProfile() src/Network/Probe.php:338
6. Friendica\Model\APContact::getByURL() src/Protocol/ActivityPub.php:83
7. Friendica\Database\DBA::update() src/Model/APContact.php:157
8. Friendica\Database\DBA::insert() src/Database/DBA.php:1233
9. Friendica\Database\DBA::e() src/Database/DBA.php:843
10. Friendica\Database\DBA::p() src/Database/DBA.php:611
11. PDOStatement->bindParam() src/Database/DBA.php:463
Warning: basename() expects parameter 1 to be string, array given in src/Model/Photo.php on line 108
Stack trace:
1. {main}() index.php:0
2. Friendica\Module\Magic::init() index.php:342
3. Friendica\Model\Contact::getIdForURL() src/Module/Magic.php:36
4. Friendica\Network\Probe::uri() src/Model/Contact.php:1089
5. Friendica\Protocol\ActivityPub::probeProfile() src/Network/Probe.php:338
6. Friendica\Model\APContact::getByURL() src/Protocol/ActivityPub.php:83
7. Friendica\Model\Contact::updateAvatar() src/Model/APContact.php:165
8. Friendica\Model\Photo::importProfilePhoto() src/Model/Contact.php:1474
9. basename() src/Model/Photo.php:108
md5-9ebc9b937098508de4e2db4d0e5a2b03
Warning: parse_url() expects parameter 1 to be string, array given in src/Util/Network.php on line 96
Stack trace:
1. {main}() index.php:0
2. Friendica\Module\Magic::init() index.php:342
3. Friendica\Model\Contact::getIdForURL() src/Module/Magic.php:36
4. Friendica\Network\Probe::uri() src/Model/Contact.php:1089
5. Friendica\Protocol\ActivityPub::probeProfile() src/Network/Probe.php:338
6. Friendica\Model\APContact::getByURL() src/Protocol/ActivityPub.php:83
7. Friendica\Model\Contact::updateAvatar() src/Model/APContact.php:165
8. Friendica\Model\Photo::importProfilePhoto() src/Model/Contact.php:1474
9. Friendica\Util\Network::fetchUrl() src/Model/Photo.php:109
10. Friendica\Util\Network::fetchUrlFull() src/Util/Network.php:36
11. Friendica\Util\Network::curl() src/Util/Network.php:66
12. parse_url() src/Util/Network.php:96
Fixed by #5989
Ah okay, so it's magic ...
PHP Notice: Undefined index: host in src/Util/Network.php on line 358
Fixed in #6270
Mails from the worker contained these
~~~
PHP Notice: Undefined index: object-type in /.../src/Protocol/OStatus.php on line 1531
PHP Notice: Undefined property: stdClass::$parts in /.../src/Protocol/Email.php on line 118
PHP Notice: Undefined offset: 1 in /.../src/Protocol/Email.php on line 485
PHP Notice: Undefined offset: 2 in /.../src/Protocol/Email.php on line 485
PHP Notice: Undefined offset: 3 in /.../src/Protocol/Email.php on line 485
~
Fixed in #6270
PHP Notice: Undefined variable: lang in /.../view/php/default.php on line 2
Fixed in #6031
PHP Notice: Undefined property: stdClass::$annotation in addon/fromgplus/fromgplus.php on line 523
PHP Notice: Undefined index: @id in src/Model/APContact.php on line 109
Fixed in #6067
PHP Notice: Undefined index: return_path in src/Module/Login.php on line 48
Fixed by #6126
PHP Notice: Undefined index: register_policy in /home/users/zsemberi/www/friendica/src/Protocol/PortableContact.php on line 1378
Fixed by #6112
PHP Notice: Undefined index: register_policy in /home/users/zsemberi/www/friendica/src/Protocol/PortableContact.php on line 1381
Fixed by #6112
Someone didn't update their develop node to the latest.
PHP Notice: Undefined index: host in /home/users/zsemberi/www/friendica/src/Util/Network.php on line 364\n'
PHP Notice: Undefined index: return_path in /home/users/zsemberi/www/friendica/src/Module/Login.php on line 48
Duplicate of https://github.com/friendica/friendica/issues/5932#issuecomment-431827199 and https://github.com/friendica/friendica/issues/5932#issuecomment-435329950
PHP Notice: Undefined index: title in /home/users/zsemberi/www/friendica/src/Content/Text/BBCode.php on line 628
Fixed in #6270
PHP Notice: Trying to get property 'instance_with_ssl' of non-object in /friendica/src/Model/GContact.php on line 980
PHP Notice: Trying to get property 'instance_address' of non-object in /friendica/src/Model/GContact.php on line 986
PHP Notice: Trying to get property 'instance_address' of non-object in friendica/src/Model/GContact.php on line 988
Fixed in #6270
Notices for admin.php line 667:
[24-Nov-2018 00:39:56 Europe/Berlin] PHP Notice: Undefined offset: 9001 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0-1376 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0-1394-gcc22a0b5+href-otp in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0-1395 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0-1404 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0-1408 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0-1421 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0-1426 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 0.9.0-1430 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 2.1 in /var/www/html/libranet/mod/admin.php on line 667
[24-Nov-2018 00:49:44 Europe/Berlin] PHP Notice: Undefined index: 3ecdab0911e061ec569fcd616c756ece9782a71b in /var/www/html/libranet/mod/admin.php on line 667
Fixed by #6196
PHP Notice: Undefined index: host in /friendica/src/Util/Network.php on line 365
Duplicate of https://github.com/friendica/friendica/issues/5932#issuecomment-437349439
PHP Notice: Undefined index: 0.9.0 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1376 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1394-gcc22a0b5+href-otp in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1395 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1408 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1421 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1426 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1428 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1430 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1432 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1452 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1477 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 0.9.0-1524 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 2.1 in /friendica/mod/admin.php on line 667\nPHP message:
PHP Notice: Undefined index: 3ecdab0911e061ec569fcd616c756ece9782a71b in /friendica/mod/admin.php on line 667\n', referer: https://meld.de/admin/
Fixed by #6196
PHP Notice: Undefined index: title in /src/Content/Text/BBCode.php on line 629
Duplicate of https://github.com/friendica/friendica/issues/5932#issuecomment-437628471
PHP Notice: Undefined index: metadata in /friendica/src/Protocol/PortableContact.php on line 820
Fixed by #6231
PHP Notice: Undefined index: REMOTE_ADDR in /friendica/src/Worker/GProbe.php on line 38
Fixed in #6270
PHP Notice: Undefined index: title in /friendica/src/Content/Text/BBCode.php on line 629
just popped in
Duplicate of https://github.com/friendica/friendica/issues/5932#issuecomment-441475597
PHP Notice: Undefined index: info in /src/Protocol/PortableContact.php on line 1378
PHP Notice: Undefined index: register_policy in /src/Protocol/PortableContact.php on line 1381
PHP Notice: Undefined index: platform in /src/Protocol/PortableContact.php on line 1386
Fixed in #6270
Split from https://github.com/friendica/friendica/issues/5932#issuecomment-432092510
PHP Notice: Undefined index: uri in /.../src/Protocol/OStatus.php on line 1938
PHP Notice: Undefined index: body in /.../src/Protocol/OStatus.php on line 1941
PHP Notice: Undefined index: title in /.../src/Protocol/OStatus.php on line 1943
PHP Notice: Undefined index: guid in /.../src/Protocol/OStatus.php on line 1952
PHP Notice: Undefined index: id in /.../src/Protocol/OStatus.php on line 1955
PHP Notice: Undefined index: created in /.../src/Protocol/OStatus.php on line 1961
PHP Notice: Undefined index: edited in /.../src/Protocol/OStatus.php on line 1962
@annando, what should happen if the above array indices are missing in OStatus::entryContent (line numbers are invalid now)?
Moved to https://github.com/friendica/friendica/issues/6338#issuecomment-455785854
Some array to string conversion:
PHP Notice: Array to string conversion in .../src/Content/Text/BBCode.php on line 1119
PHP Notice: Undefined index: info in /src/Protocol/PortableContact.php on line 1378
PHP Notice: Undefined index: register_policy in /src/Protocol/PortableContact.php on line 1381
PHP Warning: constant(): Couldn't find constant in /src/Protocol/PortableContact.php on line 1381
PHP Notice: Undefined index: platform in /src/Protocol/PortableContact.php on line 1386
Fixed in #6323
PHP Notice: Uninitialized string offset: 0 in /src/Worker/Notifier.php on line 148
Moved to https://github.com/friendica/friendica/issues/6338#issuecomment-450430705
PHP Notice: Trying to get property 'status' of non-object in /addon/jappixmini/jappixmini.php on line 669
Fixed in https://github.com/friendica/friendica-addons/pull/785
PHP Notice: Uninitialized string offset: 0 in /src/Worker/Notifier.php on line 148
Same question as https://github.com/friendica/friendica/issues/5911#issuecomment-450002696, what version were you on when this notice showed up?
Latest Develop
Ping @annando https://github.com/friendica/friendica/issues/5932#issuecomment-447552289
From #6443 by @AndyHee
PHP Notice: Undefined offset: 1 in /var/www/friendica/src/Protocol/Email.php on line 517 PHP Notice: Undefined offset: 8 in /var/www/friendica/src/Protocol/Email.php on line 548 PHP Notice: Undefined offset: 0 in /var/www/friendica/src/Protocol/Email.php on line 578 PHP Notice: Undefined offset: 0 in /var/www/friendica/src/Protocol/Email.php on line 590
Closed for release, next release thread is #6338
Most helpful comment
Fixed by #6231