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,
            ];
        }

Leave a Reply