0 comments on “Power Not Found Error (SaaS)”

Power Not Found Error (SaaS)

Fatal error: Uncaught Error: Class “SLPPower” not found in
/var/www/html/wp-content/mu-plugins/store-locator-plus/include/module/actions/SLP_Actions.php
on line 184

This is happening due to the new invocation of Store Pages being loaded into the main plugin. Not all users will have the Power add on available.

Resolution

Make sure Power add on is active before loading attributes.

In \SLP_Actions::setup_location_post_type

        if ( class_exists( 'SLPPower' ) ) {
            $power = SLPPower::get_instance();
            $rewrite_rules = [
                'slug' => $power->options['permalink_starts_with'],
                'with_front' => $this->slplus->is_CheckTrue( $power->options['prepend_permalink_blog'] ),
            ];
        } else {
            $rewrite_rules = [
                'slug' => SLPlus::locationPostURL,
                'with_front' => true,
            ];
        }
0 comments on “Power : Store Pages Not Working”

Power : Store Pages Not Working

Store Pages interfaces are not invoked.

Reproduction

Requires Power add on to be active.

  • Login as admin on WordPress (WP) site.
  • Go to Store Locator Plus® | Options
  • Enable Pages
  • Go to Store Locator Plus® | Locations
  • Choose Pages, Create from the bulk actions drop down menu
  • Click “to All” next to that menu

Issues

  • There is no “Pages” list in the sidebar
  • Each location shows a page attached, but if you scroll over to the Pages URL column on the location list page, view or edit does not work.
  • Edit brings up this error:
    Sorry, you are not allowed to edit posts in this post type.
0 comments on “Premier UI Shortcode processing Critical Error”

Premier UI Shortcode processing Critical Error

To view in Front end :

changed Style in WPSLP in QC and refreshed

SLP plug-in Version 2511.08.05  with current v  2511.06.02 add-on, (Exp and Premier enabled)

Visit site and critical error from WordPress pops up. Error log credentials library

With Chrome error message (index) Content unavailable . Resource was not cached.

From the QC Apache Error Log

 Uncaught ArgumentCountError: Too few arguments to function
 SLP_UI_Shortcode_slp_option::modify(), 
0 passed in /bitnami/wordpress/wp-content/plugins/slp-premier/include/module/ui/SLP_Premier_UI.php on line 114 
and exactly 1 expected in 
/bitnami/wordpress/wp-content/plugins/store-locator-plus/include/module/ui/SLP_UI_Shortcode_slp_option.php:16

Resolution

Revise \SLP_Premier_UI::process_hook_ShortcodeSLPOption to ensure it both accepts the attributes parameter and sends it along to \SLP_UI_Shortcode_slp_option::modify

0 comments on “Power : $slplus is null in UI handler”

Power : $slplus is null in UI handler

SLP should not allow the older version of Power (2511.06.01 or earlier) to run.

Got error 'PHP message: PHP Fatal error:  
Uncaught Error: Call to a member function addon() on null 
in /bitnami/wordpress/wp-content/plugins/slp-power/include/module/ui/SLP_Power_UI.php:41

From..

		global $slplus;
		$this->addon = $slplus->addon( 'power' );

Resolution

Must use Power 2511.06.02 with the latest version of SLP.

SLP had to be updated to test for the minimum version of the Power add on at 2511.06.02 or higher.

0 comments on “Saving Custom Map Markers”

Saving Custom Map Markers

When editing a location with custom map markers available, the custom marker is not saved.

Steps To Reproduce

  1. Make sure the Experience add on is active.
  2. Edit an existing location.
  3. Change the map marker via the map marker selector, a built-in marker is fine.
  4. Save the location.

The map marker is not changed or saved to the database.

Resolution

Have \SLP_Admin_Locations_Actions::save_edited_location to call \SLP_Data_Extension::set_cols(true) after reading the pre-existing record in order to force the valid extended data fields to the full array.

0 comments on “Edit Location : “Could not update the location data””

Edit Location : “Could not update the location data”

This error happens in a few scenarios:

Experience : changing the map marker
Power : Checking of a category

Reproduction

  1. Activate Power add on
  2. Add a category “A”
  3. Add / Edit a location
  4. Check (or uncheck) the category
  5. Save

Error notification pops up “Could not update the location data.”

Also if…

  1. Activate Experience
  2. Edit Location
  3. Select a different map marker
  4. Save
0 comments on “Updating SLP version wipes out Google API Key”

Updating SLP version wipes out Google API Key

With the WordPress plugin, if you update the version of SLP the Google API key is erased.

This likely impacts other settings as well.

Reproduction

  • Login to admin on localhost (Docker dev container)
  • Go to Store Locator Plus | Options
  • Add a Google API key
  • In the code update wp-content/plugins/store-locator-plus/store-locator-plus.php and change the version
  • Reload the options page

The Google API keys are blank.

0 comments on “Hide Store Pages Menu on SaaS”

Hide Store Pages Menu on SaaS

A recent update to the Store Locator Plus® WordPress plugin or Power add on  have re-introduced the Pages menu item on the sidebar in the SaaS application.

Task

Remove “Pages” from the sidebar menu on the SaaS application.

Reproduction

  1. Login to the SaaS platform
  2. Switch to a user with Professional or Enterprise level access
  3. Go to Options on the sidebar
  4. Check the Enabled Pages checkbox

Result

Pages appears on the sidebar.

Expected Result

Do not show pages on the sidebar until this is fully functional.

Resolution

0 comments on “Google Maps Should Load Async”

Google Maps Should Load Async

While testing Power : Imports Are Not Working a warning was noted in the JavaScript console.

🔲 Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading

0 comments on “WP Distribution : Some Fonts / Images Missing”

WP Distribution : Some Fonts / Images Missing

While testing Power : Imports Are Not Working other issue were noted about missing images and fonts.

On the WordPress QC Site looking in the JavaScript console shows some WOFF/TTF and image files are missing in the CSS stack.

Need to update the Store Locator Plus® plugin distribution.


🔲  All CSS fonts (woff/woff2/ttf) files are missing
Check the distribution packaging ruleset in the AWS CodeBuilder https://qc.storelocatorplus.com/wp-content/plugins/store-locator-plus/css/fonts/fontawesome-webfont.woff2?v=4.7.0
https://qc.storelocatorplus.com/wp-content/plugins/store-locator-plus/css/fonts/fontawesome-webfont.ttf?v=4.7.0
https://qc.storelocatorplus.com/wp-content/plugins/store-locator-plus/css/fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular

🔲  Some CSS images are missing
https://qc.storelocatorplus.com/wp-content/plugins/store-locator-plus/css/admin/DataTables-1.10.24/images/sort_both.png
https://qc.storelocatorplus.com/wp-content/plugins/store-locator-plus/css/admin/DataTables-1.10.24/images/sort_asc.png