Support » Plugin: Ninja Forms - The Easy and Powerful Forms Builder » NF_Abstracts_MergeTags problem

  • Resolved Benjamin Zekavica

    (@benjamin_zekavica)


    Hi Buddy 🙂
    With the new version of Ninja Forms I have a problem to register a new merge tag. In my plugins is now no compatible with the new version.

    The PHP Phaser give me this error message:
    Fatal error: Class ‘NF_Abstracts_MergeTags’ not found in / xyz

    Is the Class NF_Abstracts_MergeTags deprecated now or?
    I hope you can help me.

    Best greetings from Germany.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Do you can help me?

    Stiofan

    (@stiofansisland)

    Not sure if its related but we had users with a similar error, the “Pricing Fields” section was removed in the ver on 2nd April, so if you are adding fields there you will have to add them somewhere else.

    Stiofan

    Plugin Author krmoorhouse

    (@krmoorhouse)

    @benjamin_zekavica

    Hey,

    We haven’t deprecated that class. So, if it’s missing, something is wrong.

    Have you recently upgraded from our 2.9x codebase to THREE? If so, that would potentially have a breaking affect on your custom code.

    If not, I’d recommend reaching out to our support staff at https://ninjaforms.com/contact/ so that we can get some server environment data from you that we don’t want to ask for on a public forum.

    It’s altogether possible that if our support team is unable to find anything wrong with your actual Ninja Forms installation, they will also point you to our developer slack channel: http://developer.ninjaforms.com/slack/

    If there’s not a problem with the plugin itself, someone there should be able to help you track down what’s going on in your custom code.

    -KR

    Benjamin Zekavica

    (@benjamin_zekavica)

    For some developers here some hints:
    I fixed the problem if you call the file class.yourmergetag.php

    Here one example:

    function nfmta_register_merge_tags(){
        require_once 'class.nfmergecontent.php';
        Ninja_Forms()->merge_tags[ 'nfmta_merge_tags' ] = new NFMTA_AddonTag();
    }
    add_action( 'ninja_forms_loaded', 'nfmta_register_merge_tags' );
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.