2018.08-dev
git
PHP 7.0.30
10.0.34-MariaDB
I tried to filter my PHP log to get sorted and unique lines. Unfortunately I pulled today from develop. So maybe some entries are duplicates because the line numbers have changed.
Here it comes: :-)
Undefined index: account-type in .../src/Protocol/OStatus.php on line 1411
Undefined index: addr in .../mod/message.php on line 491
Undefined index: addr in .../src/Protocol/DFRN.php on line 745
Undefined index: adjust in .../src/Model/Event.php on line 38
Undefined index: adjust in .../src/Model/Event.php on line 43
Undefined index: adjust in .../src/Model/Event.php on line 70
Undefined index: adjust in .../src/Model/Event.php on line 76
Undefined index: album in .../mod/videos.php on line 375
Undefined index: album in .../mod/videos.php on line 385
Undefined index: allow_api in .../addon/xmpp/xmpp.php on line 97
Undefined index: attach in .../src/Protocol/OStatus.php on line 1375
Undefined index: author-avatar in .../src/Protocol/Diaspora.php on line 3540
Undefined index: author-name in .../src/Protocol/Diaspora.php on line 3540
Undefined index: body in .../src/Protocol/OStatus.php on line 1166
Undefined index: contact_allow in .../mod/events.php on line 136
Undefined index: contact_deny in .../mod/events.php on line 138
Undefined index: desc in .../src/Model/Event.php on line 81
Undefined index: description in .../mod/parse_url.php on line 37
Undefined index: finish in .../src/Model/Event.php on line 44
Undefined index: frio_background_color in .../view/theme/frio/config.php on line 22
Undefined index: frio_background_image in .../view/theme/frio/config.php on line 24
Undefined index: frio_bg_image_option in .../view/theme/frio/config.php on line 25
Undefined index: frio_contentbg_transp in .../view/theme/frio/config.php on line 23
Undefined index: frio_link_color in .../view/theme/frio/config.php on line 21
Undefined index: frio_nav_bg in .../view/theme/frio/config.php on line 19
Undefined index: frio_nav_icon_color in .../view/theme/frio/config.php on line 20
Undefined index: group_allow in .../mod/events.php on line 135
Undefined index: group_deny in .../mod/events.php on line 137
Undefined index: guid in .../src/Protocol/OStatus.php on line 1929
Undefined index: hashtags in .../src/Object/Post.php on line 345
Undefined index: host in .../src/Protocol/Diaspora.php on line 1271
Undefined index: HTTP_IF_NONE_MATCH in .../mod/proxy.php on line 38
Undefined index: language in .../include/enotify.php on line 31
Undefined index: mentions in .../src/Object/Post.php on line 346
Undefined index: name in .../src/Model/Profile.php on line 137
Undefined index: name in .../src/Protocol/DFRN.php on line 743
Undefined index: notify_flags in .../include/enotify.php on line 531
Undefined index: page_flags in .../src/Content/Nav.php on line 189
Undefined index: page-flags in .../src/Protocol/DFRN.php on line 2147
Undefined index: page-flags in .../src/Protocol/DFRN.php on line 2154
Undefined index: photo in .../src/Protocol/DFRN.php on line 755
Undefined index: photo in .../src/Protocol/DFRN.php on line 763
Undefined index: plink in .../src/Protocol/Diaspora.php on line 3541
Undefined index: post-type in .../mod/editpost.php on line 114
Undefined index: profile_uid in .../mod/display.php on line 301
Undefined index: resource-id in .../mod/videos.php on line 379
Undefined index: scheme in .../src/Protocol/Diaspora.php on line 1271
Undefined index: source_link in .../include/enotify.php on line 580
Undefined index: source_name in .../include/enotify.php on line 579
Undefined index: source_photo in .../include/enotify.php on line 581
Undefined index: superblock in .../addon/superblock/superblock.php on line 142
Undefined index: tag in .../src/Model/Item.php on line 2787
Undefined index: tag in .../src/Model/Item.php on line 2796
Undefined index: tags in .../mod/parse_url.php on line 41
Undefined index: tags in .../src/Object/Post.php on line 344
Undefined index: title in .../mod/parse_url.php on line 33
Undefined index: title in .../src/Protocol/OStatus.php on line 1920
Undefined index: to_name in .../include/enotify.php on line 583
Undefined index: uid in .../include/conversation.php on line 487
Undefined index: uid in .../include/enotify.php on line 582
Undefined index: uid in .../include/enotify.php on line 647
Undefined index: uid in .../mod/display.php on line 297
Undefined index: uid in .../mod/display.php on line 324
Undefined index: uid in .../mod/display.php on line 326
Undefined index: uid in .../mod/ping.php on line 111
Undefined index: uid in .../src/Model/Profile.php on line 156
Undefined index: uid in .../src/Object/Thread.php on line 66
Undefined index: url in .../mod/proxy.php on line 360
Undefined index: url in .../src/Model/User.php on line 733
Undefined index: url in .../src/Protocol/DFRN.php on line 744
Undefined index: url in .../src/Protocol/Diaspora.php on line 1391
Undefined index: user in .../mod/events.php on line 38
Undefined index: verb in .../src/Core/NotificationsManager.php on line 276
Undefined index: wall in .../mod/editpost.php on line 113
I think this needs updating after my patches went through. :-)
Okay
PHP Notice: Undefined index: body in /home/users/zsemberi/www/friendica/src/Model/Item.php on line 2230
PHP Notice: Undefined index: body in /home/users/zsemberi/www/friendica/src/Model/Item.php on line 2230
PHP Notice: getimagesizefromstring(): Read error! in /home/users/zsemberi/www/friendica/src/Object/Image.php on line 789
PHP Notice: Undefined index: description in /home/users/zsemberi/www/friendica/addon/tumblr/tumblr.php on line 417
I guess more stuff for me to fix. :laughing:
PHP Notice: Only variables should be passed by reference in /home/users/zsemberi/www/friendica/src/Protocol/PortableContact.php on line 1690
[Error message moved to #5707]
The last one is a network error, there's little we can do about it except catch it maybe.
Update on my list after commit 3e5f8ee70a9183b918382b835bf4707763a23c09
Undefined index: account-type in .../src/Protocol/OStatus.php on line 1411
Undefined index: addr in .../mod/message.php on line 491
Undefined index: addr in .../src/Protocol/DFRN.php on line 745
Undefined index: adjust in .../src/Model/Event.php on line 38
Undefined index: adjust in .../src/Model/Event.php on line 43
Undefined index: adjust in .../src/Model/Event.php on line 70
Undefined index: adjust in .../src/Model/Event.php on line 76
Undefined index: album in .../mod/videos.php on line 375
Undefined index: album in .../mod/videos.php on line 385
Undefined index: allow_api in .../addon/xmpp/xmpp.php on line 97
Undefined index: attach in .../src/Protocol/OStatus.php on line 1375
Undefined index: author-avatar in .../src/Protocol/Diaspora.php on line 3540
Undefined index: author-name in .../src/Protocol/Diaspora.php on line 3540
Undefined index: body in .../src/Protocol/OStatus.php on line 1166
Undefined index: contact_allow in .../mod/events.php on line 136
Undefined index: contact_deny in .../mod/events.php on line 138
Undefined index: desc in .../src/Model/Event.php on line 81
Undefined index: description in .../mod/parse_url.php on line 37
Undefined index: finish in .../src/Model/Event.php on line 44
Undefined index: frio_background_color in .../view/theme/frio/config.php on line 22
Undefined index: frio_background_image in .../view/theme/frio/config.php on line 24
Undefined index: frio_bg_image_option in .../view/theme/frio/config.php on line 25
Undefined index: frio_contentbg_transp in .../view/theme/frio/config.php on line 23
Undefined index: frio_link_color in .../view/theme/frio/config.php on line 21
Undefined index: frio_nav_bg in .../view/theme/frio/config.php on line 19
Undefined index: frio_nav_icon_color in .../view/theme/frio/config.php on line 20
Undefined index: group_allow in .../mod/events.php on line 135
Undefined index: group_deny in .../mod/events.php on line 137
Undefined index: guid in .../src/Protocol/OStatus.php on line 1929
Undefined index: hashtags in .../src/Object/Post.php on line 345
Undefined index: host in .../src/Protocol/Diaspora.php on line 1271
Undefined index: HTTP_IF_NONE_MATCH in .../mod/proxy.php on line 38
Undefined index: in .../mod/photos.php on line 1275
Undefined index: in .../mod/photos.php on line 1276
Undefined index: _ in .../mod/ping.php on line 350
Undefined index: language in .../include/enotify.php on line 31
Undefined index: mentions in .../src/Object/Post.php on line 346
Undefined index: name in .../src/Model/Profile.php on line 137
Undefined index: name in .../src/Protocol/DFRN.php on line 743
Undefined index: notify_flags in .../include/enotify.php on line 531
Undefined index: page_flags in .../src/Content/Nav.php on line 189
Undefined index: page-flags in .../src/Protocol/DFRN.php on line 2147
Undefined index: page-flags in .../src/Protocol/DFRN.php on line 2154
Undefined index: photo in .../src/Protocol/DFRN.php on line 755
Undefined index: photo in .../src/Protocol/DFRN.php on line 763
Undefined index: plink in .../src/Protocol/Diaspora.php on line 3541
Undefined index: post-type in .../mod/editpost.php on line 114
Undefined index: profile_uid in .../mod/display.php on line 301
Undefined index: resource-id in .../mod/videos.php on line 379
Undefined index: scheme in .../src/Protocol/Diaspora.php on line 1271
Undefined index: source_link in .../include/enotify.php on line 580
Undefined index: source_name in .../include/enotify.php on line 579
Undefined index: source_photo in .../include/enotify.php on line 581
Undefined index: superblock in .../addon/superblock/superblock.php on line 142
Undefined index: tag in .../src/Model/Item.php on line 2787
Undefined index: tag in .../src/Model/Item.php on line 2796
Undefined index: tags in .../mod/parse_url.php on line 41
Undefined index: tags in .../src/Object/Post.php on line 344
Undefined index: title in .../mod/parse_url.php on line 33
Undefined index: title in .../src/Protocol/OStatus.php on line 1920
Undefined index: to_name in .../include/enotify.php on line 583
Undefined index: uid in .../include/conversation.php on line 487
Undefined index: uid in .../include/enotify.php on line 582
Undefined index: uid in .../include/enotify.php on line 647
Undefined index: uid in .../mod/display.php on line 297
Undefined index: uid in .../mod/display.php on line 324
Undefined index: uid in .../mod/display.php on line 326
Undefined index: uid in .../mod/ping.php on line 111
Undefined index: uid in .../src/Model/Profile.php on line 156
Undefined index: uid in .../src/Object/Thread.php on line 66
Undefined index: url in .../mod/proxy.php on line 360
Undefined index: url in .../src/Model/User.php on line 733
Undefined index: url in .../src/Protocol/DFRN.php on line 744
Undefined index: url in .../src/Protocol/Diaspora.php on line 1391
Undefined index: user in .../mod/events.php on line 38
Undefined index: verb in .../src/Core/NotificationsManager.php on line 276
Undefined index: wall in .../mod/editpost.php on line 113
The missing "index" names are no 'cut' error or something. It really looks that way in the log (empty name or just an underscore).
PHP Notice: Undefined index: width in /home/users/zsemberi/www/friendica/include/items.php on line 72
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/dwpost/dwpost.php on line 140
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/ijpost/ijpost.php on line 139
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/ljpost/ljpost.php on line 134
PHP Warning: Use of undefined constant CONTACT_IS_FRIEND - assumed 'CONTACT_IS_FRIEND' (this will throw an Error in a future version of PHP) in /home/users/zsemberi/www/friendica/addon/twitter/twitter.php on line 1032
PHP Notice: exif_imagetype(): Read error! in /home/users/zsemberi/www/friendica/addon/twitter/twitter.php on line 1184
PHP Warning: Use of undefined constant cnt - assumed 'cnt' (this will throw an Error in a future version of PHP) in /home/users/zsemberi/www/friendica/src/Protocol/Diaspora.php on line 3542
Hey, ich komme mit dem Fixen nicht mehr hinterher. ;-) Nein, mach' gerne weiter. Danke. Aber manchmal stimmen auch die Zeilennummern nicht mehr. Dann suche ich immer etwas drum herum.
https://github.com/friendica/friendica/issues/5470#issuecomment-407688980 <-- $data is an array but discoverServerUsers() treats it like stdClass. With newer PHP versions this wrong mixture is no longer supported and trigger that error. PR is coming up.
I guess the same "fate' with discoverServer()?
Oh, $server is only a copy of $r[0] in discoverSingleServer(). Maybe rewrite this @MrPetovan @annando ?
PHP Notice: Undefined index: attach in /home/users/zsemberi/www/friendica/src/Protocol/DFRN.php on line 2374
PHP Notice: Undefined index: attach in /home/users/zsemberi/www/friendica/src/Protocol/DFRN.php on line 2378
PHP Notice: Undefined index: description in /home/users/zsemberi/www/friendica/addon/tumblr/tumblr.php on line 417
PHP Parse error: syntax error, unexpected ';', expecting ',' or ')' in /home/users/zsemberi/www/friendica/src/Protocol/PortableContact.php on line 1547
Sorry about that: https://github.com/friendica/friendica/pull/5515
PHP Notice: exif_imagetype(): Read error! in /home/users/zsemberi/www/friendica/addon/twitter/twitter.php on line 1184
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/dwpost/dwpost.php on line 140
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/ijpost/ijpost.php on line 139
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/ljpost/ljpost.php on line 134
PHP Notice: Undefined index: width in /home/users/zsemberi/www/friendica/include/items.php on line 72
That is odd, that there is no 'width' array element ..
PHP Notice: Undefined index: event in /home/users/zsemberi/www/friendica/include/enotify.php on line 362
PHP Notice: Undefined variable: subject in /home/users/zsemberi/www/friendica/include/enotify.php on line 407
PHP Notice: Undefined variable: preamble in /home/users/zsemberi/www/friendica/include/enotify.php on line 412
PHP Notice: Undefined variable: epreamble in /home/users/zsemberi/www/friendica/include/enotify.php on line 413
PHP Notice: Undefined variable: sitelink in /home/users/zsemberi/www/friendica/include/enotify.php on line 415
PHP Notice: Undefined variable: tsitelink in /home/users/zsemberi/www/friendica/include/enotify.php on line 416
PHP Notice: Undefined variable: hsitelink in /home/users/zsemberi/www/friendica/include/enotify.php on line 417
PHP Notice: Undefined variable: itemlink in /home/users/zsemberi/www/friendica/include/enotify.php on line 418
PHP Notice: Undefined index: verb in /home/users/zsemberi/www/friendica/include/enotify.php on line 459
PHP Notice: Undefined index: otype in /home/users/zsemberi/www/friendica/include/enotify.php on line 460
PHP Notice: Undefined index: link in /home/users/zsemberi/www/friendica/include/enotify.php on line 504
PHP Notice: Undefined index: notify_flags in /home/users/zsemberi/www/friendica/include/enotify.php on line 531
[Error message moved to #5707]
PHP Notice: exif_imagetype(): Read error! in /home/users/zsemberi/www/friendica/addon/twitter/twitter.php on line 1184
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/dwpost/dwpost.php on line 140
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/ijpost/ijpost.php on line 139
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/ljpost/ljpost.php on line 134
PHP Notice: Undefined index: HTTP_IF_NONE_MATCH in /home/users/zsemberi/www/friendica/src/Module/Proxy.php on line 51n'
PHP message: PHP Fatal error: Uncaught Error: Call to a member function attributes() on null in /home/users/zsemberi/www/friendica/src/Protocol/Diaspora.php:413nStack trace:n#0 /home/users/zsemberi/www/friendica/mod/receive.php(53): Friendica\Protocol\Diaspora::decodeRaw(Array, '
[Tue Jul 31 14:58:28.709558 2018] [proxy_fcgi:error] [pid 13318:tid 140486132086528] (70007)The timeout specified has expired: [client 209.240.111.146:39728] AH01075: Error dispatching request to : (polling)
PHP message: PHP Notice: exif_imagetype(): Read error! in /home/users/zsemberi/www/friendica/src/Module/Proxy.php on line 190n'
PHP Notice: Undefined index: width in /home/users/zsemberi/www/friendica/include/items.php on line 74
Today's list of PHP notices. Pretty short. :-)
Undefined index: in .../mod/photos.php on line 1277
Undefined index: in .../mod/photos.php on line 1278
Undefined index: nickname in .../src/Model/Profile.php on line 341
Undefined index: user in .../mod/cal.php on line 117
Undefined index: user in .../mod/cal.php on line 118
Undefined index: user in .../mod/cal.php on line 154
Undefined index: user in .../mod/cal.php on line 92
Undefined offset: 1 in .../src/Util/Proxy.php on line 189
Undefined variable: nxt in .../mod/photos.php on line 1278
Undefined variable: prv in .../mod/photos.php on line 1277
Undefined variable: _SESSION in .../src/App.php on line 1409
Undefined variable: _SESSION in .../src/App.php on line 1411
PHP Notice: exif_imagetype(): Read error! in /home/users/zsemberi/www/friendica/addon/twitter/twitter.php on line 1184
PHP Fatal error: Uncaught AbrahamTwitterOAuthTwitterOAuthException: Resolving timed out after 10524 milliseconds in /home/users/zsemberi/www/friendica/addon/twitter/vendor/abraham/twitteroauth/src/TwitterOAuth.php:440
Stack trace:
PHP Notice: Undefined index: path in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 489
PHP Notice: Undefined index: path in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 493
PHP Fatal error: Uncaught AbrahamTwitterOAuthTwitterOAuthException: Resolving timed out after 5514 milliseconds in /home/users/zsemberi/www/friendica/addon/twitter/vendor/abraham/twitteroauth/src/TwitterOAuth.php:440
Stack trace:
PHP Fatal error: Uncaught AbrahamTwitterOAuthTwitterOAuthException: Resolving timed out after 5514 milliseconds in /home/users/zsemberi/www/friendica/addon/twitter/vendor/abraham/twitteroauth/src/TwitterOAuth.php:440
Stack trace:
Look what I got here @annando :joy:
Undefined index: addr in .../src/Core/NotificationsManager.php on line 704
Undefined index: author-avatar in .../src/Protocol/Diaspora.php on line 3530
Undefined index: author-name in .../src/Protocol/Diaspora.php on line 3530
Undefined index: HTTP_REFERER in .../mod/bookmarklet.php on line 29
Undefined index: network in .../src/Core/NotificationsManager.php on line 701
Undefined index: page_flags in .../src/Content/Nav.php on line 189
Undefined index: plink in .../src/Protocol/Diaspora.php on line 3531
Undefined index: title in .../mod/bookmarklet.php on line 46
Undefined index: url in .../addon/ifttt/ifttt.php on line 182
Undefined index: url in .../mod/bookmarklet.php on line 33
Undefined index: url in .../src/Network/Probe.php on line 990
Undefined index: user in .../mod/viewcontacts.php on line 56
Nice work to everyone. And yes, friendica is a bit of a mess. :-/
PHP Notice: Undefined index: path in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 489
PHP Notice: Undefined index: path in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 493
@Quix0r yeah, we should call it Mistpark
It had a great local meaning in the name. But I think you should stay on topic with the bug and not start mocking the history of the project.
Moved to https://github.com/friendica/friendica/issues/5787#issuecomment-423829470
PHP Notice: Undefined index: width in /home/users/zsemberi/www/friendica/include/items.php on line 75
PHP Fatal error: Uncaught AbrahamTwitterOAuthTwitterOAuthException: Resolving timed out after 10521 milliseconds in /home/users/zsemberi/www/friendica/addon/twitter/vendor/abraham/twitteroauth/src/TwitterOAuth.php:440
Stack trace:
There are fewer and fewer of them. :-) I had to click like crazy through all the pages to get these...
Undefined index: about in .../mod/match.php on line 101
Undefined index: addr in .../mod/match.php on line 97
Undefined index: addr in .../mod/message.php on line 491
Undefined index: album in .../mod/videos.php on line 368
Undefined index: album in .../mod/videos.php on line 378
Undefined index: avatar in .../src/Protocol/DFRN.php on line 2430
Undefined index: avatar in .../src/Protocol/DFRN.php on line 2438
Undefined index: ident in .../mod/notifications.php on line 137
Undefined index: ident in .../mod/notifications.php on line 313
Undefined index: ident in .../mod/notifications.php on line 319
Undefined index: id in .../include/enotify.php on line 106
Undefined index: id in .../include/enotify.php on line 115
Undefined index: id in .../include/enotify.php on line 116
Undefined index: keywords in .../mod/match.php on line 100
Undefined index: location in .../mod/match.php on line 99
Undefined index: notifications in .../mod/notifications.php on line 294
Undefined index: notifications in .../mod/notifications.php on line 318
Undefined index: plink in .../src/Model/Event.php on line 606
Undefined index: resource-id in .../mod/videos.php on line 372
Undefined index: thumb in .../src/Protocol/Diaspora.php on line 1835
Undefined index: title in .../include/enotify.php on line 85
Undefined index: url in .../src/Network/Probe.php on line 991
Undefined index: user in .../mod/viewcontacts.php on line 57
Undefined variable: notif_header in .../mod/notifications.php on line 324
Have we already had these? :-)
Undefined index: xmpp_individual in .../addon/xmpp/xmpp.php on line 38
Undefined variable: change in .../mod/profperm.php on line 123
Undefined variable: change in .../mod/profperm.php on line 165
Undefined variable: change in .../mod/profperm.php on line 85
Not that I know of, thanks for the report.
I had to click like crazy through all the pages to get these...
Grep is your friend, also you should empty your error log periodically.
Grep is your friend, also you should empty your error log periodically.
But you need to do something in Friendica to produce the notices because so many are already fixed.
And yes, grep is one of my friends. :-) This is the command chain to produce a clean output of the notices:
grep -Ei 'PHP Notice' logs/friend-php.log | cut -d' ' -f7-14 | sort | uniq | sed 's/\/var\/www\/html\/libranet/.../g'
Ooooh, you mean clicking like crazy through the page of the Friendica interface! I thought you were scrolling a log or something! facepalm
Thank you for this painstaking job!
PHP Fatal error: Uncaught AbrahamTwitterOAuthTwitterOAuthException: Resolving timed out after 10519 milliseconds in /home/users/zsemberi/www/friendica/addon/twitter/vendor/abraham/twitteroauth/src/TwitterOAuth.php:440
Stack trace:
@copiis Please check before posting if you had posted a notice before. This one here you had posted now 7 times.
@annando ok but this Abraham from Twitter comes for months again and again as an error message
@annando ok but this Abraham from Twitter comes for months again and
again as an error message
yes. I believe it comes when, for whatever reason, the connection to Twitter was not possible.
Father Abraham is on Twitter? Didn't know that. Thanks for the notice. :)
It's a Twitter connection timeout error. Little we can do about it except handle the exception to hide the message or maybe retry the operation, but it isn't a trivial fix like other notices are.
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home/users/zsemberi/www/friendica/src/Worker/DiscoverPoCo.php on line 219
"father" Abraham nervt ziemlich gut heute
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/ijpost/ijpost.php on line 139
PHP Warning: Error while sending STMT_CLOSE packet. PID=17640 in /home/users/zsemberi/www/friendica/src/Database/DBA.php on line 642
PHP Warning: Error while sending STMT_PREPARE packet. PID=17605 in /home/users/zsemberi/www/friendica/src/Database/DBA.php on line 447
PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/users/zsemberi/www/friendica/src/Database/DBA.php:447
Stack trace:
v FROM...', Array)v FROM...', Array)PHP Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/users/zsemberi/www/friendica/src/Database/DBA.php:447
Stack trace:
item.`...', Array)item.`...', Array)@copiis this is something else - but I really don't know what. Please stick on this thread only with messages starting with "PHP Notice:" but not "PHP Fatal error", because they are an indication for some other problem.
From today:
Undefined index: HTTP_IF_NONE_MATCH in .../src/Module/Proxy.php on line 51
PHP Notice: Undefined index: path in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 489
PHP Notice: Undefined index: path in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 493
I _notice_-d something...
Undefined index: addr in .../src/Model/Profile.php on line 364
Undefined index: album in .../mod/videos.php on line 370
Undefined index: album in .../mod/videos.php on line 380
Undefined index: resource-id in .../mod/videos.php on line 374
Undefined index: url in .../addon/ifttt/ifttt.php on line 183
Undefined index: xmpp_individual in .../addon/xmpp/xmpp.php on line 38
Undefined variable: t in .../src/Model/User.php on line 733
Edit: there was another one in Profile.php. Sorry.
Noooooooo ...
PHP Notice: Undefined index: api_source in /home/users/zsemberi/www/friendica/addon/ijpost/ijpost.php on line 139
PHP Notice: Undefined index: width in /home/users/zsemberi/www/friendica/include/items.php on line 79
Removing the milestone association, this isn't blocking for any future milestone.
Yeah. I guess we will have fun with this for some time. But possibly we could cover the fatal errors that @copiis reported in this issue as well? This had to be done with some exception stuff where I'm unsure with.
Let's create a separate issue for this.
Good evening everyone!
Undefined index: additionalMailHeader in .../src/Util/Emailer.php on line 52
Undefined index: subject in .../addon/notifyall/notifyall.php on line 110
Undefined index: text in .../addon/notifyall/notifyall.php on line 109
How long have you digged for this, Professor Hubert J. Farnsworth? :-)
Good news, everyone! :-)
Undefined index: finish_text in .../mod/events.php on line 58
Undefined index: share in .../mod/events.php on line 120
Undefined offset: 1 in .../src/App.php on line 1077
Undefined variable: acl in .../mod/events.php on line 532
PHP Notice: iconv(): Wrong charset, conversion from latin-1 to UTF-8//TRANSLIT is not allowed in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 191
Yeah, that iconv message is something that I cannot handle well.
latin-1 charset doesn't exist, latin1does exist.
This is some routine that converts web page content to UTF-8. And we take what we receive as incoming charset. So when they provide some invalid one, we get this message.
Way ahead of you.
I get notices like these every few days (with many different charsets, for example "utf8" instead of "utf-8" or "iso-utf-8", ...). Should we add some list at that place and enhance the #5718?
Yes, please list all the errors you got.
I can do when I will have the next notice. The last one was for "latin-1", so the same like your fix.
Didn't you logrotate your logs? Maybe not the error log, just the debug log?
I'm rotating the logs and only keep them for 3 days.
"Everyone, I have a very dramatic announcement. So anyone with a weak heart should leave now. Goodbye."
Undefined index: search in .../mod/dirfind.php on line 47
PHP Notice: getimagesizefromstring(): Read error! in /home/users/zsemberi/www/friendica/src/Object/Image.php on line 795
This one still exists (has been reported before):
Undefined index: addr in .../mod/message.php on line 491
_Why do you come here when you know it makes things hard for me? ... ...
And why send me silly notes?
I'm so sorry
I'm so sorry_
(Morrissey)
Trying to get property 'provenance' of non-object in .../mod/salmon.php on line 44
Trying to get property 'data' of non-object in .../mod/salmon.php on line 44
Trying to get property 'data' of non-object in .../mod/salmon.php on line 46
Trying to get property 'data' of non-object in .../mod/salmon.php on line 48
Trying to get property 'env' of non-object in .../mod/salmon.php on line 46
Undefined index: addr in .../src/Model/Profile.php on line 364
Undefined index: canceled in .../mod/photos.php on line 215
Undefined index: url in .../mod/bookmarklet.php on line 33
Undefined index: userfile in .../mod/photos.php on line 766
Undefined index: userfile in .../mod/photos.php on line 767
Undefined index: userfile in .../mod/photos.php on line 768
Undefined index: userfile in .../mod/photos.php on line 769
Undefined index: userfile in .../mod/photos.php on line 770
PHP Notice: Undefined index: path in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 489
PHP Notice: Undefined index: path in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 493
Today's notices:
Undefined index: author-avatar in .../src/Protocol/Diaspora.php on line 3520
Undefined index: author-name in .../src/Protocol/Diaspora.php on line 3520
Undefined index: plink in .../src/Protocol/Diaspora.php on line 3521
Friendica version you encountered the problem
2018.05
Friendica source (git, zip)
git
PHP version
PHP 7.2.7
SQL version
5.5.5-10.1.34-MariaDB
Fehlermeldung
PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/users/friendica/www/src/Protocol/PortableContact.php on line 1028
Thanks for the report, this has already been fixed in the upcoming release, stay tuned.
Moved to https://github.com/friendica/friendica/issues/5787#issuecomment-423829470
This is a database disconnection issue, we aren't handling them at all at the moment I'm afraid.
Will this ever end? :-)
Undefined index: confirm in .../src/Network/Probe.php on line 946
Undefined index: name in .../src/Network/Probe.php on line 950
Undefined index: notify in .../src/Network/Probe.php on line 947
Undefined index: otype in .../include/enotify.php on line 477
Undefined index: photo in .../src/Network/Probe.php on line 949
Undefined index: poll in .../src/Network/Probe.php on line 948
Undefined index: pubkey in .../src/Network/Probe.php on line 951
Undefined index: request in .../src/Network/Probe.php on line 945
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
NEVER!
PHP Notice: Undefined offset: 504 in /home/users/zsemberi/www/friendica/addon/buffer/bufferapp.php on line 133
Moved to https://github.com/friendica/friendica/issues/5787#issuecomment-423829470
Dropped database connection as well I'm afraid, we really should do something about this.
Two more notices from 2018.09 (master):
Undefined index: canceled in .../mod/suggest.php on line 49
Undefined index: confirm in .../mod/suggest.php on line 24
Undefined index: cat in .../mod/filerm.php on line 13
Only variables should be passed by reference in .../include/api.php on line 3803
Only variables should be passed by reference in .../include/api.php on line 3822
Edit: added three more notices.
Please post these errors in #5707 instead.
Moves to #5799
@copiis Hello Richard,
this issue is about PHP Notices - if you find any other error types (warning or fatal error) in your logfile, please open a separate issue for each error message.
Thank you!
PHP Notice: Undefined variable: items in /home/users/zsemberi/www/friendica/src/Worker/Delivery.php on line 174
...and:
Undefined index: download_content_length in .../src/Util/ParseUrl.php on line 144
Undefined index: photo in .../src/Protocol/ActivityPub/Receiver.php on line 434
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
Undefined variable: type in .../mod/parse_url.php on line 79
version 2018.09
[14-Oct-2018 20:33:16 Europe/Berlin] PHP Notice: Undefined index: id in /var/www/friendica/src/Protocol/Diaspora.php on line 2143
version 2018.09
[15-Oct-2018 02:57:03 Europe/Berlin] PHP Notice: Undefined variable: id in /var/www/friendica/addon/statusnet/statusnet.php on line 661
PHP Notice: Undefined index: download_content_length in /home/users/zsemberi/www/friendica/src/Util/ParseUrl.php on line 144
I keep referring people here but we don't keep track of the notices that were fixed or not...
Possibly we should close this issue and create a new one? Because it is hard keeping track at the current length of the issue.
Agreed, I'll port over what I believe hasn't been solved yet.
Most helpful comment
_Why do you come here when you know it makes things hard for me? ... ...
And why send me silly notes?
I'm so sorry
I'm so sorry_
(Morrissey)
Trying to get property 'provenance' of non-object in .../mod/salmon.php on line 44 Trying to get property 'data' of non-object in .../mod/salmon.php on line 44 Trying to get property 'data' of non-object in .../mod/salmon.php on line 46 Trying to get property 'data' of non-object in .../mod/salmon.php on line 48 Trying to get property 'env' of non-object in .../mod/salmon.php on line 46 Undefined index: addr in .../src/Model/Profile.php on line 364 Undefined index: canceled in .../mod/photos.php on line 215 Undefined index: url in .../mod/bookmarklet.php on line 33 Undefined index: userfile in .../mod/photos.php on line 766 Undefined index: userfile in .../mod/photos.php on line 767 Undefined index: userfile in .../mod/photos.php on line 768 Undefined index: userfile in .../mod/photos.php on line 769 Undefined index: userfile in .../mod/photos.php on line 770