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

---

# Bug Report: Undefined.

 *  Resolved [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 3 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 7 replies - 16 through 22 (of 22 total)

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

 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16423759)
 * Update: I tweaked it into working by switching to a second website associated
   with the same Google account, then switching back before saving, but it doesn’t
   appear to select the first website in the dropdown by default.
 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16423778)
 * Please be sure you have select site and clicked on save button.
 * If you can, check the first ajax request on page load to check if site option
   is correctly populated.
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16423802)
 * It doesn’t seem to be populating properly if there is only one website in the
   dropdown. I just updated Search Console on another website that only has the 
   one and I’m not sure how to get it to recognize that an option is already selected.
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16423865)
 * Here are some screenshots in case they’re helpful.
    1. With more than one website, I can get it working correctly: [https://i.imgur.com/QBdTLgA.png](https://i.imgur.com/QBdTLgA.png)
    2. With only one website, I can’t get it working at all: [https://i.imgur.com/4Q348LF.png](https://i.imgur.com/4Q348LF.png)
 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16423901)
 * Can you check with latest update?
 *  Thread Starter [tinkerjet](https://wordpress.org/support/users/tinkerjet/)
 * (@tinkerjet)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16425693)
 * You’re a superstar! Everything is running perfectly now. I’ll mark this issue
   as resolved.
 * Thank you.
 *  Plugin Author [tropicalista](https://wordpress.org/support/users/tropicalista/)
 * (@tropicalista)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16426575)
 * Thanks for your help in debugging.

Viewing 7 replies - 16 through 22 (of 22 total)

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

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, 3 months ago](https://wordpress.org/support/topic/bug-report-undefined/page/2/#post-16426575)
 * Status: resolved