Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Php warning

WCMp Advanced Frontend Manager

Resolved
Viewing 1 reply thread
  • Author
    Posts
    • #130040
      redilson
      Participant

      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

    • #130090

      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>
      Copy

      Let us know. Regards,

Viewing 1 reply thread

The topic ‘Php warning’ is closed to new replies.