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

Topics

admin AJAX architecture AWS bug Bug Fix categories CSS database debugging development EC2 Experience fatal error Feature Request Generate Embed git Google Maps javascript locations locator style map marker map markers My Profile MySLP MySLP_REST_API PHP Power Premier register_rest_route release notes REST REST API SaaS settings SLP Smart Options staging store-locator-plus Store Locator Plus Stripe versions view WordPress \SLP_BaseClass_Admin::enqueue_admin_javascript

Latest Posts

  • \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
  • Profile | History and Overages UpdateDecember 6, 2025
  • Profile | Invoices UpdateDecember 5, 2025
  • 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
  • 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.