WordPress.org

Support

Support » Plugins and Hacks » Plugin [Joost de Valk’s Enhanced Contact Form] Error Message Help

Plugin [Joost de Valk’s Enhanced Contact Form] Error Message Help

  • DirtProfessor
    Member

    @dirtprofessor

    Hello,

    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.

    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • jasonleemba
    Member

    @jasonleemba

    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…

    Ryan
    Participant

    @daobydesign

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin [Joost de Valk’s Enhanced Contact Form] Error Message Help’ is closed to new replies.