Forum

Thread tagged as: Problem, Addons

Troubleshooting webmentions: I can successfully receive but automated send is no...

Hi,

I’m trying to enable webmentions on my Perch Blog. I can receive webmentions and can manually add a response to a third party article page but I can’t get the automated, scheduled sending to work.

I started by following your tutorial: https://docs.grabaperch.com/addons/blog/webmentions/.

I then created a test blog article on my site - https://fuzzylogic.me/posts/testing-out-webmentions - and manually posted a webmention on https://aaronparecki.com/2018/06/30/11/your-first-webmention.

I’ve been able to receive a webmention by sending one from https://webmention.rocks/receive/1 and it then successfully arrived into my site, I approved it and can see it listed beside my post, https://fuzzylogic.me/posts/testing-out-webmentions.

But when I created a new blog post - https://fuzzylogic.me/posts/testing-webmention-endpoint-discovery-implementation - which references all the test suite links on https://webmention.rocks/, and waited until my scheduled task ran, I found that my comments aren’t showing up on any of those pages.

I’ve done the following troubleshooting based on your guidelines article: - checked my scheduled tasks are running fine. They're all showing green ticks and "OK" - The PHP extensions XML, mbstring and cURL are installed. - My error logs aren’t showing anything related to webmention - In the datebase the perch3_blog_webmention_queue table is empty

Here's my Diagnostic Report.

Summary information
Perch: 3.1.1, PHP: 7.2.7-0ubuntu0.18.04.2, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $, with PDO
Server OS: Linux, apache2handler
Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_blog (5.6.1)
App runtimes: <?php $apps_list = [ 'perch_blog' ];
PERCH_LOGINPATH: /console
PERCH_PATH: /var/www/html/fuzzylogic.me/public_html/console
PERCH_CORE: /var/www/html/fuzzylogic.me/public_html/console/core
PERCH_RESFILEPATH: /var/www/html/fuzzylogic.me/public_html/console/resources
Image manipulation: GD
PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: fuzzylogic.me
DOCUMENT_ROOT: /var/www/html/fuzzylogic.me/public_html
REQUEST_URI: /console/core/settings/diagnostics/
SCRIPT_NAME: /console/core/settings/diagnostics/index.php

To sum up, I’m not sure whether the automated webmention sending is being sent and failing, or not sending at all.

I did try one last thing which was to manually cURL a webmention endpoint from the command line, just to see if cURL worked, and it did.

Any help very much appreciated!

Thanks, Laurence

Laurence Hughes

Laurence Hughes 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have PERCH_PRODUCTION_MODE set to something below PERCH_PRODUCTION?

Hi, No, it’s set like this:

define('PERCH_PRODUCTION_MODE', PERCH_PRODUCTION);
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your extended diagnostics?

Here they are:

