Conversation
supportHello I installed the latest version of LocateAndFilter (1.6.14). All WordPress and other plugins are up to date too. I have this error (see below). Will this error be corrected with the pro or ACF version of your plugin? Warning: Undefined variable $marker in /home/ioxfcjv/www/wp-content/plugins/locateandfilter/public/class-locate-and-filter-public.php on line 1053 Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, string given in /home/ioxfcjv/www/wp-content/plugins/locateandfilter/public/class-locate-and-filter-public.php:1403 Stack trace: #0 /home/ioxfcjv/www/wp-content/plugins/locateandfilter/public/class-locate-and-filter-public.php(1403): abs(‘42,5211’) #1 /home/ioxfcjv/www/wp-content/plugins/locateandfilter/public/class-locate-and-filter-public.php(1289): Locate_And_Filter_Public::tag_addon_DECtoDMS(‘42,5211’, ‘74,3524’) #2 /home/ioxfcjv/www/wp-content/plugins/locateandfilter/admin/partials/locate-and-filter-preview.php(14): Locate_And_Filter_Public::generateJSON(Array, false) #3 {main} thrown in /home/ioxfcjv/www/wp-content/plugins/locateandfilter/public/class-locate-and-filter-public.php on line 1403 This topic was modified 2 years, 2 months ago by Limbus Studio . The page I need help with: [ log in to see the link]
Hi You need change on file locateandfilter/public/class-locate-and-filter-public.php string 1289 from $add["dms"] = Locate_And_Filter_Public::tag_addon_DECtoDMS( $add["lat"], $add["lon"] ); to $add["dms"] = Locate_And_Filter_Public::tag_addon_DECtoDMS( floatval($add["lat"]), floatval($add["lon"]) ); I hope this help This reply was modified 2 years, 2 months ago by dgamoni .
Hi Dgamoni Thank you for your help and solution. it works now. thanks again
Hi Dgamoni How I can fix these errors. These are similar to the above ones. The errors are causing 500 error on my website and I would appreciate your help to find a fix asap please.
Hi @vadyp97 You need open new topic for this its not errors its PHP Notice These messages do not contain any errors you can disable them if your paste on file locateandfilter/public/class-locate-and-filter-public.php locateandfilter/admin/class-locate-and-filter-admin.php on string 2 after open php tag error_reporting(E_ALL & ~( E_NOTICE )); I hope I will fix all Notice in the next versions but It takes a lot of time. If this solutions does not help you and you urgently need to fix all the notes today tomorrow, you can write to me by email monothemes@gmail.com and I will fix it for a fee
Hi thank you for your response. I will wait for your next update which hopefully fixes the warnings too.
Hi You need change on file locateandfilter/public/class-locate-and-filter-public.php string 1289 from $add["dms"] = Locate_And_Filter_Public::tag_addon_DECtoDMS( $add["lat"], $add["lon"] ); to $add["dms"] = Locate_And_Filter_Public::tag_addon_DECtoDMS( floatval($add["lat"]), floatval($add["lon"]) ); I hope this help This reply was modified 2 years, 2 months ago by dgamoni .
Hi Dgamoni Thank you for your help and solution. it works now. thanks again
Hi Dgamoni How I can fix these errors. These are similar to the above ones. The errors are causing 500 error on my website and I would appreciate your help to find a fix asap please.
Hi @vadyp97 You need open new topic for this its not errors its PHP Notice These messages do not contain any errors you can disable them if your paste on file locateandfilter/public/class-locate-and-filter-public.php locateandfilter/admin/class-locate-and-filter-admin.php on string 2 after open php tag error_reporting(E_ALL & ~( E_NOTICE )); I hope I will fix all Notice in the next versions but It takes a lot of time. If this solutions does not help you and you urgently need to fix all the notes today tomorrow, you can write to me by email monothemes@gmail.com and I will fix it for a fee
Hi thank you for your response. I will wait for your next update which hopefully fixes the warnings too.