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

Topics

add_submenu_page 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 Premier RDS release notes repos REST API SaaS settings SLP Smart Options SmartOptions staging Store Locator Plus Stripe subscriptions WordPress \SLP_BaseClass_Admin::enqueue_admin_javascript \SLP_BaseClass_Admin::ok_to_enqueue_admin_js()

Latest Posts

  • 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
  • SLP Did Not Initialize On White Black Classic ThemeMarch 4, 2026
  • WPSLP Widget Enqueue Script ProblemMarch 4, 2026
  • AI Testing : Writing Cypress.IO Pagination TestMarch 1, 2026
  • \SLPlus::enqueue_google_maps_script – slp_core dependency is not loaded for Admin pagesFebruary 23, 2026
  • My Profile | Subscription | Update CardFebruary 17, 2026
  • Contact Us Loading On Every PageFebruary 17, 2026
  • My Profile | NotificationsFebruary 12, 2026
  • My Profile | Cancel Subscription Not WorkingFebruary 11, 2026
  • Foreach loop null attributes in SLP_UI_Shortcode_slp_option.phpJanuary 22, 2026
  • QC Site Cannot Render Staging EmbedsJanuary 22, 2026
  • Accounts With Special Characters Cannot LoginJanuary 22, 2026
  • Map ViewsJanuary 15, 2026
  • Power Not Found Error (SaaS)December 6, 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.