WCMp Advanced Frontend Manager
-
AuthorPosts
-
-
November 4, 2021 at 12:19 AM #130040redilsonParticipant
Hi WCMP team,
I’m getting this error on the latest versions of Front End Manager and WCMP. Are you able too see this in your logs by chance? I’m able to kick it off by login in as a user and going to Variable products. I believe it causes the Downloadable option to not work in each variation. It’s almost like the file should be there in the plugin but it’s not? I’m not sure. Thank you for looking into it.
PHP Warning: include(): Failed opening ‘html-product-variation-download.php’ for inclusion (include_path=’.:/xxx/x/ea-php74/root/usr/share/pear’) in /home/x/x.x.com/wp-content/plugins/wcmp-frontend_product_manager/views/products/woocommerce/html-product-variations.php on line 337
-
November 5, 2021 at 6:13 PM #130090MVX Support NinjaKeymaster
HI,
We have found this issue on our end too. We will Fix this on our next update. For now as a temporary fix Kindly create a new file under wcmp-frontend_product_manager/views/products/woocommerce/ using below code and save the file named html-product-variation-download.php<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <tr> <td class="file_name"> <input type="text" class="input_text" placeholder="<?php esc_attr_e( 'File name', 'woocommerce' ); ?>" name="_wc_variation_file_names[<?php echo esc_attr( $variation_id ); ?>][]" value="<?php echo esc_attr( $file['name'] ); ?>" /> <input type="hidden" name="_wc_variation_file_hashes[<?php echo esc_attr( $variation_id ); ?>][]" value="<?php echo esc_attr( $key ); ?>" /> </td> <td class="file_url"><input type="text" class="input_text" placeholder="<?php esc_attr_e( 'http://', 'woocommerce' ); ?>" name="_wc_variation_file_urls[<?php echo esc_attr( $variation_id ); ?>][]" value="<?php echo esc_attr( $file['file'] ); ?>" /></td> <td class="file_url_choose" width="1%"><a href="#" class="button upload_file_button" data-choose="<?php esc_attr_e( 'Choose file', 'woocommerce' ); ?>" data-update="<?php esc_attr_e( 'Insert file URL', 'woocommerce' ); ?>"><?php esc_html_e( 'Choose file', 'woocommerce' ); ?></a></td> <td width="1%"><a href="#" class="delete"><?php esc_html_e( 'Delete', 'woocommerce' ); ?></a></td> </tr>
CopyLet us know. Regards,
-
-
AuthorPosts
The topic ‘Php warning’ is closed to new replies.