File upload error | WordPress.org

[ad_1]

Thread Starter
yzhak

(@yzhak)

Console returns this: https://prnt.sc/qnDhD5FSXFr2

Hello @yzhak ,

Thanks for reaching out, can you check and see if the folder “/wp-content/uploads/wp_dndcf7_uploads” is writable or exists?

The error is related to the file.php under /contact-form-7/includes/file.php, in this function wpcf7_file_messages.

So I’m not sure why it’s showing in my plugin.

Can you provide a link to your site where the form was added?

Thanks,
Glen

Thread Starter
yzhak

(@yzhak)

Yes it’s writable
https://prnt.sc/ZTqgLIcasr0y
also I debuged
$_FILES array
$file = isset( $_FILES[$name] ) ? $_FILES[$name] : null;
and it returns
https://prnt.sc/rkWT9tTfimij

Thread Starter
yzhak

(@yzhak)

Also error message goes from you plugin settings https://prnt.sc/f8AjLYa8TD6J https://prnt.sc/tUguIYS7GuMZ

  • This reply was modified 53 minutes ago by yzhak.

Thread Starter
yzhak

(@yzhak)

Trouble is in the move_uploaded_file function
tmp filename is /tmp/phpHVgBhb
new_filename is /var/www/html/wordpress/wp-content/uploads/wp_dndcf7_uploads/wpcf7-files/shuf.jpg

  • This reply was modified 34 minutes ago by yzhak.

Thread Starter
yzhak

(@yzhak)

/var/www/html/wordpress/wp-content/uploads/wp_dndcf7_uploads/wpcf7-files is writable

/tmp also writable and redable

  • This reply was modified 22 minutes ago by yzhak.

Thread Starter
yzhak

(@yzhak)

/var/www/html/wordpress/wp-content/uploads/wp_dndcf7_uploads/wpcf7-files has root owner.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer