• Resolved MarcusFuto

    (@marcusfuto)


    Hello,

    I got an error message after updating to the latest version of ninja form:

    Notice: Undefined variable: view_post_link_html in /hermes/bosoraweb069/b287/dom.dbdreamscom/public_html/wp-content/plugins/ninja-forms/classes/subs-cpt.php on line 646 Notice: Undefined variable: view_post_link_html in /hermes/bosoraweb069/b287/dom.dbdreamscom/public_html/wp-content/plugins/ninja-forms/classes/subs-cpt.php on line 652

    How can I fix this?

    Thank you!

    https://www.ads-software.com/plugins/ninja-forms/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same for me. Notice shows up since update of Ninja Forms to version 2.9.29. It looks like somebody is already working on that https://github.com/wpninjas/ninja-forms/pull/957.

    Thread Starter MarcusFuto

    (@marcusfuto)

    Alright,

    thanks!

    In the file: /wp-content/plugins/ninja-forms/classes/subs-cpt.php

    Add the undefined variable $view_post_link_html to the global variable scope on line 638, so that it looks like this.

    global $post, $post_ID, $view_post_link_html;

    This is the fix, that variable outputs something like this

    var_dump($view_post_link_html);
    
    string(92) "
    <a href="https://mydomain.com/?post_type=product&p=67">View post</a> "

    Save the file and re-upload.

    Thanks

    Andi

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error message after update’ is closed to new replies.