• PHP 8.1, CF7 5.8.6

    [14-Jan-2024 02:40:22 UTC] PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /.../wp-content/plugins/contact-form-7/includes/formatting.php on line 269

    Backtrace:

    /wp-content/plugins/contact-form-7/includes/rest-api.php(355): wpcf7_sanitize_unit_tag(NULL)

    Please fix to avoid issues with CF7 Rest API in higher PHP versions.

    Thanks
    Marc

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter Marc Bernard

    (@luxxor)

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter Marc Bernard

    (@luxxor)

    List of plugins:

    admin-menu-editor
    advanced-database-cleaner-pro
    akismet
    autoptimize
    cf7-mailchimp
    companion-auto-update
    contact-form-7
    cookie-law-info
    cpo-companion
    duplicate-post
    easy-digital-downloads-pro
    edd-all-access
    edd-auto-register
    edd-free-downloads
    edd-git-download-updater
    edd-invoices
    edd-mail-chimp
    edd-multi-currency
    edd-recurring
    edd-social-discounts
    edd-software-licensing
    edd-software-specs
    edd-stripe
    email-encoder-bundle
    emoji-toolbar
    enable-media-replace
    filebird
    flamingo
    google-analytics-for-wordpress
    health-check
    highlight-search-terms
    http-headers
    image-comparison-block
    log-http-requests
    login-logout-menu
    loginpress
    modula-best-grid-gallery
    open-search-document
    really-simple-ssl
    redirection
    safe-svg
    shortcodes-finder
    site-health-tool-manager
    updraftplus
    webp-express
    wedocs
    widget-context
    wordfence
    wordpress-seo
    wp-fastest-cache
    wpfront-scroll-top

    Also happens on another of my sites with these plugins:

    akismet
    companion-auto-update
    contact-form-7
    cookie-notice
    disable-gutenberg
    duplicate-post
    email-encoder-bundle
    enable-media-replace
    google-analytics-for-wordpress
    health-check
    highslide-integration
    http-headers
    inline-google-spreadsheet-viewer
    jquery-archive-list-widget
    newsletter
    newsletter-archive
    newsletter-extensions
    newsletter-import
    newsletter-instasend
    newsletter-lock
    newsletter-wpusers
    open-search-document
    open-web-analytics
    participants-database
    pdb-datepicker
    pdb-field-group-tabs
    really-simple-ssl
    the-events-calendar
    theme-check
    tinymce-custom-styles
    updraftplus
    user-role-editor
    w3-total-cache
    wordfence
    wp-external-links
    wp-polls
    xnau-plugin-updates

    Theme is an updated version of https://github.com/WPChill/cpothemes-theme

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme, deactivating all plugins excluding Contact Form 7, Akismet, Flamingo, Health Check, Really Simple SSL and Wordfence Security, and clearing all cache data.

    Why you are advised to deactivate plugins and switch to the default theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP deprecated: preg_replace(): Passing null to parameter’ is closed to new replies.