Closed chelder86 closed 4 years ago
I cannot fix this right now, but when I get a chance I will.
PRs welcome.
The error I have is as follows:
Warning: require_once(/var/www/site/wp-content/plugins/cf7-to-api-basic-auth/includes/class.cf7-api.php): failed to open stream: No such file or directory in /var/www/site/wp-content/plugins/cf7-to-api-basic-auth/contact-form-7-api.php on line 49
Fatal error: require_once(): Failed opening required '/var/www/site/wp-content/plugins/cf7-to-api-basic-auth/includes/class.cf7-api.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/site/wp-content/plugins/cf7-to-api-basic-auth/contact-form-7-api.php on line 49
I currently cannot fix these issues, but I'm happy to accept a PR and deploy those changes.
Change
QS_CF7_API_INCLUDES_PATH
in https://github.com/kennym/cf7-to-api/blob/master/contact-form-7-api.php in line 29
to
define( 'QS_CF7_API_INCLUDES_PATH' , plugin_dir_path( __FILE__ ));
Will fix it, because the plugin downloaded via WP Plugin install has no "includes" directory.
@sven09 thank you! Fixed.
I'm getting this error on activation for wordpress 5.3.2.
Warning: require_once(/var/www/site/wp-content/plugins/cf7-to-api-basic-auth/includes/class.cf7-api.php): failed to open stream: No such file or directory in /var/www/site/wp-content/plugins/cf7-to-api-basic-auth/contact-form-7-api.php on line 49
Fatal error: require_once(): Failed opening required '/var/www/site/wp-content/plugins/cf7-to-api-basic-auth/includes/class.cf7-api.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/site/wp-content/plugins/cf7-to-api-basic-auth/contact-form-7-api.php on line 49
I tried downloading source and zipping and installing from wordpress plugin directly from my wordpress site. In the plugin folder I see an includes folder so reverting this commit (https://github.com/kennym/cf7-to-api/commit/7ef8dcd269e9420d897965626e57b11a8a7a91ba#diff-0dc95e3202da0f75d99561268150ad64) fixed the issue for me and I was able to activate
Hi. Thanks for your plugin!!
I've installed the plugin from Plugins - New plugin.
Unfortunately, when I click on Activate, it just keep disabled (no error is returned).
The plugin Contact form 7 to api + Basic auth v1.3.0 installed is this: https://es.wordpress.org/plugins/cf7-to-api-basic-auth/ I'm using WordPress 5.2.2 and Contact Form 7 Version 5.1.3
Note: I've also asked this question here: https://wordpress.org/support/topic/the-plugin-cannot-be-activated-on-wordpress-5-2-2/