Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Should be just fine still with the latest WordPress. I have it running on one of my personal sites without issue

    Thread Starter o2clucy

    (@o2clucy)

    Hi,

    Thank you for your response. We have installed it but are having some issues.

    We have activated it, added in the wiget, put in the username but we are receiving this message: “There has been a critical error on your website.” Is there something we have missed?

    Kind regards,

    Lucy

    • This reply was modified 4 years, 8 months ago by o2clucy.
    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    I would need to know/see the error being triggered to have a better idea of what’s going on.

    Are you able to pull up an error log that would hopefully show the error encountered?

    Thread Starter o2clucy

    (@o2clucy)

    Hi,

    Yes I have a log for you – is there any way to send it over to you? I’d prefer not to post it publicly!

    Kind regards,

    Lucy

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    tw2113 at gmail.com will reach me

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    hmm, much of below is probably more for me when I can circle back around to investigating.

    In regards to you and your usage, I realize the user profile widget may be a main reason to use the plugin, but is it working for other display types thus far? Asking to see if you could use other parts while I investigate.

    The error in question:

    PHP Fatal error: Uncaught Error: Call to a member function get_error_message() on array in /home/o2conlineuk/public_html/flowerpotsbrewery/wp-content/plugins/untappd-checkins-widget/widgets/user_profile.php:449

    Relevant code area:

    // Save only if we get a good response back.
    if ( 200 === wp_remote_retrieve_response_code( $new_profile ) ) {
    	$profile = json_decode( wp_remote_retrieve_body( $new_profile ) );
    	set_transient( $trans_args['transient_name'], $profile, $duration );
    } else {
    	if ( current_user_can( 'manage_options' ) ) {
    		if ( is_array( $new_profile ) && isset( $new_profile['error'] ) ) {
    			$message = $new_profile['error'];
    		} else {
    			$message = $new_profile->get_error_message();
    		}
    
    		printf(
    			esc_html__( 'Admin-only error: %s', 'mb_untappd' ),
    			$message
    		);
    	}
    }
    

    So we’re not receiving a 200 response status, but we’re also not necessarily getting an error message.

    I should probably try out the widget myself with my creds and username to see if it errors for me as well. It’s possible that things changed on their end.

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    Tried with my own user, no issue

    Tried with a typo in the user, and I got the error in question. So, upgrading to the newly released 1.3.3 should prevent the fatal error and provide more information for what’s going on. It’ll still probably give you a message about an issue, but it won’t be a php fatal error.

    Make sure you don’t have a typo in the username. Also make sure you’re not trying to use a venue or brewery username, as the widget here isn’t meant for those types from Untappd.

    Hope this helps, and at least gives more information about what’s going on.

    Thread Starter o2clucy

    (@o2clucy)

    Thank you for all your help!

    “Also make sure you’re not trying to use a venue or brewery username, as the widget here isn’t meant for those types from Untappd.” Can you please clarify what you mean by this?

    We are trying to use untappd for a brewery checkin service on a brochure website – is this not possible?

    Plugin Author Michael Beckwith

    (@tw2113)

    The BenchPresser

    There should already be a widget for Brewery checkins, but it’s not the User info widget being used above. The User Info is meant to display basic information from the user’s profile on Untappd.

    I just checked the API and there’s a similar thing for Brewery Profile info, but I haven’t implemented anything for that in my plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WordPress Version’ is closed to new replies.