INN / Google-Analytics-Popular-Posts

A WordPress plugin that uses Google Analytics data to determine the most popular posts on your site and display a list of popular posts via the included widget.
https://wordpress.org/plugins/ga-popular-posts/
23 stars 7 forks source link

PHP array being dumped in site admin #38

Closed benlk closed 7 years ago

benlk commented 8 years ago

Happening on a WPEngine staging instance.

The dump is happening after div#wp-footer but before any of the footer scripts are output:

screen shot 2016-05-25 at 2 38 46 pm

Here's the text being added to the page, with sensitive details removed:

Google_Client Object
(
    [auth:Google_Client:private] => Google_Auth_OAuth2 Object
        (
            [assertionCredentials:Google_Auth_OAuth2:private] => 
            [state:Google_Auth_OAuth2:private] => 
            [token:Google_Auth_OAuth2:private] => Array
                (
                    [access_token] => 
                    [token_type] => Bearer
                    [expires_in] => 3600
                    [id_token] => 
                    [refresh_token] => 
                    [created] => 
                )

            [client:Google_Auth_OAuth2:private] => Google_Client Object
 *RECURSION*
        )

    [io:Google_Client:private] => 
    [cache:Google_Client:private] => 
    [config:Google_Client:private] => Google_Config Object
        (
            [configuration:protected] => Array
                (
                    [application_name] => Analytic_Bridge
                    [auth_class] => Google_Auth_OAuth2
                    [io_class] => Google_IO_Curl
                    [cache_class] => Google_Cache_Null
                    [base_path] => https://www.googleapis.com
                    [classes] => Array
                        (
                            [Google_IO_Abstract] => Array
                                (
                                    [request_timeout_seconds] => 100
                                )

                            [Google_Http_Request] => Array
                                (
                                    [disable_gzip] => 
                                    [enable_gzip_for_uploads] => 
                                )

                            [Google_Auth_OAuth2] => Array
                                (
                                    [client_id] => 
                                    [client_secret] => 
                                    [redirect_uri] =>
                                    [developer_key] => 
                                    [hd] => 
                                    [prompt] => 
                                    [openid.realm] => 
                                    [include_granted_scopes] => 
                                    [login_hint] => 
                                    [request_visible_actions] => 
                                    [access_type] => offline
                                    [approval_prompt] => auto
                                    [federated_signon_certs_url] => https://www.googleapis.com/oauth2/v1/certs
                                )

                            [Google_Cache_File] => Array
                                (
                                    [directory] => /tmp/Google_Client
                                )

                            [Google_Cache_Null] => Array
                                (
                                    [directory] => /tmp/Google_Client
                                )

                        )

                )

        )

    [deferExecution:Google_Client:private] => 
    [requestedScopes:protected] => Array
        (
            [0] => https://www.googleapis.com/auth/analytics.readonly
            [1] => https://www.googleapis.com/auth/userinfo.email
            [2] => https://www.googleapis.com/auth/userinfo.profile
        )

    [services:protected] => Array
        (
        )

    [authenticated:Google_Client:private] => 
)
aschweigert commented 8 years ago

@rnagle this is fixed, right?

benlk commented 7 years ago

Marking this closed for now; I'm not seeing it in the version of the plugin in https://github.com/INN/Google-Analytics-Popular-Posts/pull/63