• Resolved cmdgw

    (@cmdgw)


    Hi,

    when trying to submit a contact form via Email the tags do not get converted into the text which was submitted although the mail tags seem to be defined, ok. In the wp debug log we see at the same this strange error:

    PHP Notice: Function wpcf7_post_related_smt() was called incorrectly. The fourth parameter ($mail_tag) must be an instance of the WPCF7_MailTag class. (This message was added in Contact Form 7 version 5.2.2.) in /www/advokaternes_960/public/wp-content/plugins/contact-form-7/includes/functions.php on line 607

    We use as a mail-tag

    [email* your-email placeholder “e-mail”]

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter cmdgw

    (@cmdgw)

    Advanced CF7 DB

    Antispam Bee

    Catch Breadcrumb

    Classic Editor

    Contact Form 7

    Contact Form 7 Extension For Mailchimp

    Cool Timeline

    Duplicate Page

    Elementor

    Elementor Pro

    Embed Calendly

    Enable Media Replace

    EWD Premium Helper

    Frontend Checklist

    GA Google Analytics

    GP Premium

    Inkasso Calculators

    Manage Notification E-mails

    MC4WP: Mailchimp for WordPress

    Password Protected

    Rank Math SEO

    Really Simple SSL

    Redirection for Contact Form 7

    Simple Author Box

    Site Kit by Google

    Smush

    Social Icons Widget & Block by WPZOOM

    TablePress

    Timeline Block

    Timeline Widget For Elementor

    Ultimate FAQ Accordion Plugin

    Wordfence Security

    WP Mail SMTP Pro

    WPForms
    Thread Starter cmdgw

    (@cmdgw)

    Any update on this Takayuki?

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Which one is the theme?

    Thread Starter cmdgw

    (@cmdgw)

    GeneratePressVersion: 3.4.0 By Tom Usborne

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme, deactivating all plugins excluding Contact Form 7, Classic Editor, Really Simple SSL, Site Kit by Google and Wordfence Security, and clearing all cache data.

    Why you are advised to deactivate plugins and switch to the default theme.

    Thread Starter cmdgw

    (@cmdgw)

    Done as requested.

    Now I get an “There was an error trying to send your message. Please try again later.”

    (We can only do this on a staging site with different Domain Name, of course).

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    That’s good to know. So, which one was the source of the problem?

    Thread Starter cmdgw

    (@cmdgw)

    The error comes obviously because of the different domain name of the staging site from the SMTP Part. What I was trying to say is that it is still not working and until now I do not see much support from your side.

    • This reply was modified 1 year ago by cmdgw.
    Thread Starter cmdgw

    (@cmdgw)

    FInally I did not disable any plugin just switched the theme from Generate Press to Twenty Twenty Four and with the theme switch it seems to work. As soon as I switch back to the GP Theme it does not. Nothing to do with any plugin, apparently. Any idea?

    Thread Starter cmdgw

    (@cmdgw)

    perhaps the latest log entries are of help, too:

    PHP Warning: Undefined property: WPCF7_Submission::$id in /www/blabla/public/wp-content/themes/generatepress/functions.php on line 311

    PHP Warning: Undefined array key “your-email” in /www/blabla/public/wp-content/themes/generatepress/functions.php on line 315

    PHP Warning: Undefined array key “kreditor-name” in /www/blabla/public/wp-content/themes/generatepress/functions.php on line 316

    Thread Starter cmdgw

    (@cmdgw)

    Checked on the functions.php of the theme and the PHP Function looks like this:

    add_action( ‘wpcf7_mail_sent’, function ( $cf7 ) {

    $submission = WPCF7_Submission::get_instance();
    
    $form_id = $submission->id;
    
    if ($submission) {
        $formdata = $submission->get_posted_data();
        $email = $formdata['your-email'];
        $name = $formdata['kreditor-name'];
    
    
        if (!isset($_SESSION)) {
            session_start();
        }
        $_SESSION['kreditor-name'] = "" . $name . PHP_EOL;
        $_SESSION['kreditor-your-email'] = "" . $email . PHP_EOL;
    
    }

    });

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    GeneratePress is a commercial theme. We can’t help you on the theme here.

    Do not post about commercial products

    Thread Starter cmdgw

    (@cmdgw)

    Takayuki, do not get me wrong but this is clearly related to your product and an incompatibility. You seem to be quite good at pointing at others regarding for support of your product but I do not see any help at all from you so far.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Function wpcf7_special_mail_tag() was called incorrectly.’ is closed to new replies.