Support » Plugin: Conditional Fields for Contact Form 7 » Plugin Edit Field is missing

  • Resolved CPKN

    (@cpkn)


    I was trying to make changes to my Conditions and I never did notice that something went wrong!

    When I go to the form, I click the “Conditional Fields” Tab, it then scrolls to the bottom where I see a box that has the title of the tab and nothing more!?

    Why can’t I see the content in the box?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    Can you share a screenshot, and check the browser console for any javascript errors?

    Thread Starter CPKN

    (@cpkn)

    Hello,

    Thanks for the reply.

    No Java errors at all.

    You will see what I mean in the picture.

    Editor looks like this in the form

    • This reply was modified 6 years, 10 months ago by CPKN.
    Plugin Author Jules Colle

    (@jules-colle)

    Seems like your page stopped rendering all of a sudden. Could be due to a PHP error. Can you enable php debugging to see if any errors show up?

    You can enable debugging by going to your wp-config.php file and adding/modifying this line:

    define( 'WP_DEBUG', true );

    Thread Starter CPKN

    (@cpkn)

    Hey,

    thanks for that.

    Sorry, just a heads up that I will be delayed on your next troubleshooting step. Busy Busy.

    Hopefully will be done within 24 hours.

    Cheers for your help so far! You are the first Dev that actually puts the effort into detailed help and instructions and I love it!

    Thread Starter CPKN

    (@cpkn)

    Hey,

    I found the issue! Debug shows Error…

    PHP Fatal Error: Call to undefined method WPCF7_ContactForm::scan_form_tags() in –Private–/plugins/cf7-conditional-fields/admin.php on line 24

    Plugin Author Jules Colle

    (@jules-colle)

    Looks like you are not using the latest version of Contact Form 7. Could you check your version? The current version of CF7 is 7.4.7

    Thread Starter CPKN

    (@cpkn)

    Yes, you are right.

    It would seem it is considered as “up-to-date” because the latest CF7 is not compatible with my WP version. I am a lower version due to theme Dev not making updates for it fast enough.

    Note that I consider making an upgrade, but I am still in planning phase.

    So unless I install the latest CF7 and hope it does work, I guess it is a matter of reverting back your plugin version that matches compatibility with my version (CF7 4.4.2).

    Please advise?

    Plugin Author Jules Colle

    (@jules-colle)

    If you really cannot update CF7, than you might just go to plugins/cf7-conditional-fields/admin.php

    And change lines

    26: $all_fields = $post->scan_form_tags();
    39: $all_groups = $post->scan_form_tags(array('type'=>'group'));

    to

    26: $all_fields = $post->form_scan_shortcode();
    39: $all_groups = $post->form_scan_shortcode(array('type'=>'group'));

    Make sure to not update Conditional Fields again before you have updates CF7. The plugin updates are only tested with the latest versions of CF7 and WP

    Thread Starter CPKN

    (@cpkn)

    For some reason, I get this:

    Parse error: syntax error, unexpected ‘&’ in …/wp-content/plugins/cf7-conditional-fields/admin.php on line 26

    Plugin Author Jules Colle

    (@jules-colle)

    you probably added an & while pasting?

    make sure to paste the code and not type it over. remove the line numbers and colons.

    the first sign is a dollar sign $ which you might be confuding with &. sorry if this sounds stupid but i have no idea how familiar you are with coding php 🙂

    Thread Starter CPKN

    (@cpkn)

    Hey,

    right, the email read like this (which I copied and pasted):

    “26: $all_fields = “$post->form_scan_shortcode();””
    “39: $all_groups = “$post->form_scan_shortcode(array(‘type’=>’group’));””

    But I see it is now better looking with the forum lolz

    Edit: Ok, the forum keeps correcting it lolz. so the email shows “$post-&gt” not the proper code.

    • This reply was modified 6 years, 10 months ago by CPKN.
    • This reply was modified 6 years, 10 months ago by CPKN.
    • This reply was modified 6 years, 10 months ago by CPKN.
    • This reply was modified 6 years, 10 months ago by CPKN.
    • This reply was modified 6 years, 10 months ago by CPKN.
    Thread Starter CPKN

    (@cpkn)

    Yep,

    That works!

    Thanks heaps!

    I won’t update til I get everything updated. My theme has finally been updated to be compatible with 4.7.# so I can now get everything up-to-date and have your plugin function how it suppose to.

    Thanks heaps

    Plugin Author Jules Colle

    (@jules-colle)

    good to hear! feel free to leave a review if you are happy with the plugin 🙂

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Plugin Edit Field is missing’ is closed to new replies.