The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Plugin [Joost de Valk's Enhanced Contact Form] Error Message Help (3 posts)

  1. DirtProfessor
    Posted 7 years ago #


    I keep getting the error :

    Fatal error: Call to undefined function akismet_http_post() in /home/dirtprof/public_html/members/wp-content/plugins/enhanced-wordpress-contactform/wp-contactform.php on line 125

    ...when testing the contact form.

    I did nothing to the code.

    I believe it is in this portion of the code :

    //Before we send the email, we need to check with Akismet
    global $akismet_api_host, $akismet_api_port;
    $c['user_ip'] = preg_replace( '/[^0-9., ]/', '', $_SERVER['REMOTE_ADDR'] );
    $c['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
    $c['referrer'] = $_SERVER['HTTP_REFERER'];
    $c['blog'] = get_option('home');
    $c['permalink'] = $c['blog'].$_SERVER['REQUEST_URI'];
    $c['comment_type'] = 'pxsmail';
    $c['comment_author'] = $name;
    $c['comment_author_email'] = $email;
    $c['comment_author_url'] = $blog;
    $c['comment_content'] = $_POST['msg'];

    $ignore = array( 'HTTP_COOKIE' );

    foreach ( $_SERVER as $key => $value )
    if ( !in_array( $key, $ignore ) )
    $c["$key"] = $value;

    $query_string = '';
    foreach ( $c as $key => $data )
    $query_string .= $key . '=' . urlencode( stripslashes($data) ) . '&';
    $response = akismet_http_post($query_string, $akismet_api_host, '/1.1/comment-check', $akismet_api_port);

    I use Thesis 1.5 as my theme.

    Not sure what is wrong.


  2. jasonleemba
    Posted 7 years ago #

    I was getting a fatal error when using the new 2.2.3 with WP 2.8.2 on a new site I was working on. The error message I was getting showed a call error with "Askimet". All I did was activate the Askimet plugin and followed the instructions to get the Askimet API key. Once I entered this key everything worked. Good luck...

  3. Ryan
    Posted 6 years ago #

    Technically you don't need the API key to get this plugin working -- you can just enable Akismet. Though to get rid of Akismet's persistent nag, getting an API key is a good idea -- plus Akismet rocks.

    Why this plugin breaks without Akismet is another question entirely. Poor function checking it seems.

Topic Closed

This topic has been closed to new replies.

About this Topic