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

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.