Closed jamesozzie closed 2 months ago
last time there is only one that error:
E_DEPRECATED strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in file /wp-content/plugins/google-site-kit/includes/Modules/Analytics_4/Report.php on line 112
other e_deprecated is not seen anyway..
PHP 8.1 and newer
still in Site Kit by Google v1.125.0
error showed for example at /wp-admin/ (Dashboard) Site Kit Summary
there is NO 'compareStartDate' and 'compareEndDate' in keys :
1) Google\Site_Kit\Core\REST_API\Data_Request::__set_state(array( 'method' => 'GET', 'type' => 'modules', 'identifier' => 'analytics-4', 'datapoint' => 'report', 'data' => array ( 'slug' => 'analytics-4', 'datapoint' => 'report', 'metrics' => array ( 0 => array ( 'name' => 'screenPageViews', ), ), 'dimensions' => array ( 0 => array ( 'name' => 'pagePath', ), ), 'startDate' => '2024-03-26', 'endDate' => '2024-04-22', 'orderby' => array ( 0 => array ( 'metric' => array ( 'metricName' => 'screenPageViews', ), 'desc' => 'true', ), ), 'limit' => '5', '_locale' => 'user', ), 'key' => NULL, ))
2) Google\Site_Kit\Core\REST_API\Data_Request::__set_state(array( 'method' => 'GET', 'type' => 'modules', 'identifier' => 'analytics-4', 'datapoint' => 'report', 'data' => array ( 'slug' => 'analytics-4', 'datapoint' => 'report', 'metrics' => array ( 0 => array ( 'name' => 'screenPageViews', ), ), 'dimensions' => array ( 0 => array ( 'name' => 'pagePath', ), 1 => array ( 'name' => 'pageTitle', ), ), 'startDate' => '2024-03-26', 'endDate' => '2024-04-22', 'dimensionFilters' => array ( 'pagePath' => array ( 0 => '/', 1 => '/tym/2016/pardubicka-rota/', 2 => '/tym/2018/alfa-skvadra-tym-dynamickejch-cuprstar-sekacskejch-vlkousu/', 3 => '/tym/2022/', 4 => '/tym/2022/konska-hlava-na-skrini-2/', ), ), 'orderby' => array ( 0 => array ( 'metric' => array ( 'metricName' => 'screenPageViews', ), 'desc' => 'true', ), ), 'limit' => '25', '_locale' => 'user', ), 'key' => NULL, ))
I do have a similar error that only appears when Site Kit is active, and the error doesn't reference any Site Kit files:
Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/plastiskip.com/httpdocs/wp-includes/formatting.php on line 4494
This is on a test site and it occurs with only SK active.
In order to create this error, I had to enable Dashboard Sharing with an editor profile. The error only occurs for this editor. The error also exists with only SC active. Happy to share a login for test purposes.
In my case also, this could be related to my server setup, given I see the below at present for my admin user. Rather than being server related, it's IPv6 related as when I enable the IPv6 plugin, the dashboard loads once more.
I do have a site active that is portraying similar errors. Error reporting is enabled with PHP 8.1.27 active.
These errors consistently appear when connecting any module or when setting up SK.
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /home/dh_tbd233/rkish.com/wp-content/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/dh_tbd233/rkish.com/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php:403) in /home/dh_tbd233/rkish.com/wp-includes/pluggable.php on line 1435
Warning: Cannot modify header information - headers already sent by (output started at /home/dh_tbd233/rkish.com/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php:403) in /home/dh_tbd233/rkish.com/wp-includes/pluggable.php on line 1438
ok, now it moved v1.131.0
E_DEPRECATED strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in file /wp-content/plugins/google-site-kit/includes/Modules/Analytics_4/Report/ReportParsers.php on line 94
IB ✔️
@mohitwp the QAB mentions error logs, so I was wondering if you looked at the log files to ensure no errors were not appearing there too? I don't think TasteWP offers access to these files so you will likely need to set up a test site with our paid InstaWP site to double check. I have moved this back to QA and assigned to you.
@wpdarren During my test, I enabled error logging on the TasteWP site using the File Manager plugin. I also used the Debug Bar and Query Monitor plugins. However, no errors appeared for me. But, I will perform one more round on InstaWP.
PHP Deprecated: Calling get_class() without arguments is deprecated in /home/yodokatuze1763/web/robust-dingo-ffec06.instawp.xyz/public_html/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/Http/REST.php on line 49
@mohitwp Thanks. Yes, that will require some digging in a new follow-up issue, since it seems to be coming from 3rd party library. I haven't seen that notice during my testing
Thank you, @zutigrm! I will create a separate ticket for you to investigate the PHP warning I mentioned earlier. I’m not seeing any warnings on the TasteWP site; they only appear on the InstaWP site.
Bug Description
As reported by one user in the forums, there are deprecation notices stemming from the plugin, and not part of any third party dependency. These can be seem below:
Testing underway, with more insights and log files to be provided.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
convertDeprecationsToExceptions
attributeTest Coverage
QA Brief
Changelog entry