• Resolved tigernero

    (@tigernero)


    since i moved my site from one hosting to another when i activate the plugin i get these php alerts.

    how can i solve?

    I have attempted to uninstall and reinstall apps but without success.

    s/www.pensierando.it/home/wordpress/wp-content/uploads/wpcf7_uploads/.htaccess): failed to open stream: No such file or directory in /home/pensiera/public_html/wordpress/wp-content/plugins/contact-form-7/includes/file.php on line 247
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pensiera/public_html/wordpress/wp-content/plugins/contact-form-7/includes/file.php:247) in /home/pensiera/public_html/wordpress/wp-includes/functions.php on line 6360
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pensiera/public_html/wordpress/wp-content/plugins/contact-form-7/includes/file.php:247) in /home/pensiera/public_html/wordpress/wp-admin/includes/misc.php on line 1310
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/pensiera/public_html/wordpress/wp-content/plugins/contact-form-7/includes/file.php:247) in /home/pensiera/public_html/wordpress/wp-admin/admin-header.php on line 9
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter tigernero

    (@tigernero)

    Thread Starter tigernero

    (@tigernero)

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    See How your uploaded files are managed

    Make sure that the wp-content/uploads/wpcf7_uploads directory exists. If not, try creating it manually.

    There should be a text file named .htaccess in that directory. If not, then create it manually. The .htaccess file should have the following content:

    Deny from all

    Thread Starter tigernero

    (@tigernero)

    I checked the folder and the .htaccess file that had in the words “deny for all” permissions set to 775 or 777 but always error. I have also set the voice define in the wp-config file but in any case the problem is not eliminated

    Warning: fopen(/public_html/wordpress/wp-content/uploads/wpcf7_uploads/.htaccess): failed to open stream: No such file or directory in /home/pensiera/public_html/wordpress/wp-content/plugins/contact-form-7/includes/file.php on line 247

    • This reply was modified 5 years, 2 months ago by tigernero.
    Thread Starter tigernero

    (@tigernero)

    Hi,
    The real problem is the definition of WPCF7_UPLOADS_TMP_DIR value, this value is called on function wpcf7_upload_tmp_dir() in …/include/file.php of plugin..

    For fix this issue I have just use a fast workaround and define this value on wp_config.pho in this way :

    define('WPCF7_UPLOADS_TMP_DIR', getcwd() . '/wp-content/uploads/wpcf7_uploads');

    You can fix this in according of your plugin..

    Best Regards

    • This reply was modified 5 years, 2 months ago by tigernero.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Error when I try to activate the plugin’ is closed to new replies.