Support » Plugin: WP-Strava » plugin has stopped working

  • Resolved jtibbles

    (@jtibbles)


    Hi, the app was working great until very recently. Suddenly none of the strava shortcodes are working. Instead I’m seeing something like this:

    WP Strava ERROR Array
    (
        [headers] => Requests_Utility_CaseInsensitiveDictionary Object
            (
                [data:protected] => Array
                    (
                        [date] => Sun, 06 Oct 2019 16:10:54 GMT
                        [content-type] => application/json; charset=utf-8
                        [cache-control] => no-cache
                        [via] => 1.1 linkerd
                        [x-download-options] => noopen
                        [status] => 401 Unauthorized
                        [x-request-id] => bbfcd5f6-6fe1-4030-b516-de199357e350
                        [referrer-policy] => strict-origin-when-cross-origin
                        [x-frame-options] => DENY
                        [x-permitted-cross-domain-policies] => none
                        [x-content-type-options] => nosniff
                        [vary] => Origin
                        [x-xss-protection] => 1; mode=block
                        [content-encoding] => gzip
                    )
    
            )
    
        [body] => {"message":"Authorization Error","errors":[{"resource":"Application","field":"","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":"Application","field":"","code":"invalid"}]}
                        [raw] => HTTP/1.1 401 Unauthorized
    Date: Sun, 06 Oct 2019 16:10:54 GMT
    Content-Type: application/json; charset=utf-8
    Transfer-Encoding: chunked
    Connection: close
    Cache-Control: no-cache
    Via: 1.1 linkerd
    X-Download-Options: noopen
    Status: 401 Unauthorized
    X-Request-Id: bbfcd5f6-6fe1-4030-b516-de199357e350
    Referrer-Policy: strict-origin-when-cross-origin
    X-FRAME-OPTIONS: DENY
    X-Permitted-Cross-Domain-Policies: none
    X-Content-Type-Options: nosniff
    Vary: Origin
    X-XSS-Protection: 1; mode=block
    content-encoding: gzip
    
    {"message":"Authorization Error","errors":[{"resource":"Application","field":"","code":"invalid"}]}
                        [headers] => Requests_Response_Headers Object
                            (
                                [data:protected] => Array
                                    (
                                        [date] => Array
                                            (
                                                [0] => Sun, 06 Oct 2019 16:10:54 GMT
                                            )
    
                                        [content-type] => Array
                                            (
                                                [0] => application/json; charset=utf-8
                                            )
    
                                        [cache-control] => Array
                                            (
                                                [0] => no-cache
                                            )
    
                                        [via] => Array
                                            (
                                                [0] => 1.1 linkerd
                                            )
    
                                        [x-download-options] => Array
                                            (
                                                [0] => noopen
                                            )
    
                                        [status] => Array
                                            (
                                                [0] => 401 Unauthorized
                                            )
    
                                        [x-request-id] => Array
                                            (
                                                [0] => bbfcd5f6-6fe1-4030-b516-de199357e350
                                            )
    
                                        [referrer-policy] => Array
                                            (
                                                [0] => strict-origin-when-cross-origin
                                            )
    
                                        [x-frame-options] => Array
                                            (
                                                [0] => DENY
                                            )
    
                                        [x-permitted-cross-domain-policies] => Array
                                            (
                                                [0] => none
                                            )
    
                                        [x-content-type-options] => Array
                                            (
                                                [0] => nosniff
                                            )
    
                                        [vary] => Array
                                            (
                                                [0] => Origin
                                            )
    
                                        [x-xss-protection] => Array
                                            (
                                                [0] => 1; mode=block
                                            )
    
                                        [content-encoding] => Array
                                            (
                                                [0] => gzip
                                            )
    
                                    )
    
                            )
    
                        [status_code] => 401
                        [protocol_version] => 1.1
                        [success] => 
                        [redirects] => 0
                        [url] => https://www.strava.com/api/v3/activities/2523589168
                        [history] => Array
                            (
                            )
    
                        [cookies] => Requests_Cookie_Jar Object
                            (
                                [cookies:protected] => Array
                                    (
                                    )
    
                            )
    
                    )
    
                [filename:protected] => 
                [data] => 
                [headers] => 
                [status] => 
            )
    
    )

    I am using WordPress 5.2.3 and WP Strava 2.0.
    Nothing has changed on the site to cause the issue to happen. When I access the strava website with the same IDs I see everything fine, but it doesn't seem to work in WordPress now.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have disabled the Strava code on the website unless ?test=1 is included. So if you want to check it out please go here:
    https://www.ebike-europe.com/?test=1

    and look in the header, on the right hand side.
    You can also click through to that particular route and add ?test=1 to the single page and you will also see the code in the “technical information” section at the bottom.
    many thanks

    Plugin Author jrfoell

    (@jrfoell)

    Hey @jtibbles – you’ll have to reauthorize your Strava API account to get things working again. Everyone has to because they’ve switched up the way authentication work. See these upgrade instructions here and let me know if you have trouble: https://github.com/cmanon/wp-strava/wiki/2.0-Upgrade

    Hello @jrfoell, I have the same error, but can’t seem to reauthorize the API account. If If I enter the Client Id and secret and click Save Changes, WP doesn’t redirect me to Strava to authorize the API account. Instead the page is just refreshed and nothing happens. I have tried authorizing manually, but that doesn’t seem to fix the problem.
    One thing I did notice, however, is that I can’t change the app name to a name that includes the word “Strava”, as instructed by the plugin, because Strava’s brand guidelines don’t allow this. Could this be the problem? Or is there anything else I can try?

    Plugin Contributor sebastianerb

    (@sebastianerb)

    Hey @jrfoell ,

    I also have trouble to reauthenticate.
    And even if I get it authenticated with doing some tricks like manipulating the database the frontend tells me that I am unauthorized.

    I tried to fix it actually, but so far I have no solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘plugin has stopped working’ is closed to new replies.