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

R&D

PHP Docs
AI Summaries
Architecture
CSV Locations

Topics

admin AJAX architecture AWS base plugin bug Bug Fix categories CSS database debugging deprecated development docker Experience Generate Embed git Google Maps javascript locations locator style map marker map markers My Profile MySLP PHP Power Power Add-On Premier React release notes repos REST API SaaS settings SLP Smart Options staging Store Locator Plus Stripe Stripe Library Widgets WordPress \SLP_BaseClass_Admin::enqueue_admin_javascript \SLP_BaseClass_Admin::ok_to_enqueue_admin_js()

Latest Posts

  • August 2026 : What’s New In SLPJuly 24, 2026
  • AI Context HelpersJuly 23, 2026
  • Locations Table : React ConversionJuly 22, 2026
  • Locations Table : Convert Filter Interface To React ComponentJuly 2, 2026
  • Locations Table : Convert Search Box To React ComponentJuly 2, 2026
  • Locations Table (List Locations) : Bulk Actions Rewrite In ReactJuly 1, 2026
  • SLP Base Plugin : Replace Datatables With MUI DataGridProJune 25, 2026
  • Accounting: Monthly History DataMay 28, 2026
  • Create Accounting DashboardMay 27, 2026
  • Settings Interface ArchitectureMay 9, 2026
  • Locations Interface ArchitectureMay 8, 2026
  • Directions 404 Error : marketing_at_am*(902.900)May 7, 2026
  • New Manage Customers : Location Count WrongApril 30, 2026
  • Sysadmin : Manage Customers UX ImprovementApril 10, 2026
  • Twenty Twelve Theme Does Not ExistApril 10, 2026
  • Location Details : Replace ReactDOM.renderApril 6, 2026
  • Location Edit / Save Throws 403 ErrorMarch 30, 2026
  • Canceling Account Immediate Expires MapMarch 24, 2026
  • The Docker Directory StandardMarch 21, 2026
  • Cancelling Subscription Creates New SubscriptionMarch 19, 2026
  • Update SLP_Country_Manager To Include All RegionsMarch 5, 2026
  • Map Center Fallback Not Rendering MapMarch 5, 2026
  • Store Locator Plus® Coding Best PracticesMarch 5, 2026
  • google_maps script missing slp_core prerequisiteMarch 4, 2026
  • Map Bubble Description Format (Default Style)March 4, 2026
  • 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.