• I tried to import / implement one of the contact “patterns” in UAG Templates, but I got message: WPForms Import Failed! So I tried a few of the other contact patterns, and none of them worked.

    –I have Astra theme, 3.7.5. and using your child theme option.
    –UAG templates are activated (except for Google Maps and Lottie)
    –WPForms Lite is active.
    –Not all of the Available Astra Pro Modules are activated–could that be the issue? Which one(s) need to be active for this to work?
    –WordPress version 5.8.2

    Let me know if you need anything else, thank you for your help.

    • This topic was modified 3 years, 4 months ago by tallthing.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello @tallthing ,

    Sorry for the inconvenience caused to you. I’d like to let you know, the issue is with the file MIME type.

    Please use the following filter the functions.php file of your child theme. This will add the support for the MIME type:

    if ( ! function_exists( 'prefix_modify_mime_type' ) ) :
    
    	/**
    	 * Modify the MIME types.
    	 *
    	 * @since x.x.x
    	 *
    	 * @param  array  $args 	File upload arguments.
    	 * @return array.
    	 */
    	function prefix_modify_mime_type( $args ) {
    
    		$args['mimes']['json'] = 'text/plain';
    
    		return $args;
    	}
    	add_filter( 'ast_block_templates_wp_handle_sideload', 'prefix_modify_mime_type' );
    
    endif;

    I hope that helps. Let me know.

    Regards,
    Sweta

    Hello @tallthing ,

    We haven’t heard back from you in a while. Can you please confirm if your issue is fixed?

    Thank you!

    Thread Starter tallthing

    (@tallthing)

    I think I need to hire a WP expert.

    I went to theme editor for my Astra child theme and selected functions.php:

    Edit Themes
    Astra Child: functions.php

    Now do I simply copy/paste the filter you provided to the bottom and update file?

    Thread Starter tallthing

    (@tallthing)

    Hello again, I found how to add/edit functions.php on the Astra website.

    I copied the filter as you shared above and updated but it still failed. I cleared cache, restarted computer, still failed. All the form patterns fail, other patterns like Single Quote or Services work fine.

    I have WPForms Lite Version 1.7.1.2 installed.

    • This reply was modified 3 years, 3 months ago by tallthing.

    Hello @tallthing,

    I tried the same at our end with WPForms Lite v1.7.1.2 It works fine. See here – https://share.getcloudapp.com/geup6Bbw

    ?Could you please open a ticket at our support portal from here so that we can take a look and resolve the issue?
    ?
    ?We will try to resolve your query on priority.

    Regards,
    Abhijit

    Thread Starter tallthing

    (@tallthing)

    Hi Abhijit, I watched the little video but that’s not my experience. I still get the error message– WPForms Import Failed!

    I will move this to support. Thank you.

    Hello @tallthing,

    Could you please share a ticket ID so that I’ll check your ticket?

    Looking forward to your response.

    Hello @tallthing ,

    We haven’t heard back from you in a while. Can you please share the ticket ID so that we can have a look?

    Looking forward to hearing from you.

    Regards,
    Sweta

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘UAG Templates, pattern for Contact not importing’ is closed to new replies.