• PHP Deprecated: Creation of dynamic property Google\Site_Kit\Modules\Ads\Web_Tag::$home_domain is deprecated in /wp-content/plugins/google-site-kit/includes/Modules/Ads/Web_Tag.php on line 37

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Adam Dunnage

    (@adamdunnage)

    Hello?@pradeeprp, thanks for raising this with us.

    These warnings are not uncommon when using PHP 8.2 and above. These should not impact Site Kit functionality, so please do let me know if you encounter otherwise.

    I’ll also make the team aware of this and add a mention to the related GitHub issue that we have for this.

    Note also that encountering deprecation errors only as a console error or within your PHP logs should have no bearing on Google Ads although you can check this with the product experts at the Google Ads Help Center.

    Thread Starter pradeeprp

    (@pradeeprp)

    Can you atleast suppress the error reporting by using this code
    before the lines as
    // Your existing error suppression code
    $original_error_reporting = error_reporting();

    // Set error reporting to only fatal errors and parse errors
    error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR);

    and after the line as 
    // Restore the original error reporting level if needed
    error_reporting($original_error_reporting);

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @pradeeprp Thank you for the suggestion. Please feel free to add any thoughts you have to the GitHub issue for the team to see.

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