Title: Bug Report: Undefined.
Last modified: January 29, 2023

---

# Bug Report: Undefined.

 *  Resolved [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/)
 * PHP version: 8.1.14
 * Symptoms: Analytics don’t appear in the dashboard and clicking directly to the
   Search Console creates an endless “Fetching data…” loop. The browser console 
   is also turning back 401 (unauthorized) and 500 server errors. There is nowhere
   for the user to enter or verify any credentials.
 * WordPress debugger output:
 * `Warning: Undefined array key "credentials" in /home/.../public_html/wp-content/
   plugins/search-console/includes/Api.php on line 60
   Warning: Trying to access 
   array offset on value of type null in /home/.../public_html/wp-content/plugins/
   search-console/includes/Api.php on line 60Warning: Undefined array key "credentials"
   in /home/.../public_html/wp-content/plugins/search-console/includes/Api.php on
   line 61Warning: Trying to access array offset on value of type null in /home/.../
   public_html/wp-content/plugins/search-console/includes/Api.php on line 61Warning:
   Undefined array key "credentials" in /home/.../public_html/wp-content/plugins/
   search-console/includes/Api.php on line 62Warning: Trying to access array offset
   on value of type null in /home/.../public_html/wp-content/plugins/search-console/
   includes/Api.php on line 62

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/bug-report-undefined/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bug-report-undefined/page/2/?output_format=md)

 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16419738)
 * Are you talking about dashboard widget?
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16419796)
 * Yes. The dashboard widget isn’t showing anything and neither is the dedicated
   Search Console section.
 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16420006)
 * Have you addedd client id and client secret on settings pag?
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16421628)
 * Prior to the update, yes, and it was working. Now, the Settings page is also 
   in a forever “Fetching data…” loop. There is no option to add credentials.
 * Update: I just uninstalled and reinstalled the plugin. The issue persists.
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16421689)
 * Update: I rolled one of my websites back to version 2.5.0 and it works correctly
   now. I’m letting the issues persist on the other website so that we can continue
   troubleshooting.
 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16422009)
 * Can you share an url?
 * Can you try to manually delete ‘search_console’ option from wp_options db table?
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423192)
 * This is the website I’m using to troubleshoot:
 * [https://scribestories.com/](https://scribestories.com/)
 * I’m now looking at the wp_options database table. I see search_console, search_console_token,
   searchconsole_settings, searchconsole_token, and serach_console_version (with
   the misspelling in case that’s relevant).
 * Delete all entries or only search_console by itself?
 * Thank you!
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423207)
 * Update: My website just went down with a database error. One sec.
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423369)
 * Update: My website is back up. I was silly and dropped a whole table instead 
   of deleting just the intended entries. This is why we keep backups, kids. Anyway,
   I’m ready to troubleshoot again.
 * Just search_console or all of the related entries?
 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423556)
 * Please try to delete search_console options only.
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423608)
 * Clarification: I see option_id, option_name, option_value, and autoload.
 * Do you want me to just remove the contents of option_value (it appears to hold
   my site verification credentials) or delete the whole row?
 * Thank you.
 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423704)
 * You should delete the row.
 * However you can try to update to latest, uninstall and then install again.
 * I’ve added a reset on uninstall.
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423715)
 * We’re making progress! The Settings screen now allows me to enter my credentials
   since deleting the row. However, there seems to still be an error with the redirect
   when I attempt to sign in to Google.
 * `**Access blocked: This app’s request is invalid**
   You can’t sign in because 
   this app sent an invalid request. You can try again later, or contact the developer
   about this issue. [Learn more about this error](https://developers.google.com/identity/protocols/oauth2/javascript-implicit-flow#authorization-errors-origin-mismatch)
   If you are a developer of this app, see error details.Error 400: redirect_uri_mismatch
 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423719)
 * Have you created a project in developer console?
 * Have you added your site url as authorized JS origin?
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/#post-16423740)
 * Thank you. You got it. I needed to add my website as an authorized JavaScript
   origin.
 * But now, I’m getting a new issue. I’ve added my credentials, signed into Google,
   and whenever I return to view the Search Console section, I get “You need to 
   authenticate and set a site on settings page.”
 * My website is the one selected in the dropdown by default, so I thought clicking
   Update would be sufficient. Do I need to do something more?

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/bug-report-undefined/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/bug-report-undefined/page/2/?output_format=md)

The topic ‘Bug Report: Undefined.’ is closed to new replies.

 * ![](https://ps.w.org/search-console/assets/icon-256x256.png?rev=3089160)
 * [Search Console](https://wordpress.org/plugins/search-console/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-console/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-console/)
 * [Active Topics](https://wordpress.org/support/plugin/search-console/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-console/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-console/reviews/)

 * 22 replies
 * 2 participants
 * Last reply from: [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16426575)
 * Status: resolved