• Resolved chordzone

    (@chordzone)


    Whenever I try to activate Site Kit, I’m getting the following error:

    Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in?/home/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php?on line?403

    Warning: Cannot modify header information – headers already sent by (output started at /home/…/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php:403) in?/home…/pluggable.php?on line?1435

    Warning: Cannot modify header information – headers already sent by (output started at /home/…/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php:403) in?/home/…/wp-includes/pluggable.php?on line?1438

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @chordzone. We’re aware of the deprecation notice you referenced, which can occur with using latest versions of PHP. You’ll find out more on this?here. While we will be providing a fix for this, note that this notice typically doesn’t impact any Site Kit functionality.

    So we can determine what’s haopening in your case, please share the following:

    1. Your Site Health information. You can use this form to share privately if preferred.??
    2. When you mention “Site Kit Not Getting Activated“, do you see any errors on the Site Kit dashboard? Feel free to screen recording of your experience. You can use a service such as Loom or RecordIt to share a screen recording, while using the same form to share a link to this recording privately.

    Let me know if you have any questions with the above.

    Plugin Support James Osborne

    (@jamesosborne)

    As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist.

    Thread Starter chordzone

    (@chordzone)

    Here’s the health info:

    ` wp-core
    
    version: 6.5
    site_language: en_US
    user_language: en_US
    timezone: Asia/Kolkata
    permalink: /%year%/%monthnum%/%postname%.html
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 6
    dotorg_communication: true wp-paths-sizes
    
    wordpress_path: /home/chordzon/public_html
    wordpress_size: 11.59 GB (12443758434 bytes)
    uploads_path: /home/chordzon/public_html/wp-content/uploads
    uploads_size: 3.99 GB (4279225130 bytes)
    themes_path: /home/chordzon/public_html/wp-content/themes
    themes_size: 67.06 MB (70318991 bytes)
    plugins_path: /home/chordzon/public_html/wp-content/plugins
    plugins_size: 198.63 MB (208276455 bytes)
    database_size: 923.92 MB (968802108 bytes)
    total_size: 16.74 GB (17970381118 bytes) wp-dropins (1)
    
    advanced-cache.php: true wp-active-theme
    
    name: Newspaper (Newspaper)
    version: 12.6.5
    author: tagDiv
    author_website: https://themeforest.net/user/tagDiv/portfolio
    parent_theme: none
    theme_features: core-block-patterns, post-formats, post-thumbnails, automatic-feed-links, html5, woocommerce, bbpress, align-wide, align-full, editor-font-sizes, widgets-block-editor, editor-style, menus, widgets
    theme_path: /home/chordzon/public_html/wp-content/themes/Newspaper
    auto_update: Disabled wp-themes-inactive (1)
    
    Twenty Twenty-Four: version: 1.1, author: the WordPress team, Auto-updates disabled wp-plugins-active (13)
    
    Ad Inserter: version: 2.7.34, author: Igor Funa, Auto-updates enabled
    Display Posts: version: 3.0.2, author: Bill Erickson, Auto-updates enabled
    Heartbeat Control by WP Rocket: version: 2.0.1, author: WP Rocket, Auto-updates disabled
    Jetpack: version: 13.3, author: Automattic, Auto-updates enabled
    Lazy Load for Videos: version: 2.18.3, author: Kevin Weber, Auto-updates disabled
    Site Kit by Google: version: 1.124.0, author: Google, Auto-updates enabled
    tagDiv Cloud Library: version: 3.4 | built on 11.03.2024 11:04, author: tagDiv, Auto-updates enabled
    tagDiv Composer: version: 4.8 | built on 11.03.2024 11:04, author: tagDiv, Auto-updates enabled
    Term Management Tools: version: 2.0.1, author: theMikeD, scribu, Auto-updates enabled
    UpdraftPlus - Backup/Restore: version: 1.24.2, author: UpdraftPlus.Com, DavidAnderson, Auto-updates enabled
    Wordfence Security: version: 7.11.5, author: Wordfence, Auto-updates enabled
    WP Super Cache: version: 1.12.0, author: Automattic, Auto-updates enabled
    Yoast SEO: version: 22.4, author: Team Yoast, Auto-updates enabled wp-plugins-inactive (2)
    
    Ezoic: version: 2.9.7, author: Ezoic Inc., Auto-updates disabled
    WP-Optimize - Clean, Compress, Cache: version: 3.3.1, author: David Anderson, Ruhani Rabin, Team Updraft, 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: 1
    post_max_size: 8M
    upload_max_filesize: 2M
    max_effective_size: 2 MB
    max_file_uploads: 20
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: unknown wp-server
    
    server_architecture: Linux 3.10.0-1160.105.1.vz7.214.3 x86_64
    httpd_software: Apache
    php_version: 8.2.17 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 100000000
    memory_limit: 6024M
    max_input_time: 60
    upload_max_filesize: 2M
    php_post_max_size: 8M
    curl_version: 8.7.1 OpenSSL/1.1.1w
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    current: 2024-04-09T17:30:29+00:00
    utc-time: Tuesday, 09-Apr-24 17:30:29 UTC
    server-time: 2024-04-09T23:00:25+05:30 wp-database
    
    extension: mysqli
    server_version: 10.3.39-MariaDB
    client_version: mysqlnd 8.2.17
    max_allowed_packet: 268435456
    max_connections: 200 wp-constants
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/chordzon/public_html/wp-content
    WP_PLUGIN_DIR: /home/chordzon/public_html/wp-content/plugins
    WP_MEMORY_LIMIT: 6024M
    WP_MAX_MEMORY_LIMIT: 3024M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined wp-filesystem
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable jetpack
    
    site_id: 223712321
    ssl_cert: No
    time_diff: undefined
    version_option: 13.3:1712166179
    old_version: 13.2.2:1711968556
    public: Public
    master_user: #1 admin
    is_offline_mode: off
    is_offline_mode_constant: off
    current_user: #1 admin
    tokens_set: Blog User
    blog_token: n3n91xc1yO^)tYA&2ZL!xopGKx*510m!
    user_token: wJAhQg0qjVbIQdYZN@3Dv6OHy(kDHpK%
    version: 13.3
    jp_plugin_dir: /home/chordzon/public_html/wp-content/plugins/jetpack/
    plan: free
    protect_header: {"trusted_header":"HTTP_X_REAL_IP","segments":0,"reverse":false}
    full_sync: {"started":"Mon, 01 Apr 2024 10:50:03 +0000","finished":"Mon, 01 Apr 2024 10:50:04 +0000","progress":{"options":{"finished":true},"functions":{"finished":true},"constants":{"finished":true},"users":{"total":"1","sent":1,"finished":true,"last_sent":"1"},"network_options":{"finished":true}},"config":{"options":true,"functions":true,"constants":true,"users":[1],"network_options":true}}
    sync_size: undefined
    sync_lag: 0 seconds
    full_sync_size: undefined
    full_sync_lag: 0 seconds
    idc_urls: {"home":"https:\/\/www.chordzone.org","siteurl":"https:\/\/www.chordzone.org","WP_HOME":"","WP_SITEURL":""}
    idc_error_option: false
    idc_optin: true
    cxn_tests: All Pass. google-site-kit
    
    version: 1.124.0
    php_version: 8.2.17
    wp_version: 6.5
    reference_url: https://www.chordzone.org
    amp_mode: no
    site_status: connected-site
    user_status: not authenticated
    verification_status: verified-file
    connected_user_count: none
    active_modules: site-verification, search-console, adsense, analytics-4, pagespeed-insights
    recoverable_modules: none
    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/adsense.readonly: ?
    https://www.googleapis.com/auth/analytics.readonly: ?
    https://www.googleapis.com/auth/tagmanager.readonly: ?
    capabilities:
    googlesitekit_authenticate: ?
    googlesitekit_setup: ?
    googlesitekit_view_posts_insights: ?
    googlesitekit_view_dashboard: ?
    googlesitekit_manage_options: ?
    googlesitekit_update_plugins: ?
    googlesitekit_view_splash: ?
    googlesitekit_view_authenticated_dashboard: ?
    googlesitekit_view_wp_dashboard_widget: ?
    googlesitekit_view_admin_bar_menu: ?
    googlesitekit_view_shared_dashboard: ?
    googlesitekit_read_shared_module_data::["search-console"]: ?
    googlesitekit_read_shared_module_data::["adsense"]: ?
    googlesitekit_read_shared_module_data::["analytics-4"]: ?
    googlesitekit_read_shared_module_data::["pagespeed-insights"]: ?
    googlesitekit_manage_module_sharing_options::["search-console"]: ?
    googlesitekit_manage_module_sharing_options::["adsense"]: ?
    googlesitekit_manage_module_sharing_options::["analytics-4"]: ?
    googlesitekit_manage_module_sharing_options::["pagespeed-insights"]: ?
    googlesitekit_delegate_module_sharing_management::["search-console"]: ?
    googlesitekit_delegate_module_sharing_management::["adsense"]: ?
    googlesitekit_delegate_module_sharing_management::["analytics-4"]: ?
    googlesitekit_delegate_module_sharing_management::["pagespeed-insights"]: ?
    enabled_features:
    adsModule: ?
    audienceSegmentation: ?
    conversionInfra: ?
    gm3Components: ?
    search-console_shared_roles: none
    search-console_management: owner
    adsense_shared_roles: none
    adsense_management: owner
    analytics-4_shared_roles: none
    analytics-4_management: owner
    pagespeed-insights_shared_roles: none
    pagespeed-insights_management: all_admins
    search_console_property: https://www.chordzone.org/
    adsense_account_id: pub-880?????????????
    adsense_client_id: ca-pub-880?????????????
    adsense_account_status: ready
    adsense_site_status: ready
    adsense_use_snippet: yes
    adsense_web_stories_adunit_id: none
    adsense_setup_completed_timestamp: 1686070959
    adsense_abr_use_snippet: yes
    adsense_abr_use_error_protection_snippet: yes
    adsense_abr_setup_status: setup-confirmed
    analytics_4_account_id: 3917????
    analytics_4_ads_conversion_id: none
    analytics_4_property_id: 3072133??
    analytics_4_web_data_stream_id: 4758??????
    analytics_4_measurement_id: G-KL????????
    analytics_4_use_snippet: yes
    analytics_4_available_custom_dimensions: none
    analytics_4_ads_linked: false
    analytics_4_ads_linked_last_synced_at: undefined
    analytics_4_adsense_linked: undefined
    analytics_4_adsense_linked_last_synced_at: 0

    This is what I’m getting after clicking on Setup Site Kit: https://prnt.sc/LhsUCPnQHkEz

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for sharing @chordzone. If you wish to ensure the PHP deprecation notices no longer appear, you can downgrade to PHP 8.1 if you wish. I can see you’re using a more recent version.

    Regarding the “Cannot modify header information” errors, this may also not occur with a different version of PHP. Are you able to access your hosting control panel to switch PHP versions?

    Thread Starter chordzone

    (@chordzone)

    Hi, I just changed the PHP vesion to 8.1.

    Here are the errors that I received: https://prnt.sc/ThHOP7H8hUKr

    When I check site kit dashboard, everything seems to look normal though

    Plugin Support James Osborne

    (@jamesosborne)

    Appreciate you sharing these insights. We’ve since created a GitHub issue for the deprecation notices you reported, see below:
    https://github.com/google/site-kit-wp/issues/8589

    We’ll work in ensuring these no longer occur.

    In relation to your other error, and not being able to activate the plugin, can you manually remove the plugin from your file system, before then installing and setting up the plugin once more? You’ll find the plugin located at wp-content/plugins/google-site-kit.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Site Kit Not Getting Activated’ is closed to new replies.