• Resolved maurodimarino

    (@maurodimarino)


    Hello I can’t activate the plugin because I get this error:

    Warning: require_once(/var/www/vhosts/site/httpdocs/wp-content/plugins/cf7-to-api-basic-auth/class.cf7-api.php): failed to open stream: No such file or directory in /var/www/vhosts/site/httpdocs/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/vhosts/site/httpdocs/wp-content/plugins/cf7-to-api-basic-auth/class.cf7-api.php' (include_path='.:/opt/plesk/php/7.2/share/pear') in /var/www/vhosts/site/httpdocs/wp-content/plugins/cf7-to-api-basic-auth/contact-form-7-api.php on line 49

    How can I solve it?
    I tryed the new plugin version and wont work.
    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same error for bitnami instance:

    Warning: require_once(/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cf7-to-api-basic-auth/class.cf7-api.php): failed to open stream: No such file or directory in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cf7-to-api-basic-auth/contact-form-7-api.php on line 49

    Fatal error: require_once(): Failed opening required ‘/opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cf7-to-api-basic-auth/class.cf7-api.php’ (include_path=’.:/opt/bitnami/php/lib/php’) in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/cf7-to-api-basic-auth/contact-form-7-api.php on line 49

    • This reply was modified 4 years, 9 months ago by denba.

    I found a solution to this error on line 28 of the main PHP file:

    Change this:
    define( ‘QS_CF7_API_INCLUDES_PATH’ , plugin_dir_path( __FILE__ ));

    to this:
    define( ‘QS_CF7_API_INCLUDES_PATH’ , plugin_dir_path( __FILE__ ). ‘includes/’ );

    the plugin cannot find the files needed under /includes folder because it is not properly defined.

    Thread Starter maurodimarino

    (@maurodimarino)

    Hello,
    I arleady solved in the same way thank you!

    Plugin Author Kenny Meyer

    (@kennymeyer)

    I just released a bug fix release. Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error on Plugin Activation’ is closed to new replies.