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 1 year ago

heydavee commented 1 year 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 1 year 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 1 year 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 1 week 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