files.php error
-
Hi
I am getting an error when a customer checkouts with file(s) uploaded.
The payment gets stuck at “pending payment” and the error message shows;“rename(/home/customer/www/talkinghands3d.com/public_html/wp-content/uploads/ppom_files/,/home/customer/www/talkinghands3d.com/public_html/wp-content/uploads/ppom_files/confirmed/1362/1173-): Invalid argument in /home/customer/www/talkinghands3d.com/public_html/wp-content/plugins/woocommerce-product-addon/inc/files.php on line 384”
Here is the function from files.php that the error is referencing;
// Check if file not yet moved to confirm then move it.
if( file_exists($base_dir_path) ) {
if(rename ( $base_dir_path, $confirmed_dir_path.$file_name)) {
$file_download_url_found = $ppom_dir_url .’confirmed/’ .$order_id .’/’ . $file_name;
}
} else if( file_exists($confirmed_dir_path.$file_name) ) {
$file_download_url_found = $ppom_dir_url .’confirmed/’ .$order_id .’/’ . $file_name;
} else if( file_exists($edits_dir_path) ) {
$file_download_url_found = $ppom_dir_url . ‘edits/’ . $file_name;
}return apply_filters(‘ppom_file_download_url’, $file_download_url_found, $file_name);
Can you please provide a temporary solution so I can continue to take orders? Thanks
The topic ‘files.php error’ is closed to new replies.