Title: Problem: a.getTime is not a function
Last modified: August 15, 2024

---

# Problem: a.getTime is not a function

 *  Resolved [AguilArt Design](https://wordpress.org/support/users/aguilartdesign/)
 * (@aguilartdesign)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/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.1PHP version: 8.3Site Kit Plugin Version: 1.133.0[https://imgur.com/a/e1BFiWa](https://imgur.com/a/e1BFiWa)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-a-gettime-is-not-a-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17955394)
 * Thanks for reaching out [@aguilartdesign](https://wordpress.org/support/users/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:
    1. Your[ Site Health information](https://i.imgur.com/Rtkmsba.png). You can[ use this form](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
       to share privately if preferred.  
    2. When checking the Site Kit widget as per your screenshot from a Chrome browser
       [ incognito window](https://i.imgur.com/ALzgiHp.png) does the same occur? If
       so, please share any[ browser console errors](https://imgur.com/KyLAzgH.png)
       that appear. 
    3. 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.
 *  Thread Starter [AguilArt Design](https://wordpress.org/support/users/aguilartdesign/)
 * (@aguilartdesign)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17955477)
 * 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/7Uk3dvN](https://imgur.com/a/7Uk3dvN)
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17955539)
 * Thanks for the update [@aguilartdesign](https://wordpress.org/support/users/aguilartdesign/),
   much appreciated. In relation to the console errors, see below:
    - **Deprecated: ltrim(): Passing null to parameter #**: There is an open [GitHub issue](https://github.com/google/site-kit-wp/issues/7809)
      for this and it shouldn’t impact any Site Kit functionality.
    - **E_DEPRECATED strtotime()**: There is also [an open GitHub issue](https://github.com/google/site-kit-wp/issues/8589)
      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.
 *  Thread Starter [AguilArt Design](https://wordpress.org/support/users/aguilartdesign/)
 * (@aguilartdesign)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17955743)
 * 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.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17956539)
 * Thanks for the update [@aguilartdesign](https://wordpress.org/support/users/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[ ](https://imgur.com)[Loom](https://loom.com) to share a screen recording,
   while using the [same form previously used](https://docs.google.com/forms/d/1lhjns2K7c0Ny7ME4gxTcsnYtNUtcMr8BvFpPQi23Y1E/)
   to share this privately. I can then check this with the team or open a GitHub
   issue if necessary. Thank you.
 *  Thread Starter [AguilArt Design](https://wordpress.org/support/users/aguilartdesign/)
 * (@aguilartdesign)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17957496)
 * Hi! [@jamesosborne](https://wordpress.org/support/users/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
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17961727)
 * Thanks for the update [@aguilartdesign](https://wordpress.org/support/users/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.
 *  Thread Starter [AguilArt Design](https://wordpress.org/support/users/aguilartdesign/)
 * (@aguilartdesign)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17964250)
 * Hi [@jamesosborne](https://wordpress.org/support/users/jamesosborne/)
 * Thank you very much, great job! Excellent day for you.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-17971744)
 * 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/9226](https://github.com/google/site-kit-wp/issues/9226)
 * While 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:
    1. Install and activate th[e Health Check & Troubleshooting plugin](https://wordpress.org/plugins/health-check).
    2. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    3. 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“.
    4. 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.
 *  Plugin Support [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-18073801)
 * 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](https://github.com/google/site-kit-wp/issues/9226).
 * Let me know if you have any questions on this, and thanks for bringing it to 
   our attention.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Problem: a.getTime is not a function’ is closed to new replies.

 * ![](https://ps.w.org/google-site-kit/assets/icon-256x256.png?rev=3141863)
 * [Site Kit by Google - Analytics, Search Console, AdSense, Speed](https://wordpress.org/plugins/google-site-kit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-site-kit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-site-kit/)
 * [Active Topics](https://wordpress.org/support/plugin/google-site-kit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-site-kit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-site-kit/reviews/)

## Tags

 * [Site Kit](https://wordpress.org/support/topic-tag/site-kit/)

 * 10 replies
 * 2 participants
 * Last reply from: [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/problem-a-gettime-is-not-a-function/#post-18073801)
 * Status: resolved