7studio / acf-svg-icon

Add a new ACF field type: "SVG Icon" which allows you to select icon(s) from a SVG sprite.
37 stars 10 forks source link

Plugin no longer compatible with ACF Version 6.0 #9

Open heydavee opened 2 years ago

heydavee commented 2 years ago

Hey, this version 1.01 does no longer work with ACF Version 6.0 after their visual update.

I get an error message and cannot open my fields because the javascript is breaking:

Uncaught TypeError: Cannot read properties of undefined (reading 'allow_null')

Not sure if this is a quick fix or a deeper issue. I might take a look at it myself the next days.

7studio commented 2 years ago

Hy @DaveWoody ,

I haven't been using PHP and WordPress for three years now :/

I opened an issue to find maintainers #10 if your are interested.

shoot56 commented 2 years ago

Hi, editing assets/js/input.js file line 78 helped to get the plugin back to working state

if (el_select_args) { acf.select2.init( $el_select, el_select_args, $el ); }

ioson commented 2 months ago

To make this work i had to: change line 35 in /assets/js/input.js to return $(output); remove {$min} from line 400 in /fields/class-swp-acf-svg-icon-v5.php