WordPress.org

Forums

[resolved] WP-Contact form not working...or is it? (5 posts)

  1. uberwerks
    Member
    Posted 7 years ago #

    I was going to post this over at the codex' "plugin compatibility" as a "no", but some people claim to have this working with 2.0b1.

    When using Ryan Duff's WP-Contact Form plugin and 2.0b1, I get this error:

    "Fatal error: Call to undefined function: load_plugin_textdomain() in /home/spiderkn/public_html/wp-admin/options-contactform.php on line 8"

    Line 8 being:

    "load_plugin_textdomain('wpcf'); // NLS"

    This occurs in the admin section, when you click on "Contact Form" to edit the prefs. Anyone had luck getting this to work with 2.0b1? Thanks.

  2. Joshua Sigar
    Member
    Posted 7 years ago #

    Make sure you have the following file; try re-upload the file
    wp-includes/wp-l10n.php

    Otherwise, you could just commment out that line. It's not needed if you stick with the plugin's default language (english, I suppose).
    //load_plugin_textdomain('wpcf');

  3. uberwerks
    Member
    Posted 7 years ago #

    I tried what you said Alphaoide, but to no avail. I've got that file you listed also. When I commented out that line, I get the same error, but on "line 9" instead of 8:

    "$location = get_option('siteurl') . '/wp-admin/admin.php?page=options-contactform.php'; // Form Action URI"

    The plugin may just not work with 2.0b1 yet...hmmm

  4. Joshua Sigar
    Member
    Posted 7 years ago #

    What's the error msg exactly now? Call to undefined function: get_option?

    So far I haven't seen plugin-specific error msg. You may need to delete WP files and the upload new ones.

    edit: Just tested the plugin myself with wp beta; it just worked.

  5. uberwerks
    Member
    Posted 7 years ago #

    Okay...this was my fault totally. For some reason, I installed "options-contactform.php" in the /wp-admin/ directory.

    For others who may have slipped into a fog of...forgetfulness, that file goes in the "plugins" folder with the other "wp-contactform.php" file.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags