Problem: a.getTime is not a function
-
I recently installed Site Kit on a new Website, and it shows me an error on the graph.
Has anyone had the same problem?
WordPress
6.6.1
PHP version: 8.3
Site Kit Plugin Version: 1.133.0
https://imgur.com/a/e1BFiWaThe page I need help with: [log in to see the link]
-
Thanks for reaching out @aguilartdesign. As this is the inly such report of this so far, please share the following and we can investigate this further or provide you with some troubleshooting steps:
- Your Site Health information. You can use this form to share privately if preferred.
- When checking the Site Kit widget as per your screenshot from a Chrome browser incognito window does the same occur? If so, please share any browser console errors that appear.
- Do you see any errors or warnings when visiting the Site Kit Dashboard, as opposed to the Site Kit widget from your main WordPress dashboard?
Let me know if you have any questions with the above. Depending on the above, we may need to check for any third party plugin conflicts, or I can check this further with the team. Thank you.
I have filled out the form with the corresponding information, additionally I attach a screenshot of debug.log where the errors are shown
https://imgur.com/a/7Uk3dvNThanks for the update @aguilartdesign, much appreciated. In relation to the console errors, see below:
- Deprecated: ltrim(): Passing null to parameter #: There is an open GitHub issue for this and it shouldn’t impact any Site Kit functionality.
- E_DEPRECATED strtotime(): There is also an open GitHub issue for this. As this is a deprecation warning, this also should be resulting in the error you’re facing.
- E_DEPRECATED calling get_class(): While there is no issue for this, I can it also related to a deprecation notice. I’ll check this with the team and report back to you here.
Before proposing further troubleshooting checks, do you see any errors or warnings when visiting the Site Kit Dashboard, as opposed to the Site Kit widget from your main WordPress dashboard? I ask as I’m wondering does the same occur, resulting in you not being able to view some metrics the plugin provides.
It’s the only apparent problem, it doesn’t load the metrics graph, I also understand that the website is new, but it shouldn’t show the error “a.getTime is not a function”.
So far I have not found any additional problem to this, I have been testing and the debug.log only shows the same log that I already shared in the image.
Thanks for the update @aguilartdesign. Just to confirm, you encounter errors or warnings when visiting the Site Kit Dashboard, as opposed to the Site Kit widget from your main WordPress dashboard??Not specifically browser console errors, but errors on the Site Kit tab from wp-admin?
Feel free to a screen recording of your experience. You can use a service such as Loom to share a screen recording, while using the same form previously used to share this privately.?I can then check this with the team or open a GitHub issue if necessary. Thank you.
Hi! @jamesosborne
The error message “a.getTime is not a function” disappeared when displaying the chart that had not been loaded before due to being a new website
But it still shows in the debug.log the “Deprecated: Calling get_class”
“PHP Deprecated: Calling get_class() without arguments is deprecated in /var/www/domain.com/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/Http/REST.php on line 49”
PHP Deprecated: strtotime() is no longer displayed
I attach video in the form
Thanks for the update @aguilartdesign, and appreciate you sharing the recording with details. I’m going to check this with the team and report back to you here, in particular the error you initially reported.
I’ll also check with regards the deprecation notice you encounter that doesn’t have an associated GitHub issue. Many thanks for raising this. I’ll have an update for you later this week.
Thank you very much, great job! Excellent day for you.
Just to let you know that the team were able to replicate the error you reported on the main WordPress dashboard, within the Site Kit widget. Based on this, we created the following GitHub issue:
https://github.com/google/site-kit-wp/issues/9226While there will be a fix out for this soon, it would be great if you could perform the following should the error remain, which can help confirm a third party plugin conflict:
- Install and activate the Health Check & Troubleshooting plugin.
- Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
- From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google“.
- Check for the same error from the main WordPress dashboard.
I’m aware that you no longer encounter the error, however, please do try the above should the same occur. Based on our testing it would likely occur only while there is no data in Search Console or Analytics, meaning possibly a new site. I’ll keep this support topic open in the meantime, while we work on an overall fix. Thanks again for reporting this.
Just to let you know we have a fix out for this error on the Site Kit widget of your dashboard. You’ll find more details on this here.
Let me know if you have any questions on this, and thanks for bringing it to our attention.
- You must be logged in to reply to this topic.