Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1479

    Erik Petersen
    Participant

    Using a custom theme with CF7 and others on <site>, installing Math Captcha, configuring… settings page:
    Warning: call_user_func() [function.call-user-func]: First argument is expected to be a valid callback in /var/www/vhosts/<site>/httpdocs/wp-admin/includes/template.php on line 1102
    De-/Activating Math Captcha (as seen in support forum): No change.

    Inserting CF7 Shortcode in a form, the page with the form shows:
    Fatal error: Class ‘WPCF7_Shortcode’ not found in /var/www/vhosts/<sitename>/httpdocs/wp-content/plugins/wp-math-captcha/includes/math-captcha-cf7.php on line 20

    “Class not found” let me think, Math Captcha does NOT support CF7 ;-)

    #1493

    Bartosz
    Keymaster

    That class exists in CF7, and this error says it is not available (as if CF7 was not activated). But I think of other issues – are you using MC on multisite install? Are you using the most recent version of our plugin?

    #1507

    Erik Petersen
    Participant

    WordPress 3.3.3 DE “single site” with Contact Form 7 3.2, Contact Form 7 – Dynamic Text Extension 1.0.4.2, Math Captcha 1.0.9 (all activated) and some other plugins

    #1551

    Erik Petersen
    Participant

    Hi, one week later, I´d like to ask if support is possible or if I just have to be a bit patient.
    Another idea: Maybe the custom theme could have a lack which results in symptoms mentioned above?
    Regards Erik

    #1556

    Bartosz
    Keymaster

    Erik, first please post a link to the site where the issue occurs.
    Second, did you try deactivating CF7 Dynamic Text Extension? Did it make any difference?

    #1562

    Erik Petersen
    Participant

    Hi Bartosz,

    I didn´t get a mail notifying me of your reply…(!?)

    The test page http://www.wollny-personal.de/cf7_mc_test/
    with a copy of the CF7 form plus “[mathcaptcha mathcaptcha-<a_random_ID>]” shows
    Fatal error: Class ‘WPCF7_Shortcode’ not found in /var/www/vhosts/wollny-personal.de/httpdocs/wp-content/plugins/wp-math-captcha/includes/math-captcha-cf7.php on line 20
    – with or without activation of CF7 Dynamic Text Extension.

    In line 20 mentioned above we find
    $tag = new WPCF7_Shortcode($tag);
    Sure you´ve registered the function? I didn´t find it.
    CF7 only brings the class WPCF7_ShortcodeManager instead.

    Erik

    #1563

    Bartosz
    Keymaster

    There is WPCF7_Shortcode in CF7, but I think I have an idea on where the problem is. We’re working on a major update of Math Captcha, but maybe before we finish it, we’ll push a quick bugfix update for this and other issues (this week hopefully).

    #1732

    Erik Petersen
    Participant

    One month later, I´d like to kindly ask if this bug will be fixed soon in v1.1.0. Regards

    #1776

    Bartosz
    Keymaster

    Erik, try the just released 1.1.0.

    #1831

    Erik Petersen
    Participant

    still problems, probably the same:

    on /wp-admin/options-general.php?page=math-captcha:
    Warning: call_user_func() [function.call-user-func]: First argument is expected to be a valid callback in /var/www/vhosts/wollny-personal.de/httpdocs/wp-admin/includes/template.php on line 1102

    on output page with cf7 form:
    Fatal error: Class ‘WPCF7_Shortcode’ not found in /var/www/vhosts/wollny-personal.de/httpdocs/wp-content/plugins/wp-math-captcha/includes/math-captcha-cf7.php on line 20

    #1845

    Bartosz
    Keymaster

    What are your WordPress, Math Captcha and CF7 versions?

    #6002

    GDBman
    Participant

    Hi guys to get the math Captcha to show up on Contact7 Form Do the following with WordPress 4.1
    Go to Contact form
    Click on the contact form name you want to change
    Part way down the page you will see form code on right hand side and on the left will be generate Tag.
    Click on generate tag and select Math Captcha and paste code on left side

    Don’t forget to save …..

    GDBman

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.