[Support request] Met with “critical error” message on attempt to update to PHP 8.1

Home Forums Support [Support request] Met with “critical error” message on attempt to update to PHP 8.1

Home Forums Support Met with “critical error” message on attempt to update to PHP 8.1

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2384084
    Norman

    Hello,

    I’m wondering if you can help with interpreting error messages after attempting to update my site at https://churchletters.org from PHP 7.4 to 8.1 –

    Perhaps not theme related but just looking for possible help. I’m also contacting the membership plugin developer (DAP)

    Thanks,
    Norm

    ==============================

    [24-Oct-2022 08:19:06 EST] PHP Warning: Constant ABSPATH already defined in /home/letters/public_html/wp-config.php on line 82

    [24-Oct-2022 08:19:06 EST] PHP Warning: Constant DISABLE_WP_CRON already defined in /home/letters/public_html/wp-config.php on line 90

    [24-Oct-2022 06:19:07 America/Los_Angeles] PHP Warning: Undefined array key “utm_source” in /home/letters/public_html/wp-content/plugins/smartpaycart/includes/lib/functions.php on line 361

    [24-Oct-2022 06:19:08 America/Los_Angeles] PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, stdClass given in /home/letters/public_html/wp-content/plugins/DAP-WP-LiveLinks/DAP-WP-LiveLinks.php:685

    Stack trace:

    #0 /home/letters/public_html/wp-includes/class-wp-hook.php(309): dap_filter_posts(Array)

    #1 /home/letters/public_html/wp-includes/plugin.php(235): WP_Hook->apply_filters(Array, Array)

    #2 /home/letters/public_html/wp-includes/class-wp-query.php(3348): apply_filters_ref_array(‘the_posts’, Array)

    #3 /home/letters/public_html/wp-includes/class-wp-query.php(3613): WP_Query->get_posts()

    #4 /home/letters/public_html/wp-includes/class-wp.php(648): WP_Query->query(Array)

    #5 /home/letters/public_html/wp-includes/class-wp.php(775): WP->query_posts()

    #6 /home/letters/public_html/wp-includes/functions.php(1330): WP->main(”)

    #7 /home/letters/public_html/wp-blog-header.php(16): wp()

    #8 /home/letters/public_html/index.php(17): require(‘/home/letters/p…’)

    #9 {main}

    thrown in /home/letters/public_html/wp-content/plugins/DAP-WP-LiveLinks/DAP-WP-LiveLinks.php on line 685

    [24-Oct-2022 06:19:08 America/Los_Angeles] PHP Warning: Attempt to read property “ID” on null in /home/letters/public_html/wp-includes/class-wp-query.php on line 4213

    [24-Oct-2022 06:19:08 America/Los_Angeles] PHP Warning: Attempt to read property “post_title” on null in /home/letters/public_html/wp-includes/class-wp-query.php on line 4215

    [24-Oct-2022 06:19:08 America/Los_Angeles] PHP Warning: Attempt to read property “post_name” on null in /home/letters/public_html/wp-includes/class-wp-query.php on line 4217

    [24-Oct-2022 06:19:08 America/Los_Angeles] PHP Warning: Attempt to read property “ID” on null in /home/letters/public_html/wp-includes/class-wp-query.php on line 4213

    [24-Oct-2022 06:19:08 America/Los_Angeles] PHP Warning: Attempt to read property “post_title” on null in /home/letters/public_html/wp-includes/class-wp-query.php on line 4215

    [24-Oct-2022 06:19:08 America/Los_Angeles] PHP Warning: Attempt to read property “post_name” on null in /home/letters/public_html/wp-includes/class-wp-query.php on line 4217

    [24-Oct-2022 06:19:08 America/Los_Angeles] PHP Warning: Attempt to read property “post_type” on null in /home/letters/public_html/wp-includes/class-wp-query.php on line 4365

    [24-Oct-2022 08:19:09 EST] PHP Warning: Constant ABSPATH already defined in /home/letters/public_html/wp-config.php on line 82

    [24-Oct-2022 08:19:09 EST] PHP Warning: Constant DISABLE_WP_CRON already defined in /home/letters/public_html/wp-config.php on line 90

    [24-Oct-2022 06:19:10 America/Los_Angeles] PHP Warning: include_once(/dap/dap-config.php): Failed to open stream: No such file or directory in /home/letters/public_html/wp-content/plugins/dapheaderlogin/_dapheaderlogin.php(1) : eval()’d code on line 284

    [24-Oct-2022 06:19:10 America/Los_Angeles] PHP Warning: include_once(): Failed opening ‘/dap/dap-config.php’ for inclusion (include_path=’.’) in /home/letters/public_html/wp-content/plugins/dapheaderlogin/_dapheaderlogin.php(1) : eval()’d code on line 284

    [24-Oct-2022 06:19:10 America/Los_Angeles] PHP Warning: Undefined array key “action” in /home/letters/public_html/wp-content/plugins/dapheaderlogin/_dapheaderlogin.php(1) : eval()’d code on line 621

    [24-Oct-2022 06:19:10 America/Los_Angeles] PHP Warning: Undefined array key “key” in /home/letters/public_html/wp-content/plugins/dapheaderlogin/_dapheaderlogin.php(1) : eval()’d code on line 622

    [24-Oct-2022 08:19:11 EST] PHP Warning: Constant ABSPATH already defined in /home/letters/public_html/wp-config.php on line 82

    [24-Oct-2022 08:19:11 EST] PHP Warning: Constant DISABLE_WP_CRON already defined in /home/letters/public_html/wp-config.php on line 90

    [24-Oct-2022 06:19:12 America/Los_Angeles] PHP Warning: include_once(/dap/dap-config.php): Failed to open stream: No such file or directory in /home/letters/public_html/wp-content/plugins/dapheaderlogin/_dapheaderlogin.php(1) : eval()’d code on line 284

    [24-Oct-2022 06:19:12 America/Los_Angeles] PHP Warning: include_once(): Failed opening ‘/dap/dap-config.php’ for inclusion (include_path=’.’) in /home/letters/public_html/wp-content/plugins/dapheaderlogin/_dapheaderlogin.php(1) : eval()’d code on line 284

    [24-Oct-2022 06:19:12 America/Los_Angeles] PHP Warning: Undefined array key “action” in /home/letters/public_html/wp-content/plugins/dapheaderlogin/_dapheaderlogin.php(1) : eval()’d code on line 621

    [24-Oct-2022 06:19:12 America/Los_Angeles] PHP Warning: Undefined array key “key” in /home/letters/public_html/wp-content/plugins/dapheaderlogin/_dapheaderlogin.php(1) : eval()’d code on line 622

    ==

    #2384093
    David
    Staff
    Customer Support

    Hi there,

    all those errors trace to the (?) dapheaderlogin plugin. You may want to report that to the plugin author…
    but please note even WP isn’t fully compatible with PHP 8.* yet:

    https://make.wordpress.org/core/2022/01/10/wordpress-5-9-and-php-8-0-8-1/

    And there are plenty of plugins out there that are not either, and some of that may be because they are waiting WP core updates.

    In short, try PHP 8.0.1 instead, if that works great.
    If you get the same error and you can’t replace that plugin then you will need to downgrade to 7.4.

    #2384097
    Norman

    Thank you, David.

    So “all” the errors point to that plugin? I can actually do without it, so I may try that as well.

    Thanks,
    Norm

    #2384109
    David
    Staff
    Customer Support

    Top of the stack trace we see: dap_filter_posts where the error originates – i am kinda guessing that belongs to that plugin. As all the other notices then follow to: wp-content/plugins/dapheaderlogin/

    #2384110
    Norman

    Okay, thank you for your help.

    Have a great day,
    Norm

    #2384129
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.