• Resolved francois09

    (@francois09)


    Hi,

    Using WP 3.6.1 (stable Debian package), I got an error activating the plugin. The path for the files is incorrect.

    To correct the issue, I have modified contact-form-maker.php the following way:

    The first two lines of code are now:

    define('WD_FMC_DIR', /* WP_PLUGIN_DIR .*/ "/" . plugin_basename(dirname(__FILE__)));
    define('WD_FMC_URL', plugins_url(basename(plugin_basename(dirname(__FILE__)))));

    and it works great.

    Please tell me if it’s a version mismatch error or my installation having a problem.

    Thanks in advance.

    https://wordpress.org/plugins/contact-form-maker/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor webdorado

    (@webdorado)

    Dear user,

    The issue is caused by the WordPress version. The WP_PLUGIN_DR is not defined in your WordPress.

    Thread Starter francois09

    (@francois09)

    Hi,

    If the WP_PLUGIN_DIR was not defined, removing it won’t change anything IMHO …

    And on the second line, no reference exist on this define…

    On another hand, you specify the plugins is compatible from 3.0 to 4.1.1 versions of WordPress, no?

    Thread Starter francois09

    (@francois09)

    Hi,

    Searching the real reason, I’ve found this ticket: https://core.trac.wordpress.org/ticket/16953

    Using Debian version with a symlink on the plugin dir may cause this issue. WP_PLUGIN_DIR != realpath(WP_PLUGIN_DIR). Forcing WP_PLUGIN_DIR to the realpath on config file solve this problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Error activating Plugin (require_once failed)’ is closed to new replies.