Error: Invalid template “”

Closed

Import WP Pro Updated 4 months ago 7 Replies

Louis-Philippe asked 4 months ago on September 5, 2024 at 3:56 pm

I try to dowload a csv file and creating a template for all my fields (ACF Fields) and this message appear:

 

Message: Cannot read properties of undefined (reading \’length\’) Stack: TypeError: Cannot read properties of undefined (reading \’length\’) at Nu.render (https://transbecusa.tripledoublev.ca/wp-content/plugins/jc-importer/dist/index.js?ver=0333b533f751a9f7ef90:1:324002) at No (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:77413) at zo (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:77211) at xi (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:120546) at bs (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:108749) at vs (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:108677) at gs (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:108540) at is (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:105681) at Hl (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:46663) at ts (https://transbecusa.tripledoublev.ca/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:2:102781)

J

James replied Support Agent

4 months ago on September 5, 2024 at 3:59 pm

Hi Louis,

Can you please export and attach your importer settings to this ticket by going to Tools > Import WP > Settings / Tools > Import / Export and select and export your importer as a JSON file.

James

LV

Louis-Philippe replied

4 months ago on September 6, 2024 at 1:45 pm

All works well if I don't add a taxonomy. When I put my Taxonomies > category, it doesn't work, the message error appears. I sended you the export file. [image: image.png] Le jeu. 5 sept. 2024, à 11 h 59, Import WP Helpdesk < support@helpdesk.importwp.com> a écrit : >
J

James replied Support Agent

4 months ago on September 6, 2024 at 4:12 pm

Can you login to the ticket and attach the file, i cant see any exported json file.

LV

Louis-Philippe replied

4 months ago on September 6, 2024 at 5:01 pm

J

James replied Support Agent

4 months ago on September 6, 2024 at 5:33 pm

Just to confirm, that you have the "importwp woocommerce" plugin active ?

Can you export your acf field group? an attach a copy of your csv.

James 

LV

Louis-Philippe replied

4 months ago on September 6, 2024 at 5:39 pm

yes I have the "importwp woocommerce" plugin active

J

James replied Support Agent

4 months ago on September 7, 2024 at 9:02 am

Hi,

I have configured your importer locally, and based on your screenshot of the invalid template error and the importer having no data at the top of the error. My initial thoughts are that your server needs to increase your php max_input_vars and possibly post_max_size, to a value greater than its current (you can view this via Tools > Site Health > Info Tab > Server), as when the extra field is added to the importer the data being saved is to large for your server to handle and it errors.

Does your server have an error log? If not could you add the following code into your wp-config.php

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

Once saved, if you are to navigate to the importer and trigger the error, it should then generate a error log in wp-content/debug.log

James