kennym / cf7-to-api

LOOKING FOR MAINTAINER. Wordpress plugin to transmit contact form 7 entries to remote API using POST or GET
https://wordpress.org/plugins/cf7-to-api-basic-auth/
52 stars 30 forks source link

The plugin cannot be Activated on WordPress 5.2.2 #4

Closed chelder86 closed 4 years ago

chelder86 commented 5 years ago

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/

kennym commented 5 years ago

I cannot fix this right now, but when I get a chance I will.

PRs welcome.

srinisubramanian commented 5 years ago

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

kennym commented 5 years ago

I currently cannot fix these issues, but I'm happy to accept a PR and deploy those changes.

sven09 commented 4 years ago

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.

kennym commented 4 years ago

@sven09 thank you! Fixed.

daniebker commented 4 years ago

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