• Resolved tmargot

    (@tmargot)


    Hi,

    First problem:
    When I create a new ACF: Font Awesome field and try select a default icon, the list is always empty and I receive a console error:

    select2.full.min.js?ver=4.0:formatted:2592 Uncaught TypeError: Cannot read property 'slice' of undefined
        at d.a.removePlaceholder (select2.full.min.js?ver=4.0:formatted:2592)
        at d.j [as removePlaceholder] (select2.full.min.js?ver=4.0:formatted:268)
        at d.a.append (select2.full.min.js?ver=4.0:formatted:2579)
        at d.j [as append] (select2.full.min.js?ver=4.0:formatted:268)
        at e.<anonymous> (select2.full.min.js?ver=4.0:formatted:517)
        at e.d.invoke (select2.full.min.js?ver=4.0:formatted:298)
        at e.d.trigger (select2.full.min.js?ver=4.0:formatted:292)
        at e.trigger (select2.full.min.js?ver=4.0:formatted:3347)
        at select2.full.min.js?ver=4.0:formatted:3273
        at Object.f.transport.d.status.0.d.status.e.trigger.message (select2.full.min.js?ver=4.0:formatted:2273)

    I initially thought it was that I already had Font Awesome loaded, but the error remained after commented out my SASS include.

    Second Problem:
    Although the dropdown list works and I can select an icon. I assume that the icon preview should update after you selected a different icon? Mine remains on fa-500px.

    Thanks,
    Tristan

    • This topic was modified 7 years, 3 months ago by tmargot.
    • This topic was modified 7 years, 3 months ago by tmargot.
Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter tmargot

    (@tmargot)

    Hi Matt,

    I hope this finds you well? I think I have come across another bug. I have some Option Page custom fields (https://www.advancedcustomfields.com/resources/options-page/). I had these in place prior to using your plugin. I had some existing entries in a repeater prior to using your plugin. I have since added a Font Awesome column and was successfully able to assign icons to existing repeater rows. The issue is similar to the last issue where if I try add an additional repeater row, an unrelated field becomes the Font Awesome field.

    In my current situation I have a contact details repeater with a Title, Type (to select the type of contact), Email, Phone, Website URL and Font Awesome Icon field. Now when I add a row, the Type field becomes the Font Awesome Icon field.

    See Screenshot

    Cheers,
    Tris

    • This reply was modified 7 years, 3 months ago by tmargot.
    Plugin Author Matt Keys

    (@mattkeys)

    Thanks for reporting. I see what is causing it, expect a patch soon.

    Plugin Author Matt Keys

    (@mattkeys)

    Hey Tris,

    I just launched v2.0.2 publicly. Thank you for all your help with beta testing, you were able to catch things that I had missed and I really appreciate it.

    In this thread I noticed a comment from you earlier that I hadn’t seen until now:

    May I ask you how you got started creating an Advanced Custom Field plugin? I have looked all over for some documentation and come up with nothing ??

    Elliot Condon (the creator of ACF) actually has a nice guide, and a ‘template’ for creating new fields that this plugin was based around. Check it out here: https://www.advancedcustomfields.com/resources/creating-a-new-field-type/

    Thread Starter tmargot

    (@tmargot)

    Hiya Matt,

    Great news about v2.0.2, I will be updating immediately. Only a pleasure to help out and thank you again for the plugin and amazing support/response time.

    Thanks for the answer to my plugin question and the link. I do not know how I missed the article as I thought that I had scoured the ACF website top to bottom.

    Take care,
    Tris

    • This reply was modified 7 years, 3 months ago by tmargot.
    Thread Starter tmargot

    (@tmargot)

    Oh forgot, I can confirm that the update has fixed my last reported bug. Thanks again.

    Cheers,
    Tris

    Plugin Author Matt Keys

    (@mattkeys)

    Thanks, let me know if anything else pops up.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Error trying to select an icon’ is closed to new replies.