Skip to content

Commit

Permalink
Update to fix class not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfoell committed Feb 23, 2018
1 parent 7619979 commit 214e855
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Strava.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require_once WPSTRAVA_PLUGIN_DIR . 'lib/Settings.class.php';
require_once WPSTRAVA_PLUGIN_DIR . 'lib/SOM.class.php';
require_once WPSTRAVA_PLUGIN_DIR . 'lib/Activity.class.php';
require_once WPSTRAVA_PLUGIN_DIR . 'lib/LatestActivitiesShortcode.class.php';
require_once WPSTRAVA_PLUGIN_DIR . 'lib/ActivityShortcode.class.php';
require_once WPSTRAVA_PLUGIN_DIR . 'lib/RouteShortcode.class.php';
Expand Down Expand Up @@ -68,7 +69,6 @@ public function get_api( $token = null ) {

public function get_activity() {
if ( ! $this->activity ) {
require_once WPSTRAVA_PLUGIN_DIR . 'lib/Activity.class.php';
$this->activity = new WPStrava_Activity();
}

Expand Down
10 changes: 7 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: cmanon, jrfoell, lancewillett, dlintott
Tags: strava, activity, bicycle, cycling, biking, running, run, swimming, swim, gps, shortcode, widget, plugin
Requires at least: 4.6
Tested up to: 4.9
Stable tag: 1.4.2
Stable tag: 1.4.3
Requires PHP: 5.2
License: GPLv2 or later

Expand Down Expand Up @@ -52,11 +52,11 @@ Strava Latest Map - shows map of latest activity with option to limit latest map

= Why am I getting "ERROR 401 Unauthorized"? =

When you have multiple athletes saved, the first is considered to be the default athlete. If you use a shortcode to display activity from anyone other than the default athlete, you must add the athlete token to the shortcode, such as
When you have multiple athletes saved, the first is considered to be the default athlete. If you use a shortcode to display activity from anyone other than the default athlete, you must add the athlete token (found on the wp-strava settings page) to the shortcode, such as athlete_token=c764a2b199cff281e39f24671760c1b9c9fe005e

= Why is my Google Map not showing up? =

If your key works with other Google Maps plugins but not WP Strava, you may need to enable the "Static Maps" functionality on your google account. This is especially true for people using G Suite accounts (not just a @gmail.com address). While logged into your G Suite email, visit https://console.developers.google.com/apis/library/static-maps-backend.googleapis.com/?q=static and make sure the "Static Maps API" is enabled. For more details see https://wordpress.org/support/topic/no-data-errors/
If your API key works with other Google Maps plugins but not WP Strava, you may need to enable the "Static Maps" functionality on your google account. This is especially true for people using G Suite accounts (not just a @gmail.com address). While logged into your G Suite email, visit https://console.developers.google.com/apis/library/static-maps-backend.googleapis.com/?q=static and make sure the "Static Maps API" is enabled. For more details see https://wordpress.org/support/topic/no-data-errors/

== Screenshots ==

Expand All @@ -74,6 +74,10 @@ If your key works with other Google Maps plugins but not WP Strava, you may need

== Changelog ==

= 1.4.3 =

Fix WPStrava_Activity class not found error.

= 1.4.2 =

Better Club ID support.
Expand Down
2 changes: 1 addition & 1 deletion wp-strava.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Strava
* Plugin URI: https://wordpress.org/plugins/wp-strava/
* Description: Plugin to show your strava.com information in your WordPress blog. Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license.
* Version: 1.4.2
* Version: 1.4.3
* Author: Carlos Santa Cruz, Justin Foell, Lance Willet, Daniel Lintott
* License: GPL2
* Text Domain: wp-strava
Expand Down

0 comments on commit 214e855

Please sign in to comment.