Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Alright, @jrfoell, I’m following you over on Github to make sure we can continue the chat about this bug (and for future bug reporting).

    So, I just:
    1) removed the Saved ID and the Client Secret.
    2) Clicked Save
    3) Deleted the Cache
    4) Clicked Save
    5) Reinserted the saved ID and the client secret
    6) Clicked Save
    7) Received “New Strava token retrieved. Successfully authenticated.”

    …and still it doesn’t work.

    Is it possible to find the authorization code somewhere in the database or wordpress installation ?

    For good measure switched off all plugins and tested if that had an impact. Made no difference.

    I’d say the problem is well-known. This search shows that a bunch of sites have at least the same error message.

    How do I start from scratch? Uninstall, clear all data everywhere, reinstall, re-authenticate. I can’t seem to find out how, but I’ll do it with a little help.

    Sure, @jrfoell, how can I help?

    Looks like @sebastianerb gave up on solving this problem. How about you, @bartjanssen ?

    At https://thusgaard.com I seem to be having a similar issue. With debug set to true, this is what I get the text below. I should probably reauthenticate, but I’ve been looking around and I have no idea how:

    Warning: Invalid argument supplied for foreach() in /var/www/thusgaard.com/public_html/wp-content/plugins/wp-strava/src/WPStrava/AuthRefresh.php on line 47
    WP Strava ERROR Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Mon, 19 Jul 2021 14:01:56 GMT
                        [content-type] => application/json; charset=utf-8
                        [via] => 1.1 linkerd, 1.1 linkerd
                        [vary] => Origin
                        [server] => nginx/1.19.5
                        [status] => 401 Unauthorized
                        [x-request-id] => b78bd4cf-2082-4f46-8ec7-efff504e0945
                        [cache-control] => no-cache
                        [referrer-policy] => strict-origin-when-cross-origin
                        [x-frame-options] => DENY
                        [content-encoding] => gzip
                        [x-xss-protection] => 1; mode=block
                        [x-download-options] => noopen
                        [x-content-type-options] => nosniff
                        [x-permitted-cross-domain-policies] => none
                    )
    
            )
    
        [body] => {"message":"Authorization Error","errors":[{"resource":"Athlete","field":"access_token","code":"invalid"}]}
        [response] => Array
            (
                [code] => 401
                [message] => Unauthorized
            )
    
        [cookies] => Array
            (
            )
    
        [filename] => 
        [http_response] => WP_HTTP_Requests_Response Object
            (
                [response:protected] => Requests_Response Object
                    (
                        [body] => {"message":"Authorization Error","errors":[{"resource":"Athlete","field":"access_token","code":"invalid"}]}
                        [raw] => HTTP/1.1 401 Unauthorized
    Date: Mon, 19 Jul 2021 14:01:56 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: close
    Via: 1.1 linkerd, 1.1 linkerd
    Vary: Origin
    Server: nginx/1.19.5
    Status: 401 Unauthorized
    X-Request-Id: b78bd4cf-2082-4f46-8ec7-efff504e0945
    Cache-Control: no-cache
    Referrer-Policy: strict-origin-when-cross-origin
    X-FRAME-OPTIONS: DENY
    content-encoding: gzip
    X-XSS-Protection: 1; mode=block
    X-Download-Options: noopen
    X-Content-Type-Options: nosniff
    X-Permitted-Cross-Domain-Policies: none
    
    {"message":"Authorization Error","errors":[{"resource":"Athlete","field":"access_token","code":"invalid"}]}
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Mon, 19 Jul 2021 14:01:56 GMT
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/json; charset=utf-8
                                            )
    
                                        [via] => Array
                                            (
                                                [0] => 1.1 linkerd, 1.1 linkerd
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => Origin
                                            )
    
                                        [server] => Array
                                            (
                                                [0] => nginx/1.19.5
                                            )
    
                                        [status] => Array
                                            (
                                                [0] => 401 Unauthorized
                                            )
    
                                        [x-request-id] => Array
                                            (
                                                [0] => b78bd4cf-2082-4f46-8ec7-efff504e0945
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => no-cache
                                            )
    
                                        [referrer-policy] => Array
                                            (
                                                [0] => strict-origin-when-cross-origin
                                            )
    
                                        [x-frame-options] => Array
                                            (
                                                [0] => DENY
                                            )
    
                                        [content-encoding] => Array
                                            (
                                                [0] => gzip
                                            )
    
                                        [x-xss-protection] => Array
                                            (
                                                [0] => 1; mode=block
                                            )
    
                                        [x-download-options] => Array
                                            (
                                                [0] => noopen
                                            )
    
                                        [x-content-type-options] => Array
                                            (
                                                [0] => nosniff
                                            )
    
                                        [x-permitted-cross-domain-policies] => Array
                                            (
                                                [0] => none
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://www.strava.com/api/v3/athlete/activities?&timeout=30
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )
    • This reply was modified 3 years, 7 months ago by gubbe.

    I just upgraded and have the same problem:

    Expected parameter 1 to be an array, string given in …/wp-includes/rest-api/class-wp-rest-server.php on line 1402

    Great! This fixed everything – thanks!

    Was this issue solved? I seem to be having the exact same issue.

    Change the design – potentially use one of the designs from https://www.alexking.org/software/wordpress/themes/ as a base.

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