• Resolved tinkerjet

    (@tinkerjet)


    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 60

    Warning: Undefined array key "credentials" in /home/.../public_html/wp-content/plugins/search-console/includes/Api.php on line 61

    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 61

    Warning: Undefined array key "credentials" in /home/.../public_html/wp-content/plugins/search-console/includes/Api.php on line 62

    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 62

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author tropicalista

    (@tropicalista)

    Are you talking about dashboard widget?

    Thread Starter tinkerjet

    (@tinkerjet)

    Yes. The dashboard widget isn’t showing anything and neither is the dedicated Search Console section.

    Plugin Author tropicalista

    (@tropicalista)

    Have you addedd client id and client secret on settings pag?

    Thread Starter tinkerjet

    (@tinkerjet)

    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

    (@tinkerjet)

    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

    (@tropicalista)

    Can you share an url?

    Can you try to manually delete ‘search_console’ option from wp_options db table?

    Thread Starter tinkerjet

    (@tinkerjet)

    This is the website I’m using to troubleshoot:

    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

    (@tinkerjet)

    Update: My website just went down with a database error. One sec.

    Thread Starter tinkerjet

    (@tinkerjet)

    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

    (@tropicalista)

    Please try to delete search_console options only.

    Thread Starter tinkerjet

    (@tinkerjet)

    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

    (@tropicalista)

    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

    (@tinkerjet)

    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
    If you are a developer of this app, see?error details.
    Error 400: redirect_uri_mismatch

    Plugin Author tropicalista

    (@tropicalista)

    Have you created a project in developer console?

    Have you added your site url as authorized JS origin?

    Thread Starter tinkerjet

    (@tinkerjet)

    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)
  • The topic ‘Bug Report: Undefined.’ is closed to new replies.