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

Cannot Login To Alt User : Error MySLP::getUserBlogId(): Return value 

November 8, 2024November 8, 2024 by lcleveland

Recreate

  • Go to the staging site (https://staging.storelocatorplus.com)
  • Login as CiCi

Error

Fatal error: Uncaught TypeError: MySLP::getUserBlogId(): 
Return value must be of type int, string returned in 

/var/www/html/wp-content/mu-plugins/myslp-dashboard/include/MySLP.php 
on line 196 

TypeError: MySLP::getUserBlogId(): Return value must be of type int, string returned in /var/www/html/wp-content/mu-plugins/myslp-dashboard/include/MySLP.php on line 196

Cause

The blog id (site id) for cici does not have a meta ‘primary_blog’ value set.

The bug is specific to SLP employees with elevated privs only.

Resolution

Update MySLP Dashboard getUserBlogId() to default to current_user- site ID if primary blog meta is empty.

Posted in: Bugs Closed Bugs
Tagged: bugs login SaaS staging

Post navigation

Previous Entry:Show Stripe Library Version On Dashboard Sysinfo
Next Entry:MySLP Dashboard : Controller : Passing null to strtotime() deprecated

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.