• Resolved user2918329

    (@user2918329)


    Hello!

    I have ACF (advanced custom fields) and photonic gallery installed on my site.

    When I visited a page in admin area, I noticed a js error:
    “Failed to initialize plugin: photonic TypeError: Cannot set properties of undefined (setting ‘photonic_view_renderer’)”
    in file tinymce.min.js (just in case – I am using Gutenberg editor)

    When I tried to edit a gallery, media library just doesn’t load.

    When I am creating a gallery on a fresh page, there is no error, and media library loads just fine, but after page refresh there is the error again.

    I tried ticking some options in photonic settings, and when I ticked “Disable shortcode editing in Visual Editor” the error dissapeared. However, media library still doesn’t load, and there was new error:
    “Uncaught TypeError: Cannot read properties of undefined (reading ‘removeAllPlayers’)”
    in media-views.min.js

    I tried removing other plugins one by one, and the error dissapeared when I removed advanced custom fields

    I tried rolling back a few versions both plugins, but no effect (so it might have to do with core updates…)

    I have no idea when it started because usually I am not editing or creating the posts, but the editor never reported me this error. Any ideas what might be the cause of the problems?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    I am not able to replicate any of this. I had never used ACF in the past, so I specifically installed it for testing.

    I tried creating a new Gutenberg page, added a bunch of ACF fields (text fields), and added a Photonic gallery – no issues. I saved the page and went back to the dashboard. I then reopened the page and opened up the gallery for editing – again, no issues.

    I don’t know if you have an ACF add-on that might be causing this, because with a standard installation I don’t see a conflict.

    Thread Starter user2918329

    (@user2918329)

    Okay, thank you for trying!

    Strangely I am getting the error even on pages when there are no custom fields, just with ACF enabled (no extra addons). Even tried to comment out all of my functions.php, no result.

    Okay, so that might be some combination of plugins than. Will try to look into it myself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with ACF?’ is closed to new replies.