• Resolved rnrh

    (@rnrh)


    I was able to solve the issue some have described where no shortcode or previews were being generated for new animations. It looks like no one is maintaining this plugin anymore, so versions are getting out of sync.

    In the plugins javascript folder (wp-bodymovin/assets/js/) you need to replace the lottie.js and lottie.min.js files with whatever version the bodymovin after effects animation is currently at from the github repo. For me that was 5.5.2, and those files are here. That may be enough for you, but I also had to go into the main wp-bodymovin.php file (wp-bodymovin/) and change the versions being called in 2 identical lines:

    wp_register_script( 'bodymovin' , plugin_dir_url( __FILE__ ) . 'assets/js/lottie' . $suffix . '.js', array(), '5.5.2' );

    Replacing the files and changing the versions did it for me.

    • This topic was modified 5 years, 6 months ago by rnrh. Reason: formatting
    • This topic was modified 5 years, 6 months ago by Steven Stern (sterndata).
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I’ve followed your instructions, inclouding making the changes to the php file but now I get the following error in the console:

    at d (wpbodymovin.min.js?ver=2.1.0:1)
    at b (wpbodymovin.min.js?ver=2.1.0:1)
    at HTMLDocument.<anonymous> (wpbodymovin.min.js?ver=2.1.0:1)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    Any ideas?

    Thanks

    @rnrh Thanks, your solution worked for me. I just had to replace the two lottie files, as suggested by you.

    Great work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[SOLVED] No shortcode or Preview Generated’ is closed to new replies.