• Resolved cybeardjm

    (@didierjm)


    Hi,

    While reviewing my latest PHP error log, it’s filled with this error (every 1-2 minute or so):

    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/Handler/class-mf2.php:403
    Stack trace:
    0 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/Handler/class-mf2.php(442): Webmention\Handler\MF2->find_representative_item()
    1 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/Handler/class-mf2.php(46): Webmention\Handler\MF2->get_representative_item()
    2 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/class-handler.php(84): Webmention\Handler\MF2->parse()
    3 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/class-receiver.php(619): Webmention\Handler->parse_aggregated()
    4 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(310): Webmention\Receiver::default_commentdata()
    5 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    6 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/class-receiver.php(329): apply_filters()
    7 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1194): Webmention\Receiver::post()
    8 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request()
    9 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch()
    10 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/rest-api.php(418): WP_REST_Server->serve_request()
    11 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(310): rest_api_loaded()
    12 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    13 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
    14 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp.php(398): do_action_ref_array()
    15 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp.php(779): WP->parse_request()
    16 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/functions.php(1335): WP->main()
    17 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-blog-header.php(16): wp()
    18 /srv/data/web/vhosts/www.didiermary.fr/htdocs/index.php(17): require(‘…’)
    19 {main}
    thrown in /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/Handler/class-mf2.php on line 403

    Have latest versions of Webmention + IndieWeb + Syndicate Links

    Sincerely
    DJM

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter cybeardjm

    (@didierjm)

    Problem is “growing”, and PHP error log is filled with the same error… Blog is slower and slower too when publishing or updating a post, and sometimes I have to reboot my server on the host, as it finally crashes.

    I checked the repository, the error happens in this part of

    * helper to find the correct h-entry node *

    And line 403 is about: // check content for the link

    I should add, just in case it’s relevant, the blog that has this problem uses the Twenty Twenty-Three theme (where comments are not hidden from likes/reposts).

    I don’t have the problem on my second blog with the Twenty Twenty theme…

    On a fun side note: I use a humans.txt at the root of my blog. I get an “anonymous” webmention from this file for every link it finds in a new or updated post…

    Plugin Contributor David Shanske

    (@dshanske)

    Was just talking about what I think is happening here. Hoping to merge a fix for the next release… tracking a few bugs.

    Plugin Contributor David Shanske

    (@dshanske)

    Should be resolved in latest release.

    Thread Starter cybeardjm

    (@didierjm)

    Thx @dshanske – update done, will check error log later to confirm.

    DJM

    Thread Starter cybeardjm

    (@didierjm)

    Thread Starter cybeardjm

    (@didierjm)

    Is the Fatal error back? Have plenty like this one…
    Webmention 5.1.9
    IndieWeb 4.0.1

    [20-Nov-2023 18:24:45 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/Handler/class-mf2.php:432
    Stack trace:
    #0 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/Handler/class-mf2.php(472): Webmention\Handler\MF2->find_representative_item()
    #1 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/Handler/class-mf2.php(47): Webmention\Handler\MF2->get_representative_item()
    #2 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/class-handler.php(84): Webmention\Handler\MF2->parse()
    #3 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/class-receiver.php(619): Webmention\Handler->parse_aggregated()
    #4 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(324): Webmention\Receiver::default_commentdata()
    #5 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #6 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/class-receiver.php(329): apply_filters()
    #7 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1193): Webmention\Receiver::post()
    #8 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request()
    #9 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch()
    #10 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/rest-api.php(424): WP_REST_Server->serve_request()
    #11 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(324): rest_api_loaded()
    #12 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #13 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action()
    #14 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp.php(418): do_action_ref_array()
    #15 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp.php(813): WP->parse_request()
    #16 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-includes/functions.php(1336): WP->main()
    #17 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-blog-header.php(16): wp()
    #18 /srv/data/web/vhosts/www.didiermary.fr/htdocs/index.php(17): require('...')
    #19 {main} thrown in /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/webmention/includes/Handler/class-mf2.php on line 432

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Fatal error in class-mf2’ is closed to new replies.