• Resolved Till Krüss

    (@tillkruess)


    I’m running PHP 8.1 and WordPress 5.9-beta3.

    
    [21-Dec-2021 17:35:36 UTC] PHP Fatal error:  Uncaught Error: Call to a member function inc_dev_counter() on null in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/listeners/class-phplistener.php:351
    Stack trace:
    #0 [internal function]: Decalog\Listener\PhpListener->handle_exception(Object(Error))
    #1 {main}
      thrown in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/listeners/class-phplistener.php on line 351
    [21-Dec-2021 17:35:36 UTC] PHP Fatal error:  Uncaught Error: Call to a member function inc_dev_counter() on null in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/listeners/class-phplistener.php:331
    Stack trace:
    #0 /Users/Till/Development/Sites/wordpress/wp-includes/post.php(4973): Decalog\Listener\PhpListener->handle_error(2, 'Error (E_WARNIN...', './wp-includes/p...', 4973)
    #1 /Users/Till/Development/Sites/wordpress/wp-includes/post.php(4330): wp_unique_post_slug('35e3dbccb2ee39a...', 0, 'publish', 'deprecated_log', 0)
    #2 /Users/Till/Development/Sites/wordpress/wp-content/plugins/log-deprecated-notices/log-deprecated-notices.php(440): wp_insert_post(Array)
    #3 /Users/Till/Development/Sites/wordpress/wp-includes/class-wp-hook.php(307): Deprecated_Log->shutdown('')
    #4 /Users/Till/Development/Sites/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #5 /Users/Till/Development/Sites/wordpress/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #6 /Users/Till/Development/Sites/wordpress/wp-includes/load.php(1100): do_action('shutdown')
    #7 [internal function]: shutdown_action_hook()
    #8 {main}
      thrown in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/listeners/class-phplistener.php on line 331
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Till Krüss

    (@tillkruess)

    Here is a Site Health dump:

    
    ### wp-core ###
    
    version: 5.9-beta3-52391
    site_language: en_US
    user_language: en_US
    timezone: America/Vancouver
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 1
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /Users/Till/Development/Sites/wordpress
    wordpress_size: 170.76 MB (179051091 bytes)
    uploads_path: /Users/Till/Development/Sites/wordpress/wp-content/uploads
    uploads_size: 357.15 KB (365722 bytes)
    themes_path: /Users/Till/Development/Sites/wordpress/wp-content/themes
    themes_size: 45.57 MB (47779801 bytes)
    plugins_path: /Users/Till/Development/Sites/wordpress/wp-content/plugins
    plugins_size: 347.56 MB (364438502 bytes)
    database_size: 5.11 MB (5357568 bytes)
    total_size: 569.34 MB (596992684 bytes)
    
    ### wp-dropins (4) ###
    
    advanced-cache.php: true
    db.php: true
    fatal-error-handler.php: true
    object-cache.php: true
    
    ### wp-active-theme ###
    
    name: Twenty Twenty-One (twentytwentyone)
    version: 1.4
    author: the WordPress team
    author_website: https://ww.wp.xz.cn/
    parent_theme: none
    theme_features: core-block-patterns, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, woocommerce, widgets-block-editor, post-thumbnails, automatic-feed-links, title-tag, post-formats, menus, html5, custom-logo, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-style, editor-font-sizes, custom-background, editor-color-palette, editor-gradient-presets, responsive-embeds, custom-line-height, experimental-link-color, custom-spacing, custom-units, widgets
    theme_path: /Users/Till/Development/Sites/wordpress/wp-content/themes/twentytwentyone
    auto_update: Disabled
    
    ### wp-themes-inactive (12) ###
    
    Avada: version: 7.1.1, author: ThemeFusion, Auto-updates disabled
    Twenty Eleven: version: 3.9, author: the WordPress team, Auto-updates disabled
    Twenty Fifteen: version: 3.0, author: the WordPress team, Auto-updates disabled
    Twenty Fourteen: version: 3.2, author: the WordPress team, Auto-updates disabled
    Twenty Nineteen: version: 2.1, author: the WordPress team, Auto-updates disabled
    Twenty Seventeen: version: 2.8, author: the WordPress team, Auto-updates disabled
    Twenty Sixteen: version: 2.5, author: the WordPress team, Auto-updates disabled
    Twenty Ten: version: 3.5, author: the WordPress team, Auto-updates disabled
    Twenty Thirteen: version: 3.4, author: the WordPress team, Auto-updates disabled
    Twenty Twelve: version: 3.5, author: the WordPress team, Auto-updates disabled
    Twenty Twenty: version: 1.8, author: the WordPress team, Auto-updates disabled
    Twenty Twenty-Two: version: 1.0, author: the WordPress team, Auto-updates disabled
    
    ### wp-mu-plugins (1) ###
    
    DecaLog Early Loader: author: Pierre Lannoy / PerfOps One, version: (undefined)
    
    ### wp-plugins-active (6) ###
    
    Advanced Custom Fields PRO: version: 5.11.4, author: Delicious Brains, Auto-updates disabled
    Log Deprecated Notices: version: 0.4.1, author: Andrew Nacin, Auto-updates disabled
    Object Cache Pro: version: 1.15.0-dev, author: Rhubarb Group, Auto-updates disabled
    Query Monitor: version: 3.7.1, author: John Blackbourn, Auto-updates disabled
    WooCommerce: version: 5.9.0, author: Automattic (latest version: 6.0.0), Auto-updates disabled
    WordPress Beta Tester: version: 3.1.4, author: Peter Westwood, Andy Fragen, Auto-updates disabled
    
    ### wp-plugins-inactive (25) ###
    
    Advanced Custom Fields: version: 5.11.4, author: Delicious Brains, Auto-updates disabled
    Akismet Anti-Spam: version: 4.2.1, author: Automattic, Auto-updates disabled
    All In One WP Security: version: 4.4.9, author: Tips and Tricks HQ, Peter Petreski, Ruhul, Ivy, Auto-updates disabled
    Debug Bar: version: 1.1.2, author: wordpressdotorg, Auto-updates disabled
    DecaLog: version: 3.3.0, author: Pierre Lannoy / PerfOps One, Auto-updates disabled
    Elementor: version: 3.4.8, author: Elementor.com (latest version: 3.5.1), Auto-updates disabled
    Elementor Pro: version: 2.7.3, author: Elementor.com, Auto-updates disabled
    Email Address Encoder: version: 1.0.22, author: Till Krüss, Auto-updates disabled
    Email Address Encoder ✪: version: 0.3.9, author: Till Krüss, Auto-updates disabled
    FakerPress: version: 0.5.1, author: Gustavo Bordoni, Auto-updates disabled
    Humans TXT: version: 1.3.1, author: Till Krüss, Auto-updates disabled
    Jetpack: version: 10.3, author: Automattic (latest version: 10.4), Auto-updates disabled
    LiteSpeed Cache: version: 4.4.5, author: LiteSpeed Technologies, Auto-updates disabled
    Nginx Cache: version: 1.0.5, author: Till Krüss, Auto-updates disabled
    Rank Math SEO: version: 1.0.78, author: Rank Math, Auto-updates disabled
    Redis Object Cache: version: 2.0.22, author: Till Krüss, Auto-updates disabled
    Stream: version: 3.8.2, author: XWP, Auto-updates disabled
    The Events Calendar: version: 5.12.0, author: The Events Calendar (latest version: 5.12.2), Auto-updates disabled
    The Events Calendar: Virtual Events: version: 1.0.3, author: Modern Tribe, Inc., Auto-updates disabled
    The Events Calendar PRO: version: 5.1.4, author: Modern Tribe, Inc., Auto-updates disabled
    W3 Total Cache: version: 2.2.1, author: BoldGrid, Auto-updates disabled
    WooCommerce Admin: version: 2.9.1, author: WooCommerce (latest version: 2.9.4), Auto-updates disabled
    WooCommerce Shipping & Tax: version: 1.25.20, author: WooCommerce, Auto-updates disabled
    WP Rocket: version: 3.8.2, author: WP Media, Auto-updates disabled
    Yoast SEO: version: 17.7.1, author: Team Yoast (latest version: 17.8), Auto-updates disabled
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    imagick_version: Not available
    file_uploads: File uploads is turned off
    post_max_size: 512M
    upload_max_filesize: 512M
    max_effective_size: 512 MB
    max_file_uploads: 20
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
    ghostscript_version: not available
    
    ### wp-server ###
    
    server_architecture: Darwin 21.2.0 arm64
    httpd_software: nginx/1.21.4
    php_version: 8.1.0 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 30
    memory_limit: 512M
    max_input_time: 60
    upload_max_filesize: 512M
    php_post_max_size: 512M
    curl_version: 7.80.0 (SecureTransport) OpenSSL/1.1.1l
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 8.0.27
    client_version: mysqlnd 8.1.0
    max_allowed_packet: 67108864
    max_connections: 151
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /Users/Till/Development/Sites/wordpress/wp-content
    WP_PLUGIN_DIR: /Users/Till/Development/Sites/wordpress/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 512M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    
    ### objectcache ###
    
    general-status: Connected
    general-dropin: Outdated
    general-license: Valid
    general-eviction-policy: noeviction
    general-env: production
    general-multisite: No
    general-global-groups: analytics, users, userlogins, usermeta, user_meta, useremail, userslugs, site-transient, site-options, blog-lookup, blog-details, site-details, rss, global-posts, blog-id-cache, networks, sites, blog_meta
    general-non-persistent-groups: counts, plugins, themes
    general-non-prefetchable-groups: analytics, userlogins, wc_session_id
    general-compressions: LZF, ZSTD
    versions-php: 8.1.0
    versions-igbinary: 3.2.6
    versions-phpredis: 5.3.4
    versions-relay: 0.2.2-dev
    versions-redis: 6.2.6
    versions-plugin: 1.15.0-dev
    versions-dropin: 1.14.3-dev (Outdated)
    statistics-redis-memory: 2.21 MB
    statistics-redis-keys: 240
    statistics-relay-memory: 5 MB of 
    statistics-relay-keys: 403
    config-token: ••••••••bfb1
    config-connector: RedisCachePro\Connectors\RelayConnector
    config-cache: RedisCachePro\ObjectCaches\RelayObjectCache
    config-logger: RedisCachePro\Loggers\ArrayLogger
    config-log_levels: emergency, alert, critical, error
    config-scheme: tcp
    config-host: 127.0.0.1
    config-port: 6379
    config-database: 0
    config-username: null
    config-password: null
    config-prefix: null
    config-maxttl: null
    config-timeout: 2.5s
    config-read_timeout: 2.5s
    config-retry_interval: 100ms
    config-persistent: false
    config-shared: true
    config-async_flush: true
    config-cluster: null
    config-servers: null
    config-cluster_failover: error
    config-replication_strategy: distribute
    config-serializer: igbinary
    config-compression: lzf
    config-global_groups: null
    config-non_persistent_groups: null
    config-non_prefetchable_groups: null
    config-prefetch: false
    config-split_alloptions: true
    config-relay_listeners: false
    config-flush_network: all
    config-tls_options: null
    config-save_commands: true
    config-debug: true
    constants-WP_DEBUG: true
    constants-SAVEQUERIES: true
    constants-WP_REDIS_DIR: undefined
    constants-WP_REDIS_DISABLED: undefined
    constants-WP_REDIS_CONFIG: {
        "debug": true,
        "url": "redis://[email protected]:6379",
        "client": "relay",
        "token": "••••••••bfb1",
        "timeout": 2.5,
        "read_timeout": 2.5,
        "async_flush": true,
        "shared": true,
        "split_alloptions": true,
        "compression": "lzf",
        "serializer": "igbinary"
    }
    
    Thread Starter Till Krüss

    (@tillkruess)

    And finally, right before the fatal error I’m seeing these deprecation notices in my error log:

    
    [21-Dec-2021 17:36:17 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/features/class-dmonitor.php on line 668
    [21-Dec-2021 17:36:17 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/features/class-dmonitor.php on line 668
    [21-Dec-2021 17:36:17 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/features/class-dmonitor.php on line 668
    [21-Dec-2021 17:36:17 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/features/class-dmonitor.php on line 668
    [21-Dec-2021 17:36:17 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/features/class-dmonitor.php on line 668
    [21-Dec-2021 17:36:17 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/features/class-dmonitor.php on line 668
    [21-Dec-2021 17:36:17 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/features/class-dmonitor.php on line 668
    [21-Dec-2021 17:36:17 UTC] PHP Deprecated:  Constant FILTER_SANITIZE_STRING is deprecated in /Users/Till/Development/Sites/wordpress/wp-content/plugins/decalog/includes/features/class-dmonitor.php on line 668
    
    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello Till!
    Thank you for the test drive… DecaLog is obviously not ready for PHP 8.1 🙁
    I think I have now a goal for Christmas and New Year’s Eve 😀

    Thanks for the hint. It will be fixed in the next release…

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hi Till!
    DecaLog is now compatible with PHP 8.1. It is not yet released here, but if you want to test it, you can => https://github.com/Pierre-Lannoy/wp-decalog

    Have a nice day!

    Thread Starter Till Krüss

    (@tillkruess)

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Fatal error: Uncaught Error: Call to a member function inc_dev_counter()’ is closed to new replies.