Skip to content
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

snarfed/wordpress-micropub – PHP Notices #141

Closed
dougbeal opened this Issue Jul 19, 2018 · 5 comments

Comments

2 participants
@dougbeal
Copy link

dougbeal commented Jul 19, 2018

PHP Notice: Undefined index: add in /var/www/html/wp-content/plugins/micropub/micropub.php on line 483 PHP Notice: Undefined index: altitude in /var/www/html/wp-content/plugins/micropub/micropub.php on line 991 PHP Notice: Undefined index: content in /var/www/html/wp-content/plugins/micropub/micropub.php on line 705 PHP Notice: Undefined index: country-name in /var/www/html/wp-content/plugins/micropub/micropub.php on line 979 PHP Notice: Undefined index: delete in /var/www/html/wp-content/plugins/micropub/micropub.php on line 521 PHP Notice: Undefined index: locality in /var/www/html/wp-content/plugins/micropub/micropub.php on line 976 PHP Notice: Undefined index: mf2_category in /var/www/html/wp-content/plugins/micropub/micropub.php on line 1064 PHP Notice: Undefined index: postal-code in /var/www/html/wp-content/plugins/micropub/micropub.php on line 978 PHP Notice: Undefined index: properties in /var/www/html/wp-content/plugins/micropub/micropub.php on line 1039 PHP Notice: Undefined index: properties in /var/www/html/wp-content/plugins/micropub/micropub.php on line 413 PHP Notice: Undefined index: properties in /var/www/html/wp-content/plugins/micropub/micropub.php on line 851 PHP Notice: Undefined index: region in /var/www/html/wp-content/plugins/micropub/micropub.php on line 977 PHP Notice: Undefined index: replace in /var/www/html/wp-content/plugins/micropub/micropub.php on line 509 PHP Notice: Undefined index: street-address in /var/www/html/wp-content/plugins/micropub/micropub.php on line 975 PHP Notice: Undefined index: summary in /var/www/html/wp-content/plugins/micropub/micropub.php on line 711 PHP Notice: Undefined offset: 1 in /var/www/html/wp-content/plugins/micropub/micropub.php on line 1001 PHP Notice: unserialize(): Error at offset 0 of 1 bytes in /var/www/html/wp-content/plugins/micropub/micropub.php on line 1103 PHP Notice: unserialize(): Error at offset 0 of 12 bytes in /var/www/html/wp-content/plugins/micropub/micropub.php on line 1103

