Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • I see a similar error in the debug data

    Notice: Array to string conversion in /srv/htdocs/wp-content/plugins/health-check/includes/class-health-check-debug-data.php on line 1172

    Thread Starter katiehartrick

    (@katiehartrick)

    @strangerstudios thanks, appreciate it.

    @andrewza I don’t run wp_debug in production, I *do* check the php error log.

    Thread Starter katiehartrick

    (@katiehartrick)

    I periodically check my site’s PHP error log and when I do it is _swamped_ with PMPro errors.

    Thread Starter katiehartrick

    (@katiehartrick)

    Thread Starter katiehartrick

    (@katiehartrick)

    @andrewza the site admin has PMPro support membership and access to https://www.paidmembershipspro.com/add-ons/pmpro-toolkit/. Would installing this add-on allow a better analysis to be run on the site?

    Thread Starter katiehartrick

    (@katiehartrick)

    Thanks for this. For those following along at home the solution is documented here: https://wordpress.org/support/topic/php-fatal-error-curly-braces-deprecated-in-php-7-4-and-no-longer-supported/

    Thread Starter katiehartrick

    (@katiehartrick)

    There seems to be a misunderstanding. I have already created a CPT query and filtered it to show a set category.

    
    $args = array(
     'category_name' => 'public',
     'order'    => 'title',
     'post_type'      => 'stories',
     'posts_per_page' => -1
    );

    This relies on web authors setting all public posts to a specific category. My question is, is there a way to filter the query to specifically hide PMPro membership posts? Or is the only way to hide PMPro membership posts from the query is to ensure all public posts have a specific category set (in this example public)

    I’ve read using post__not_in leads to performance issues, and setting a category to exclude means setting another parameter in addition to setting PMPro membership.

    Thread Starter katiehartrick

    (@katiehartrick)

    @andrewza I need to reopen this, during testing I switched “Filter searches and archives?” to yes. I’ve switched it back to no and the stories CPT is showing in search results.

    Related question – is there a way to exclude member pages using a WordPress query? To date, my solution is tagging non-member pages with a specific category and filtering the query using that category.

    • This reply was modified 4 months, 2 weeks ago by katiehartrick.
    Thread Starter katiehartrick

    (@katiehartrick)

    amendment – that snippet did work. Issue closed

    Thread Starter katiehartrick

    (@katiehartrick)

    I’ve tried adding this function to child theme functions.php, the locked stories posts are still showing when user is locked out.

    function pmpro_hide_stories( $post_types ) {
        $post_types[] = 'stories';
        return $post_types;
    }
    add_filter('pmpro_search_filter_post_types', 'pmpro_hide_stories');
    Thread Starter katiehartrick

    (@katiehartrick)

    In settings i’ve set Filter Searches and Archives to No. My custom post type is called “stories”.

    Looks like I need to add a filter to amend this existing function from paid-memberships-pro/includes/content.php

    $pmpro_search_filter_post_types = apply_filters( 'pmpro_search_filter_post_types', array( 'page', 'post' ) );
    if ( ! is_array( $pmpro_search_filter_post_types ) ) {
    	$pmpro_search_filter_post_types = array( $pmpro_search_filter_post_types );		
    }
    Thread Starter katiehartrick

    (@katiehartrick)

    no it happens with new signups

    Thread Starter katiehartrick

    (@katiehartrick)

    PHP 7.4

    
    ### wp-core ###
    
    version: 5.7.2
    site_language: en_AU
    user_language: en_US
    permalink: /%year%/%monthnum%/%postname%/
    https_status: true
    user_registration: 0
    default_comment_status: closed
    multisite: false
    user_count: 8776
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /wordpress/core/5.7.2
    wordpress_size: 50.28 MB (52723211 bytes)
    uploads_path: /srv/htdocs/wp-content/uploads
    uploads_size: 1.12 GB (1207641526 bytes)
    themes_path: /srv/htdocs/wp-content/themes
    themes_size: 2.37 MB (2481854 bytes)
    plugins_path: /srv/htdocs/wp-content/plugins
    plugins_size: 210.97 MB (221217848 bytes)
    database_size: 145.98 MB (153075712 bytes)
    wpcomsh-disk-space-used: 1.3 GB
    wpcomsh-disk-space-quota: 200.0 GB
    
    ### wp-dropins (2) ###
    
    advanced-cache.php: true
    object-cache.php: true
    
    ### wp-active-theme ###
    
    name: Twenty Fifteen Child (twentyfifteen-child)
    version: 1.0.2
    
    ### wp-parent-theme ###
    
    name: Twenty Fifteen (twentyfifteen)
    version: 2.8-wpcom
    author: the WordPress team
    author_website: https://wordpress.org/
    theme_path: /wordpress/themes/pub/twentyfifteen
    
    ### wp-mu-plugins (2) ###
    
    Health Check Troubleshooting Mode: author: (undefined), version: 1.7.2
    WP.com Site Helper: author: (undefined), version: (undefined)
    
    ### wp-plugins-active (37) ###
    
    ACF Content Analysis for Yoast SEO: version: 3.0.1, author: Thomas Kräftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast
    Advanced Custom Fields PRO: version: 5.9.7, author: Delicious Brains
    Advanced Rich Text Tools for Gutenberg: version: 1.2.0, author: Ella Van Durpe
    Akismet Anti-Spam: version: 4.1.9, author: Automattic
    AMP: version: 2.1.3, author: AMP Project Contributors
    Custom Post Type UI: version: 1.9.2, author: WebDevStudios
    Enable Media Replace: version: 3.5.0, author: ShortPixel
    Error Log Monitor: version: 1.7, author: Janis Elsts
    Gravity Forms: version: 2.5.6, author: Gravity Forms
    Gravity Forms Mailchimp Add-On: version: 4.9, author: Gravity Forms
    Health Check & Troubleshooting: version: 1.4.5, author: The WordPress.org community
    Hello Dolly: version: 1.7.2, author: Matt Mullenweg
    Import Users from CSV: version: 1.0.1, author: Andrew Lima
    Jetpack: version: 9.8.1, author: Automattic
    Mediavine Control Panel: version: 2.6.6, author: mediavine
    Native PHP Sessions for WordPress: version: 1.2.3, author: Pantheon
    Ninja Tables: version: 4.1.6, author: WPManageNinja LLC
    Ninja Tables Pro: version: 4.1.6, author: WPManageNinja
    Paid Memberships Pro: version: 2.5.10, author: Stranger Studios
    Paid Memberships Pro - Add Name to Checkout Add On: version: 0.5, author: Stranger Studios
    Paid Memberships Pro - Add PayPal Express Add On: version: .6, author: Paid Memberships Pro
    Paid Memberships Pro - Cancel on Next Payment Date: version: 0.3, author: Paid Memberships Pro
    Paid Memberships Pro - Import Users from CSV Add On: version: .3.4, author: Stranger Studios
    Paid Memberships Pro - Mailchimp Add On: version: 2.3.2, author: Stranger Studios
    Paid Memberships Pro - Member History Add On: version: .3.1, author: Paid Memberships Pro
    Popup Builder: version: 3.84, author: Sygnoos
    Redirection: version: 5.1.1, author: John Godley
    Regenerate Thumbnails Advanced: version: 2.4.0, author: ShortPixel
    Search & Filter Pro: version: 2.5.8, author: Code Amp
    Site Kit by Google: version: 1.35.0, author: Google
    Sucuri Security - Auditing, Malware Scanner and Hardening: version: 1.8.26, author: Sucuri Inc.
    Woobox: version: 1.5, author: Woobox
    WP Content Copy Protection with Color Design: version: 2.3.0, author: Kazuki Yanamoto
    WP OAuth Server - Pro: version: 4.1.8, author: WP OAuth Server
    WP Sync DB: version: 1.5, author: Sean Lang
    WP Sync DB Media Files: version: 1.1.4b1, author: Sean Lang
    Yoast SEO: version: 16.6.1, author: Team Yoast
    
    ### wp-plugins-inactive (11) ###
    
    Classic Editor: version: 1.6, author: WordPress Contributors
    CoBlocks: version: 2.12.1, author: GoDaddy
    Gutenberg: version: 10.9.1, author: Gutenberg Team
    Import Paid Memberships Pro Members from CSV: version: 3.0.4, author: <a href="https://eighty20results.com/thomas-sjolshagen/">Thomas Sjolshagen <thomas@eighty20results.com></a>
    Layout Grid: version: 1.6, author: Automattic
    Page Optimize: version: 0.5.1, author: Automattic
    Paid Memberships Pro - Require Strong Passwords: version: 0.4, author: Stranger Studios
    PayPal Donation: version: 1.3, author: Scott Paterson
    PHP Compatibility Checker: version: 1.5.0, author: WP Engine
    ShortPixel Image Optimizer: version: 4.22.2, author: ShortPixel
    WordPress.com Editing Toolkit: version: 3.9702, author: Automattic
    
    ### wp-media ###
    
    image_editor: Photon_Subsizes_WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    gd_version: bundled (2.1.0 compatible)
    ghostscript_version: not available
    
    ### wp-server ###
    
    server_architecture: Linux 4.9.0-11-amd64 x86_64
    httpd_software: nginx
    php_version: 7.4.20 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 6144
    time_limit: 1200
    memory_limit: 256M
    max_input_time: 1200
    upload_max_size: 2047M
    php_post_max_size: 2047M
    curl_version: 7.77.0 OpenSSL/1.1.0l
    suhosin: false
    imagick_availability: false
    server-headers: 
    	server: nginx
    	date: Sun, 04 Jul 2021 11:20:18 GMT
    	content-type: text/html; charset=UTF-8
    	strict-transport-security: max-age=31536000
    	vary: Accept-Encoding
    	x-hacker: If you're reading this, you should visit automattic.com/jobs and apply to join the fun, mention this header.
    	host-header: WordPress.com
    	expires: Wed, 11 Jan 1984 05:00:00 GMT
    	cache-control: no-cache, must-revalidate, max-age=0
    	content-security-policy: block-all-mixed-content
    	link: Array
    	content-encoding: gzip
    	x-ac: 3.dca _atomic_dca
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.3.21-MariaDB-log
    client_version: mysqlnd 7.4.20
    
    ### wp-constants ###
    
    WP_HOME: https://cleanclothnappies.com
    WP_SITEURL: https://cleanclothnappies.com
    WP_CONTENT_DIR: /srv/htdocs/wp-content
    WP_PLUGIN_DIR: /srv/htdocs/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    
    ### wp-filesystem ###
    
    wordpress: not writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: not writable
    mu-plugins: writable
    
    ### jetpack ###
    
    site_id: 141715339
    ssl_cert: No
    time_diff: undefined
    version_option: 9.8.1:1623176412
    old_version: 9.8:1622561064
    public: Public
    master_user: #6990 cleanclothnappies
    current_user: #9 katiehartrick
    tokens_set: Blog User
    blog_token: 75dGjyBM814bYdxyPrt!htByJoUbb(Kn
    user_token: OTo(vdr)Cm2#015J0NBJ1xQw&@vUk*$s
    version: 9.8.1
    jp_plugin_dir: /wordpress/plugins/jetpack/9.8.1/
    plan: business
    protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}
    full_sync: {"started":"Wed, 12 May 2021 17:02:49 +0000","finished":"Wed, 12 May 2021 18:06:54 +0000","progress":{"constants":{"finished":true},"functions":{"finished":true},"options":{"finished":true},"updates":{"finished":true},"themes":{"finished":true},"users":{"total":"7885","sent":7885,"finished":true,"last_sent":"1"},"terms":{"total":"398","sent":398,"finished":true,"last_sent":"1"},"posts":{"total":"3310","sent":3311,"finished":true,"last_sent":"3"},"comments":{"total":"0","sent":0,"finished":true,"last_sent":"~0"},"term_relationships":{"total":"1930","sent":1930,"finished":true,"last_sent":{"object_id":"1","term_taxonomy_id":"2"}}},"config":{"constants":1,"functions":1,"options":1,"updates":1,"themes":1,"users":1,"terms":1,"posts":1,"comments":1,"term_relationships":1}}
    sync_size: undefined
    sync_lag: 0 seconds
    full_sync_size: undefined
    full_sync_lag: 0 seconds
    idc_urls: {"home":"https:\/\/cleanclothnappies.com","siteurl":"https:\/\/cleanclothnappies.com","WP_HOME":"https:\/\/cleanclothnappies.com","WP_SITEURL":"https:\/\/cleanclothnappies.com"}
    idc_error_option: false
    idc_optin: true
    cxn_tests: All Pass.
    
    ### google-site-kit ###
    
    version: 1.35.0
    php_version: 7.4.20
    wp_version: 5.7.2
    reference_url: https://cleanclothnappies.com
    amp_mode: secondary
    site_status: connected-site
    user_status: not authenticated
    connected_user_count: 2
    active_modules: site-verification, search-console, analytics, pagespeed-insights
    required_scopes: 
    	openid: ✅
    	https://www.googleapis.com/auth/userinfo.profile: ✅
    	https://www.googleapis.com/auth/userinfo.email: ✅
    	https://www.googleapis.com/auth/siteverification: ✅
    	https://www.googleapis.com/auth/webmasters: ✅
    	https://www.googleapis.com/auth/analytics.readonly: ✅
    capabilities: 
    	googlesitekit_authenticate: ✅
    	googlesitekit_setup: ✅
    	googlesitekit_view_posts_insights: ⭕
    	googlesitekit_view_dashboard: ⭕
    	googlesitekit_view_module_details: ⭕
    	googlesitekit_manage_options: ⭕
    enabled_features: 
    	ga4setup: ⭕
    	helpVisibility: ✅
    	ideaHubModule: ⭕
    	serviceSetupV2: ⭕
    	storeErrorNotifications: ⭕
    	userFeedback: ⭕
    	userInput: ⭕
    	widgets.dashboard: ✅
    	widgets.pageDashboard: ✅
    	widgets.moduleScreens: ⭕
    search_console_property: https://cleanclothnappies.com/
    analytics_account_id: 1588•••••
    analytics_property_id: UA-1588•••••••
    analytics_profile_id: 2119•••••
    analytics_use_snippet: yes
    
    ### amp_wp ###
    
    amp_slug_query_var: amp
    amp_slug_defined_late: false
    amp_mode_enabled: transitional
    amp_reader_theme: legacy
    amp_templates_enabled: post, page, attachment, promotions, is_singular, is_front_page, is_home, is_archive, is_author, is_date, is_search, is_404, is_category, is_tag, is_tax[popup-categories], is_post_type_archive[detergents]
    amp_serve_all_templates: true
    amp_css_transient_caching_disabled: n/a
    amp_css_transient_caching_threshold: 5000 transients per day
    amp_css_transient_caching_sampling_range: 14 days
    amp_css_transient_caching_transient_count: undefined
    amp_css_transient_caching_time_series: 
    amp_libxml_version: 2.9.4
    
    
    Thread Starter katiehartrick

    (@katiehartrick)

    @andrewza this error occurred more than 10 times today.

    Screen-Shot-2021-06-08-at-9-02-09-pm

    Thread Starter katiehartrick

    (@katiehartrick)

    Numerous other php error logs, including
    Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /srv/htdocs/wp-content/plugins/php-compatibility-checker/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php on line 1766

Viewing 15 replies - 1 through 15 (of 22 total)