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

ZIP Code Dataset incorrect address returned

Central PA food bank issue Zip code for Harrisburg PA returns incorrectly or no results , V 2503-06

We are currently having an issue where Harrisburg PA Zip codes 17110, 17123, 17124,17125, 17130 when searched using our MYSLP map to locate food resources is returning a home point that is not in the correct area, 17110 returns to somewhere in Washington state, and the others are showing as out of the country which is also not correct. Please advise how to address this. The map with the issues is located at https://www.centralpafoodbank.org/find-help/find-food/.

Interestingly we had the same thing happen Jan 31, 2024

Google Algorithm issue?

Select STYLE or Make Changes Deprecated Error

If you change settings in Staging , Under Map or View get errors , example:

Deprecated: Calling get_class() without arguments is deprecated in
mu-plugins/store-locator-plus/include/module/admin_tabs/SLP_BaseClass_Admin.php on line 592 

Reproduction

  • Login or switch to Feeding America San Diego on local develop (or staging)
  • Select a new Locator Style (“Feeding America”)
  • Click Select

Dev Notes

Added get_class($this) to the method in SLP_BaseClass_Admin on line 592 as required by PHP 8.