* Perch: 3.1.1
* Production mode: Production (100)
* Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_blog (5.6.1)
* DB driver: PDO
* DB tables: perch3_blog_authors (1), perch3_blog_comments (1), perch3_blog_index (605), perch3_blog_posts (16), perch3_blog_posts_to_tags (7), perch3_blog_sections (2), perch3_blog_tags (12), perch3_blog_webmention_queue (0), perch3_blogs (1), perch3_categories (0), perch3_category_counts (0), perch3_category_sets (1), perch3_content_index (27), perch3_content_items (10), perch3_content_regions (2), perch3_menu_items (9), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (0), perch3_pages (1), perch3_resource_log (56), perch3_resource_tags (0), perch3_resources (62), perch3_resources_to_tags (0), perch3_scheduled_tasks (25), perch3_settings (29), perch3_user_passwords (0), perch3_user_privileges (35), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
* Users: 1
* App runtimes:
* <?php
*   $apps_list = [
*       'perch_blog'
*   ];
* Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins)
* Editor plug-ins:
* H1: a07f6155dd407366f16c697f2b11a5cf
* L1: 55d81780517e6a3d08df94d3dfabbe56
* F1: 3b606135b33e6a102526838f4152a807
* headerColour: #ffffff
* content_singlePageEdit: 1
* helpURL:
* siteURL: /
* hideBranding: 0
* content_collapseList: 1
* lang: en-gb
* installedAt: 3.1.1
* update_3.1.1: done
* latest_version:
* on_sale_version: 3.1.2
* perch_blog_update: 5.6
* perch_blog_post_url: /{sectionSlug}/{postSlug}
* headerScheme: light
* perch_blog_site_name: FuzzyLogic
* perch_blog_slug_format: {postTitle}
* perch_blog_akismet_key:
* perch_blog_max_spam_days: 0
* dashboard: 0
* sidebar_back_link: 0
* hide_pwd_reset: 0
* keyboardShortcuts: 0
* content_hideNonEditableRegions: 0
* content_frontend_edit: 0
* content_skip_region_list: 0
* assets_restrict_buckets: 0
* perch_blog_comment_notify: 1
* perch_blog_webmention_tx: 1
* perch_blog_webmention_rx: 1
* PERCH_DEVELOPMENT: 10
* PERCH_STAGING: 50
* PERCH_PRODUCTION: 100
* PERCH_DB_USERNAME: webuser
* PERCH_DB_SERVER: localhost
* PERCH_DB_DATABASE: fuzzylogic_production_db
* PERCH_DB_PREFIX: perch3_
* PERCH_TZ: UTC
* PERCH_EMAIL_FROM: laurence@fuzzylogicdigital.com
* PERCH_EMAIL_FROM_NAME: Laurence Hughes
* PERCH_LOGINPATH: /console
* PERCH_PATH: /var/www/html/fuzzylogic.me/public_html/console
* PERCH_CORE: /var/www/html/fuzzylogic.me/public_html/console/core
* PERCH_RESFILEPATH: /var/www/html/fuzzylogic.me/public_html/console/resources
* PERCH_RESPATH: /console/resources
* PERCH_HTML5: 1
* PERCH_PRODUCTION_MODE: 100
* PERCH_SCHEDULE_SECRET: fuzzyl4rry
* PERCH_RUNWAY:
* PERCH_ERROR_MODE: DIE
* PERCH_DATE_LONG: %d %B %Y
* PERCH_DATE_SHORT: %d %b %Y
* PERCH_TIME_SHORT: %H:%M
* PERCH_TIME_LONG: %H:%M:%S
* PERCH_RUNWAY_ROUTED:
* PERCH_STRONG_PASSWORDS:
* PERCH_ASSET_VERSION: 8255e4c4a367cfa3e2bd
* PERCH_DEBUG:
* PERCH_PREVIEW_ARG: preview
* PERCH_TEMPLATE_PATH: /var/www/html/fuzzylogic.me/public_html/console/templates
* PERCH_TEMPLATE_FILTERS:
* PERCH_DEFAULT_DOC: index.php
* PERCH_DEFAULT_EXT: .php
* PERCH_XHTML_MARKUP:
* PERCH_RWD: 1
* PERCH_HTML_ENTITIES:
* PERCH_SSL:
* PERCH_STRIPSLASHES:
* PERCH_PROGRESSIVE_FLUSH: 1
* PERCH_PARANOID:
* PERCH_FORCE_SECURE_COOKIES:
* PERCH_DEFAULT_BUCKET: default
* PERCH_TRANSLATION_ASSIST:
* PERCH_PASSWORD_MIN_LENGTH: 6
* PERCH_MAX_FAILED_LOGINS: 10
* PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
* PERCH_VERIFY_UPLOADS:
* PERCH_PRIV_ASSIST:
* PERCH_CUSTOM_EDITOR_CONFIGS:
* PERCH_ENABLE_EXIF: 1
* PERCH_AUTH_PLUGIN:
* PERCH_DB_CHARSET: utf8
* PERCH_DB_PORT:
* PERCH_DB_SOCKET:
* PERCH_APPS_EDITOR_PLUGIN: markitup
* PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
* Hosting settings
* PHP: 7.2.7-0ubuntu0.18.04.2
* Zend: 3.2.0
* OS: Linux
* SAPI: apache2handler
* Safe mode: not detected
* MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
* MySQL server: 5.7.23-0ubuntu0.18.04.1
* Free disk space: 19.72 GB
* Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, apache2handler, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, Zend OPcache
* GD: Yes
* ImageMagick: No
* PHP max upload size: 2M
* PHP max form post size: 8M
* PHP memory limit: 128M
* Total max uploadable file size: 2M
* Resource folder writeable: Yes
* Session timeout: 24 minutes
* Native JSON: Yes
* Filter functions: Yes
* Transliteration functions: No
* HTTPS: on
* SSL_TLS_SNI: fuzzylogic.me
* HTTP_HOST: fuzzylogic.me
* HTTP_CONNECTION: keep-alive
* HTTP_UPGRADE_INSECURE_REQUESTS: 1
* HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
* HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_REFERER: https://fuzzylogic.me/console/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, br
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9
HTTP_COOKIE: cmsa=1; _ga=GA1.2.904404580.1532283741; PHPSESSID=bknc47pftsvvdqkutd9tg8pupa
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE: <address>Apache/2.4.29 (Ubuntu) Server at fuzzylogic.me Port 443</address>
SERVER_SOFTWARE: Apache/2.4.29 (Ubuntu)
SERVER_NAME: fuzzylogic.me
SERVER_ADDR: 2a01:7e00::f03c:91ff:fe2a:942
SERVER_PORT: 443
REMOTE_ADDR: 2a00:23c1:7682:401:40e6:2768:a7a8:b14e
DOCUMENT_ROOT: /var/www/html/fuzzylogic.me/public_html
REQUEST_SCHEME: https
CONTEXT_DOCUMENT_ROOT: /var/www/html/fuzzylogic.me/public_html
SERVER_ADMIN: webmaster@localhost
SCRIPT_FILENAME: /var/www/html/fuzzylogic.me/public_html/console/core/settings/diagnostics/index.php
REMOTE_PORT: 54300
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /console/core/settings/diagnostics/?extended
SCRIPT_NAME: /console/core/settings/diagnostics/index.php
PHP_SELF: /console/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1536744339.092
REQUEST_TIME: 1536744339
Drew McLellan

Drew McLellan 2638 points
Perch Support

Try updating the Site URL setting to:

https://fuzzylogic.me/

Thanks, I did that, then manually ran the scheduled task from the command line, and.... deep joy!

https://webmention.rocks/test/3

I just realised that you might not see what I see on that URL, but suffice to say my comment is now showing up! Thanks for your help.