Skip to content
  • Store Locator SaaS
    • Dashboard Login
  • WordPress Plugin
    • Store Login
  • Documentation
  • News

Store Locator Plus® Internal Docs

SLP Internal Documentation

  • Store Locator SaaS
    • Dashboard Login
  • WordPress Plugin
    • Store Login
  • Documentation
  • News

Expired Account Notification for Active Users

February 23, 2025February 26, 2025 by lcleveland

Some users with active accounts are reporting an expired account notification when viewing the embedded locations on their website.

Reproduction

  • Login as SA on staging
  • Switch to user: alice_at_pt*
  • Generate Embed and place it on a test domain (not *storelocatorplus.com)

Notes

Generate embed works for these users on both production and staging servers.

Embedding the code on our QC site also works.

Embedding on localhost or a non-storelocatorplus.com domain does NOT work.
On a storelocatorplus.com domain DOES work even if not on the same server (host).

Alice_au UID: 416

The MySLP front end uses a REST endpoint to load options from the SLP server.
Part of that request includes the MySLP API key.
\MySLP_REST_API::check_activation() uses this key to fetch a user record via a meta_key+meta_value match.
The match was found, returning a user but the subsequent call to test account_status === ‘active’ failed.

This was because the \MySLP_User setters and getters do not yet have a fully initialized user object, especially coming from a REST API call. This check_activation() looks like the first user authentication that is set.

The revised code in MySLP Dashboard 2502.24.01 patch shown below manually loads in the MySLP_User class with the WP_User object in wp_user, the UID in ID, and then fetches the user meta and pushed it into the MySLP_User->user_meta property.

	$user = get_users( array(
			'meta_key'   => 'api-key',
			'meta_value' => $API_key,
		) );

		if ( ! empty( $user ) && ! is_wp_error( $user ) ) {
			$user = ( is_array( $user ) ) ? array_shift( $user ) : $user;

			//check account_status
			global $myslp;
			$myslp->User->__set( 'ID', $user->ID );
			$myslp->User->__set( 'wp_user', $user );
			$myslp->User->__set( 'user_meta', get_user_meta( $user->ID ) );

//			error_log( 'SLP_REST_API::check_activation myslp User: ' . print_r( $myslp->User, true ) );

			if ( 'active' !== $myslp->User->account_status ) {

Posted in: App Updates Bugs Closed Bugs
Tagged: account expired bug Generate Embed

Post navigation

Previous Entry:SLP SaaS Updates : 2411.01 To 2502.23
Next Entry:Pins Not Showing Up for uws_at

Topics

add_submenu_page admin AJAX architecture AWS bug Bug Fix categories CSS database Data Integrity debugging development docker Experience Generate Embed git Google Maps javascript locations locator style map marker map markers MySLP PHP PHP 8.2 Power Premier RDS register_rest_route release notes REST REST API SaaS SaaS Platform settings SLP Smart Options SmartOptions staging Store Locator Plus url versions WordPress \SLP_BaseClass_Admin::enqueue_admin_javascript

Latest Posts

  • Power : Store Pages Not WorkingNovember 18, 2025
  • Premier UI Shortcode processing Critical ErrorNovember 11, 2025
  • Power : $slplus is null in UI handlerNovember 10, 2025
  • Saving Custom Map MarkersNovember 8, 2025
  • Edit Location : “Could not update the location data”November 8, 2025
  • Updating SLP version wipes out Google API KeyNovember 6, 2025
  • Hide Store Pages Menu on SaaSNovember 6, 2025
  • Google Maps Should Load AsyncNovember 5, 2025
  • WP Distribution : Some Fonts / Images MissingNovember 5, 2025
  • Power : Imports Are Not WorkingNovember 4, 2025
  • Edit Locations : Icon Not Showing Selected MarkerOctober 14, 2025
  • Resolving Custom Location Marker SelectionsOctober 14, 2025
  • Store Pages Menu Scrolls: Invocation, UX, and Core ChainOctober 2, 2025
  • Summer 2025 UpdatesOctober 1, 2025
  • Stripe Subscription HacksMay 7, 2025
  • Multiple Settings Loading Calls (active_style_css)May 1, 2025
  • Tracking Down Style Changes After UpdatesApril 30, 2025
  • Prod v Stage Settings TestingApril 29, 2025
  • ZIP Code Dataset incorrect address returnedApril 3, 2025
  • v2503.19 UpdatesMarch 19, 2025
  • SLP Updates 2503.06 ReleaseMarch 6, 2025
  • Cron : User for Super AdminMarch 6, 2025
  • Protected: Category Selector dropdown selected and SavedMarch 6, 2025
  • Show Map For Logged In Users (Main Page)March 5, 2025
  • Pagination Not WorkingMarch 5, 2025
  • YouTube
  • Consulting

 

Contact The Author

Store Locator Plus® is proudly made & supported by a Charleston, SC business.
Lance Cleveland

Contact the author with special feature requests.

Proudly powered by WordPress | Theme: Fortune by Themes Harbor.