(Originally published at: https://crw.moe/b/ZU)

@dshanske

This comment has been minimized.

Copy link
Member

dshanske commented Aug 14, 2018

@dougbal Can you check this one with the latest development build to see if some or all of these notices went away?

@dougbeal

This comment has been minimized.

Copy link
Author

dougbeal commented Aug 17, 2018

I've been running HEAD for a few days, and haven't seen any notices. But I didn't record what url/action I thought triggered these notices. Here are the PHP Notice stats, where the 12th was when I updated to HEAD.

grep "PHP Notice" /home/dockerrun/docker-dougbeal.com/volumes/wordpress_com_dougbeal/wp-content/debug.log | grep micropub | awk '{print $1}' | uniq -c

      2 [01-Aug-2018
      5 [02-Aug-2018
      2 [03-Aug-2018
     14 [04-Aug-2018
      4 [05-Aug-2018
      2 [06-Aug-2018
     47 [08-Aug-2018
     25 [09-Aug-2018
     20 [10-Aug-2018
     20 [11-Aug-2018
     10 [12-Aug-2018
@dougbeal

This comment has been minimized.

Copy link
Author

dougbeal commented Aug 17, 2018

Quill like ->

[17-Aug-2018 02:31:32 UTC] PHP Notice:  Undefined index: content in /var/www/html/wp-content/plugins/micropub/includes/class-micropub-endpoint.php on line 616
[17-Aug-2018 02:31:32 UTC] PHP Notice:  Undefined index: summary in /var/www/html/wp-content/plugins/micropub/includes/class-micropub-endpoint.php on line 622
[17-Aug-2018 02:31:32 UTC] PHP Notice:  Undefined index: content in /var/www/html/wp-content/plugins/micropub/includes/class-micropub-render.php on line 79
webserver-wordpress_1  | 2018/08/17 02:31:30 [notice] 5#5: *285198 "^/.well-known/(host-meta|webfinger).*" does not match "/index.php", client: 173.230.155.197, server: dougbeal.com, request: "POST /wp-json/micropub/1.0/endpoint HTTP/1.1", host: "dougbeal.com"
[17-Aug-2018 02:31:30 UTC] Micropub Input: {"type":["h-entry"],"properties":{"like-of":["https:\/\/petermolnar.net\/running-a-static-indieweb-site\/"]}}
[17-Aug-2018 02:31:32 UTC] PHP Notice:  Undefined index: content in /var/www/html/wp-content/plugins/micropub/includes/class-micropub-endpoint.php on line 616
[17-Aug-2018 02:31:32 UTC] PHP Notice:  Undefined index: summary in /var/www/html/wp-content/plugins/micropub/includes/class-micropub-endpoint.php on line 622
[17-Aug-2018 02:31:32 UTC] PHP Notice:  Undefined index: content in /var/www/html/wp-content/plugins/micropub/includes/class-micropub-render.php on line 79
[17-Aug-2018 02:31:32 UTC] wp_insert_post with args: {"meta_input":{"micropub_auth_response":{"token_type":"Bearer","scope":"create update media","me":"https:\/\/dougbeal.com\/","issued_by":"https:\/\/dougbeal.com\/wp-json\/indieauth\/1.0\/token","client_id":"https:\/\/quill.p3k.io\/","issued_at":1534292335,"user":2},"mf2_type":["h-entry"],"mf2_like-of":[{"name":"Lessons of running a (semi) static, Indieweb-friendly site for 2 years","publication":"petermolnar.net","url":"https:\/\/petermolnar.net\/running-a-static-indieweb-site\/","type":"entry","published":"2018-08-07T18:33:00+01:00","updated":"2018-08-07T18:33:00+01:00","summary":"It\u2019s not possible to run fully static sites with dynamic features, such as webmention handling - you can get close to it, but you do need to embrace external services.","author":{"type":"card","name":"Peter Molnar","url":"https:\/\/petermolnar.net\/","photo":"https:\/\/petermolnar.net\/molnar_peter_avatar.jpg","uid":"https:\/\/petermolnar.net\/"},"featured":["https:\/\/petermolnar.net\/molnar_peter_avatar.jpg"]}]},"post_content":"<p>Likes <a class=\"u-like-of\" href=\"https:\/\/petermolnar.net\/running-a-static-indieweb-site\/\">Lessons of running a (semi) static, Indieweb-friendly site for 2 years<\/a>.<\/p>","post_author":2,"post_status":"publish"}
webserver-wordpress_1  | 2018/08/17 02:31:32 [notice] 5#5: *285200 "^/.well-known/(host-meta|webfinger).*" does not match "/feed/rss2/", client: 72.14.199.104, server: dougbeal.com, request: "GET /feed/rss2/ HTTP/1.1", host: "dougbeal.com"
webserver-wordpress_1  | 2018/08/17 02:31:32 [notice] 5#5: *285200 "^/.well-known/(host-meta|webfinger).*" does not match "/index.php", client: 72.14.199.104, server: dougbeal.com, request: "GET /feed/rss2/ HTTP/1.1", host: "dougbeal.com"
webserver-wordpress_1  | 2018/08/17 02:31:32 [notice] 5#5: *285202 "^/.well-known/(host-meta|webfinger).*" does not match "/wp-cron.php", client: 172.18.0.1, server: dougbeal.com, request: "POST /wp-cron.php?doing_wp_cron=1534473092.9493460655212402343750 HTTP/1.1", host: "dougbeal.com", referrer: "https://dougbeal.com/wp-cron.php?doing_wp_cron=1534473092.9493460655212402343750"
wordpress_1            | 172.18.0.4 -  17/Aug/2018:02:31:30 +0000 "POST /index.php" 201
webserver-wordpress_1  | 173.230.155.197 - - [17/Aug/2018:02:31:33 +0000] "POST /wp-json/micropub/1.0/endpoint HTTP/1.1" 201 1274 "-" "-" "-"
webserver-wordpress_1  | 2018/08/17 02:31:33 [info] 5#5: *285198 client 173.230.155.197 closed keepalive connection
webserver-wordpress_1  | 2018/08/17 02:31:33 [info] 5#5: *285202 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.18.0.1, server: dougbeal.com, request: "POST /wp-cron.php?doing_wp_cron=1534473092.9493460655212402343750 HTTP/1.1", upstream: "fastcgi://172.18.0.3:9000", host: "dougbeal.com", referrer: "https://dougbeal.com/wp-cron.php?doing_wp_cron=1534473092.9493460655212402343750"
webserver-wordpress_1  | 172.18.0.1 - - [17/Aug/2018:02:31:33 +0000] "POST /wp-cron.php?doing_wp_cron=1534473092.9493460655212402343750 HTTP/1.1" 499 0 "https://dougbeal.com/wp-cron.php?doing_wp_cron=1534473092.9493460655212402343750" "WordPress/4.9.8; https://dougbeal.com" "-"
[17-Aug-2018 02:31:34 UTC] PHP Notice:  Undefined index: name in /var/www/html/wp-content/plugins/indieweb-post-kinds/views/kind-checkin.php on line 14
[17-Aug-2018 02:31:34 UTC] PHP Notice:  Array to string conversion in /var/www/html/wp-includes/formatting.php on line 1045
wordpress_1            | 172.18.0.4 -  17/Aug/2018:02:31:32 +0000 "GET /index.php" 200
@dshanske

This comment has been minimized.

Copy link
Member

dshanske commented Aug 18, 2018

@dougbeal Can you try again?

@dougbeal

This comment has been minimized.

Copy link
Author

dougbeal commented Sep 17, 2018

Looking good so far, let me see if anything pops up by HWC Wednesday, otherwise will close.

@dshanske dshanske closed this Oct 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.