blaenk / wp-recaptcha

I gave ownership of this project to Google many years ago
Other
38 stars 16 forks source link

wp-recaptcha is not working with wpmu as per installation instructions #33

Open port-xx opened 13 years ago

port-xx commented 13 years ago

i have installed wordpress and enabled its network mode (WPMU) WP ver. 3.0.3, now there used to be mu-plugins folder in both wordpress standard/regular and wordpress MU but now since the availability of WP 3.0 there is no mu-plugins folder but the wordpress still has support for it, mu-plugins > must use plugins so the code in it is instantly loaded, see this http://wpmututorials.com/basics/what-is-the-mu-plugins-folder/ so it has to be created via console/control panel/ftp Problem: now i have the wp-recaptcha.php file in wp-content/mu-plugins folder and wp-recaptcha folder containing recaptchalib.php and wp-recaptcha CSS

i am getting this error:

Warning: require_once(example.com/wp-content/mu-plugins/recaptchalib.php) [function.require-once]: failed to open stream: No such file or directory in /example.com/wp-content/mu-plugins/wp-recaptcha.php on line 45

Fatal error: require_once() [function.require]: Failed opening required '/example.com/wp-content/mu-plugins/recaptchalib.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in/example.com/wp-content/mu-plugins/wp-recaptcha.php on line 45

line 45 in wp-recaptcha has these code lines: (42-48)

if ($wpmu == 1) require_once(dirname(FILE) . '/wp-recaptcha/recaptchalib.php'); else require_once(dirname(FILE) . '/recaptchalib.php');

// doesn't need to be secret, just shouldn't be used by any other code. define ("RECAPTCHA_WP_HASH_SALT", "b7e0638d85f5d7f3694f68e944136d62");

now would it work if i place recaptchalib.php and CSS out in wp-content/mu-plugins? because it seems mu-plugins folder read inside a folder there has to be a php file