Skip to content

Import Error when using Pages with TextAreaLanguage inside repeaters /repeater matrix #2208

@prestoav

Description

@prestoav

PW: 3.0.255
PHP 8.1 and 8.3 tested

When exporting pages with TextAreaLanguage fields in repeaters / repeater matrix fields (even exporting and re-importing pages within the same site but the import being under a different parent page) the following error is seen:

`Error: Call to a member function getLanguageValue() on null in wire/modules/LanguageSupport/FieldtypeTextareaLanguage.module:126

#0 [internal function]: FieldtypeTextareaLanguage->___importValue(Object(RepeaterMatrixPage), Object(Field), Array, Array)
#1 wire/core/Wire.php (425): call_user_func_array(Array, Array)
#2 wire/core/WireHooks.php (1018): Wire->_callMethod('___importValue', Array)
#3 wire/core/Wire.php (484): WireHooks->runHooks(Object(FieldtypeTextareaLanguage), 'importValue', Array)
#4 wire/core/PagesExportImport.php (998): Wire->__call('importValue', Array)
#5 wire/core/PagesExportImport.php (685): PagesExportImport->importFieldValue(Object(RepeaterMatrixPage), Object(Field), Array, Array)
#6 wire/core/PagesExportImport.php (535): PagesExportImport->arrayToPage(Array, Array)
#7 wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeaterPorter.php (255): PagesExportImport->arrayToPages(Array, Array)
#8 wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeater.module (1006): FieldtypeRepeaterPorter->importValue(Object(Page), Object(RepeaterMatrixField), Array, Array)
#9 [internal function]: FieldtypeRepeater->___importValue(Object(Page), Object(RepeaterMatrixField), Array, Array)
#10 wire/core/Wire.php (425): call_user_func_array(Array, Array)
#11 wire/core/WireHooks.php (1018): Wire->_callMethod('___importValue', Array)
#12 wire/core/Wire.php (484): WireHooks->runHooks(Object(FieldtypeRepeaterMatrix), 'importValue', Array)
#13 wire/core/PagesExportImport.php (998): Wire->__call('importValue', Array)
#14 wire/core/PagesExportImport.php (685): PagesExportImport->importFieldValue(Object(Page), Object(RepeaterMatrixField), Array, Array)
#15 wire/modules/Process/ProcessPagesExportImport/ProcessPagesExportImport.module (619): PagesExportImport->arrayToPage(Array, Array)
#16 wire/modules/Process/ProcessPagesExportImport/ProcessPagesExportImport.module (320): ProcessPagesExportImport->processImportItemToPage(Array, Array)
#17 wire/modules/Process/ProcessPagesExportImport/ProcessPagesExportImport.module (242): ProcessPagesExportImport->processImportSubmit(Object(InputfieldForm), Array, true)
#18 wire/modules/Process/ProcessPagesExportImport/ProcessPagesExportImport.module (76): ProcessPagesExportImport->processImport()
#19 wire/core/Wire.php (413): ProcessPagesExportImport->___execute()
#20 wire/core/WireHooks.php (1018): Wire->_callMethod('___execute', Array)
#21 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessPagesExportImport), 'execute', Array)
#22 wire/core/ProcessController.php (362): Wire->__call('execute', Array)
#23 wire/core/Wire.php (413): ProcessController->___execute()
#24 wire/core/WireHooks.php (1018): Wire->_callMethod('___execute', Array)
#25 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessController), 'execute', Array)
#26 wire/core/admin.php (174): Wire->__call('execute', Array)
#27 wire/modules/AdminTheme/AdminThemeUikit/controller.php (15): require('/Users/Geoff/we...')
#28 site/templates/admin.php (15): require('/Users/Geoff/we...')
#29 wire/core/TemplateFile.php (328): require('/Users/Geoff/we...')
#30 wire/core/Wire.php (413): TemplateFile->___render()
#31 wire/core/WireHooks.php (1018): Wire->_callMethod('___render', Array)
#32 wire/core/Wire.php (484): WireHooks->runHooks(Object(TemplateFile), 'render', Array)
#33 wire/modules/PageRender.module (547): Wire->__call('render', Array)
#34 wire/core/Page.php (3152): PageRender->render(Object(Page), Array)
#35 wire/core/Wire.php (416): Page->___renderPage(Array)
#36 wire/core/WireHooks.php (1018): Wire->_callMethod('___renderPage', Array)
#37 wire/core/Wire.php (484): WireHooks->runHooks(Object(Page), 'renderPage', Array)
#38 wire/core/Page.php (3097): Wire->__call('renderPage', Array)
#39 wire/core/Wire.php (413): Page->___render()
#40 wire/core/WireHooks.php (1018): Wire->_callMethod('___render', Array)
#41 wire/core/Wire.php (484): WireHooks->runHooks(Object(Page), 'render', Array)
#42 wire/modules/Process/ProcessPageView.module (193): Wire->__call('render', Array)
#43 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage(Object(Page), Object(PagesRequest))
#44 wire/core/Wire.php (416): ProcessPageView->___execute(true)
#45 wire/core/WireHooks.php (1018): Wire->_callMethod('___execute', Array)
#46 wire/core/Wire.php (484): WireHooks->runHooks(Object(ProcessPageView), 'execute', Array)
#47 index.php (56): Wire->__call('execute', Array)
#48 {main}

This error message was shown because: you are logged in as a Superuser. Error has been logged.`

An example import JSON that throws the error ('***' is redacted site name):

{
"type": "ProcessWire:PageArray",
"created": "2026-04-27 13:50:09",
"version": "3.0.255",
"user": "geoff",
"host": "localhost:8888",
"pages": [
{
"type": "ProcessWire:Page",
"path": "/en/import-test-page/",
"class": "ProcessWire\Page",
"template": "basic-page",
"settings": {
"id": 88671,
"name": "import-test-page",
"status": 1,
"sort": 8,
"sortfield": "sort",
"created": "2026-04-27 13:43:57",
"modified": "2026-04-27 13:49:45",
"name_francais": "page-de-estd-importation",
"status_francais": 1,
"name_deutsch": "import-test-page-de",
"status_deutsch": 1,
"name_espanol": "pagina-de-prueba-de-importacion",
"status_espanol": 1,
"name_polski": "importuj-strone-testowa",
"status_polski": 1
},
"data": {
"title": {
"default": "Import Test Page",
"francais": "",
"deutsch": "",
"espanol": "",
"polski": ""
},
"menu_text": {
"default": "",
"francais": "",
"deutsch": "",
"espanol": "",
"polski": ""
},
"meta_description": {
"default": "",
"francais": "",
"deutsch": "",
"espanol": "",
"polski": ""
},
"meta_title_overide": {
"default": "",
"francais": "",
"deutsch": "",
"espanol": "",
"polski": ""
},
"header_type": {
"type": "ProcessWire:PageArray",
"created": "2026-04-27 13:50:09",
"version": "3.0.255",
"user": "geoff",
"host": "localhost:8888",
"pages": [],
"fields": [],
"urls": {
"root": "//",
"assets": "/
/site/assets/"
},
"timer": "0.0000"
},
"no_second_level_menu": 0,
"second_lvl_menu_header": 0,
"body": {
"default": "",
"francais": "",
"deutsch": "",
"espanol": "",
"polski": ""
},
"pb_matrix": {
"type": "ProcessWire:PageArray",
"created": "2026-04-27 13:50:09",
"version": "3.0.255",
"user": "geoff",
"host": "localhost:8888",
"pages": [
{
"type": "ProcessWire:Page",
"path": "/en/admin/repeaters/for-field-292/for-page-88671/1777293989-6291-1/",
"class": "ProcessWire\RepeaterMatrixPage",
"template": "repeater_pb_matrix",
"settings": {
"id": 88674,
"name": "1777293989-6291-1",
"status": 1,
"sort": 2,
"sortfield": "sort",
"created": "2026-04-27 13:46:29",
"modified": "2026-04-27 13:48:54",
"name_francais": null,
"status_francais": 1,
"name_deutsch": null,
"status_deutsch": 1,
"name_espanol": null,
"status_espanol": 1,
"name_polski": null,
"status_polski": 1
},
"data": {
"repeater_matrix_type": 1,
"full_width": 0,
"pb_background_colour_central_only": 0,
"pb_background_colour": [],
"pb_text_colour": [],
"pb_block_heading": {
"default": "",
"francais": "",
"deutsch": "",
"espanol": "",
"polski": ""
},
"pb_text_left": {
"default": "

This is a test

",
"francais": "

Esta es una prueba

",
"deutsch": "

Dies ist ein Test

",
"espanol": "

Esta es una prueba

",
"polski": "

 

\n\n

To jest test

"
},
"remove_top_padding": null,
"remove_bottom_padding": null,
"pb_image_left": [],
"sub_heading": [],
"pb_text_right": [],
"row_vert_centre": null,
"pb_text_center": [],
"pb_image_left_heading": [],
"pb_image_left_page": [],
"pb_image_left_url": null,
"pb_image_right": [],
"pb_image_right_heading": [],
"pb_image_right_page": [],
"pb_image_right_url": null,
"pb_image_center": [],
"pb_image_centre_heading": [],
"pb_image_centre_page": [],
"pb_image_centre_url": null,
"pb_image_as_background": null,
"video1_embed": [],
"video2_embed": [],
"video3_embed": [],
"pb_link_blocks": [],
"pb_image_link_block": [],
"hide_on_non_active_locales": null,
"pb_product_features": [],
"body": [],
"text_on_right": null,
"action_blocks_simple": [],
"pb_blog_articles": [],
"parts": [],
"related_prods": []
}
}
],
"fields": {
"repeater_matrix_type": {
"type": "FieldtypeInteger",
"label": "Repeater matrix type",
"version": "1.0.2",
"id": 235,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"full_width": {
"type": "FieldtypeCheckbox",
"label": "Contained row (not full width)?",
"version": "1.0.1",
"id": 531,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_background_colour_central_only": {
"type": "FieldtypeCheckbox",
"label": "Background colour in central column only?",
"version": "1.0.1",
"id": 532,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_background_colour": {
"type": "FieldtypeOptions",
"label": "Block background colour",
"version": "0.0.2",
"id": 529,
"blankValue": "class:SelectableOptionArray",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_text_colour": {
"type": "FieldtypeOptions",
"label": "Block text colour",
"version": "0.0.2",
"id": 530,
"blankValue": "class:SelectableOptionArray",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_block_heading": {
"type": "FieldtypeTextLanguage",
"label": "Block heading",
"version": "1.0.0",
"id": 285,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_text_left": {
"type": "FieldtypeTextareaLanguage",
"label": "Text on left",
"version": "1.0.0",
"id": 290,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"remove_top_padding": {
"type": "FieldtypeCheckbox",
"label": "Remove Top Padding?",
"version": "1.0.1",
"id": 535,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"remove_bottom_padding": {
"type": "FieldtypeCheckbox",
"label": "Remove Bottom Padding?",
"version": "1.0.1",
"id": 534,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_left": {
"type": "FieldtypeImage",
"label": "Image on left",
"version": "1.0.2",
"id": 287,
"blankValue": "class:Pageimages",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"sub_heading": {
"type": "FieldtypeTextLanguage",
"label": "Sub heading",
"version": "1.0.0",
"id": 278,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_text_right": {
"type": "FieldtypeTextareaLanguage",
"label": "Text on right",
"version": "1.0.0",
"id": 291,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"row_vert_centre": {
"type": "FieldtypeCheckbox",
"label": "Vertically centre this row?",
"version": "1.0.1",
"id": 473,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_text_center": {
"type": "FieldtypeTextareaLanguage",
"label": "Text in centre",
"version": "1.0.0",
"id": 289,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_left_heading": {
"type": "FieldtypeTextLanguage",
"label": "Heading overlay for left image",
"version": "1.0.0",
"id": 424,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_left_page": {
"type": "FieldtypePage",
"label": "Left image links to this page... (external link takes priority)",
"version": "1.0.7",
"id": 419,
"blankValue": false,
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_left_url": {
"type": "FieldtypeURL",
"label": "External URL for left image",
"version": "1.0.1",
"id": 420,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_right": {
"type": "FieldtypeImage",
"label": "Image on right",
"version": "1.0.2",
"id": 288,
"blankValue": "class:Pageimages",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_right_heading": {
"type": "FieldtypeTextLanguage",
"label": "Heading overlay for centre image (copy)",
"version": "1.0.0",
"id": 425,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_right_page": {
"type": "FieldtypePage",
"label": "Right image links to this page... (external link takes priority)",
"version": "1.0.7",
"id": 421,
"blankValue": false,
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_right_url": {
"type": "FieldtypeURL",
"label": "External URL for centre image",
"version": "1.0.1",
"id": 422,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_center": {
"type": "FieldtypeImage",
"label": "Image in centre",
"version": "1.0.2",
"id": 286,
"blankValue": "class:Pageimages",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_centre_heading": {
"type": "FieldtypeTextLanguage",
"label": "Heading overlay for centre image",
"version": "1.0.0",
"id": 423,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_centre_page": {
"type": "FieldtypePage",
"label": "Centre image links to this page... (external link takes priority)",
"version": "1.0.7",
"id": 417,
"blankValue": false,
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_centre_url": {
"type": "FieldtypeURL",
"label": "External URL for right image",
"version": "1.0.1",
"id": 418,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_as_background": {
"type": "FieldtypeCheckbox",
"label": "Make image as background to whole row?",
"version": "1.0.1",
"id": 533,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"video1_embed": {
"type": "FieldtypeTextareaLanguage",
"label": "Video 1 Embed Code (from YouTube e.g. '<iframe ...></iframe>')",
"version": "1.0.0",
"id": 181,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"video2_embed": {
"type": "FieldtypeTextareaLanguage",
"label": "Video 2 Embed Code (from YouTube e.g. '<iframe ...></iframe>')",
"version": "1.0.0",
"id": 182,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"video3_embed": {
"type": "FieldtypeTextareaLanguage",
"label": "Video 3 Embed Code (from YouTube e.g. '<iframe ...></iframe>')",
"version": "1.0.0",
"id": 428,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_link_blocks": {
"type": "FieldtypeRepeater",
"label": "Link blocks",
"version": "1.1.3",
"id": 560,
"blankValue": "class:RepeaterPageArray",
"importable": false,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_link_block": {
"type": "FieldtypeRepeater",
"label": "Image Link Block",
"version": "1.1.3",
"id": 559,
"blankValue": "class:RepeaterPageArray",
"importable": false,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"hide_on_non_active_locales": {
"type": "FieldtypeCheckbox",
"label": "Hide on non-active locales?",
"version": "1.0.1",
"id": 565,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_product_features": {
"type": "FieldtypePage",
"label": "PB Product Features",
"version": "1.0.7",
"id": 562,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"body": {
"type": "FieldtypeTextareaLanguage",
"label": "Body Text",
"version": "1.0.0",
"id": 97,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"text_on_right": {
"type": "FieldtypeCheckbox",
"label": "Text on right?",
"version": "1.0.1",
"id": 545,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"action_blocks_simple": {
"type": "FieldtypeRepeater",
"label": "action_blocks_simple",
"version": "1.1.3",
"id": 558,
"blankValue": "class:RepeaterPageArray",
"importable": false,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_blog_articles": {
"type": "FieldtypePage",
"label": "Blog articles to show",
"version": "1.0.7",
"id": 561,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"parts": {
"type": "FieldtypePage",
"label": "Products for Builder",
"version": "1.0.7",
"id": 544,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"related_prods": {
"type": "FieldtypePage",
"label": "Related Products",
"version": "1.0.7",
"id": 180,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
}
},
"urls": {
"root": "//",
"assets": "/
/site/assets/"
},
"timer": "0.0337"
},
"preview_products": [],
"show_newsletter_signup": 0,
"page_images": [],
"search_index": "Import Test Page ... This is a test \n{}"
}
}
],
"fields": {
"title": {
"type": "FieldtypePageTitleLanguage",
"label": "Title",
"version": "1.0.0",
"id": 1,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"menu_text": {
"type": "FieldtypeTextLanguage",
"label": "Menu Text",
"version": "1.0.0",
"id": 170,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"meta_description": {
"type": "FieldtypeTextLanguage",
"label": "Meta Description",
"version": "1.0.0",
"id": 117,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"meta_title_overide": {
"type": "FieldtypeTextLanguage",
"label": "Meta title overide",
"version": "1.0.0",
"id": 163,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"header_type": {
"type": "FieldtypeRepeaterMatrix",
"label": "Choose Header",
"version": "0.1.3",
"id": 563,
"blankValue": "class:RepeaterMatrixPageArray",
"importable": false,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"no_second_level_menu": {
"type": "FieldtypeCheckbox",
"label": "No second level menu?",
"version": "1.0.1",
"id": 553,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"second_lvl_menu_header": {
"type": "FieldtypeCheckbox",
"label": "Second level menu in Header?",
"version": "1.0.1",
"id": 554,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"body": {
"type": "FieldtypeTextareaLanguage",
"label": "Body Text",
"version": "1.0.0",
"id": 97,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_matrix": {
"type": "FieldtypeRepeaterMatrix",
"label": "Page body content blocks",
"version": "0.1.3",
"id": 292,
"blankValue": "class:RepeaterMatrixPageArray",
"importable": false,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"repeater_matrix_type": {
"type": "FieldtypeInteger",
"label": "Repeater matrix type",
"version": "1.0.2",
"id": 235,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"full_width": {
"type": "FieldtypeCheckbox",
"label": "Contained row (not full width)?",
"version": "1.0.1",
"id": 531,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_background_colour_central_only": {
"type": "FieldtypeCheckbox",
"label": "Background colour in central column only?",
"version": "1.0.1",
"id": 532,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_background_colour": {
"type": "FieldtypeOptions",
"label": "Block background colour",
"version": "0.0.2",
"id": 529,
"blankValue": "class:SelectableOptionArray",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_text_colour": {
"type": "FieldtypeOptions",
"label": "Block text colour",
"version": "0.0.2",
"id": 530,
"blankValue": "class:SelectableOptionArray",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_block_heading": {
"type": "FieldtypeTextLanguage",
"label": "Block heading",
"version": "1.0.0",
"id": 285,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_text_left": {
"type": "FieldtypeTextareaLanguage",
"label": "Text on left",
"version": "1.0.0",
"id": 290,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"remove_top_padding": {
"type": "FieldtypeCheckbox",
"label": "Remove Top Padding?",
"version": "1.0.1",
"id": 535,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"remove_bottom_padding": {
"type": "FieldtypeCheckbox",
"label": "Remove Bottom Padding?",
"version": "1.0.1",
"id": 534,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_left": {
"type": "FieldtypeImage",
"label": "Image on left",
"version": "1.0.2",
"id": 287,
"blankValue": "class:Pageimages",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"sub_heading": {
"type": "FieldtypeTextLanguage",
"label": "Sub heading",
"version": "1.0.0",
"id": 278,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_text_right": {
"type": "FieldtypeTextareaLanguage",
"label": "Text on right",
"version": "1.0.0",
"id": 291,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"row_vert_centre": {
"type": "FieldtypeCheckbox",
"label": "Vertically centre this row?",
"version": "1.0.1",
"id": 473,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_text_center": {
"type": "FieldtypeTextareaLanguage",
"label": "Text in centre",
"version": "1.0.0",
"id": 289,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_left_heading": {
"type": "FieldtypeTextLanguage",
"label": "Heading overlay for left image",
"version": "1.0.0",
"id": 424,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_left_page": {
"type": "FieldtypePage",
"label": "Left image links to this page... (external link takes priority)",
"version": "1.0.7",
"id": 419,
"blankValue": false,
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_left_url": {
"type": "FieldtypeURL",
"label": "External URL for left image",
"version": "1.0.1",
"id": 420,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_right": {
"type": "FieldtypeImage",
"label": "Image on right",
"version": "1.0.2",
"id": 288,
"blankValue": "class:Pageimages",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_right_heading": {
"type": "FieldtypeTextLanguage",
"label": "Heading overlay for centre image (copy)",
"version": "1.0.0",
"id": 425,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_right_page": {
"type": "FieldtypePage",
"label": "Right image links to this page... (external link takes priority)",
"version": "1.0.7",
"id": 421,
"blankValue": false,
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_right_url": {
"type": "FieldtypeURL",
"label": "External URL for centre image",
"version": "1.0.1",
"id": 422,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_center": {
"type": "FieldtypeImage",
"label": "Image in centre",
"version": "1.0.2",
"id": 286,
"blankValue": "class:Pageimages",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_centre_heading": {
"type": "FieldtypeTextLanguage",
"label": "Heading overlay for centre image",
"version": "1.0.0",
"id": 423,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_centre_page": {
"type": "FieldtypePage",
"label": "Centre image links to this page... (external link takes priority)",
"version": "1.0.7",
"id": 417,
"blankValue": false,
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_centre_url": {
"type": "FieldtypeURL",
"label": "External URL for right image",
"version": "1.0.1",
"id": 418,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_as_background": {
"type": "FieldtypeCheckbox",
"label": "Make image as background to whole row?",
"version": "1.0.1",
"id": 533,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"video1_embed": {
"type": "FieldtypeTextareaLanguage",
"label": "Video 1 Embed Code (from YouTube e.g. '<iframe ...></iframe>')",
"version": "1.0.0",
"id": 181,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"video2_embed": {
"type": "FieldtypeTextareaLanguage",
"label": "Video 2 Embed Code (from YouTube e.g. '<iframe ...></iframe>')",
"version": "1.0.0",
"id": 182,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"video3_embed": {
"type": "FieldtypeTextareaLanguage",
"label": "Video 3 Embed Code (from YouTube e.g. '<iframe ...></iframe>')",
"version": "1.0.0",
"id": 428,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_link_blocks": {
"type": "FieldtypeRepeater",
"label": "Link blocks",
"version": "1.1.3",
"id": 560,
"blankValue": "class:RepeaterPageArray",
"importable": false,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_image_link_block": {
"type": "FieldtypeRepeater",
"label": "Image Link Block",
"version": "1.1.3",
"id": 559,
"blankValue": "class:RepeaterPageArray",
"importable": false,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"hide_on_non_active_locales": {
"type": "FieldtypeCheckbox",
"label": "Hide on non-active locales?",
"version": "1.0.1",
"id": 565,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_product_features": {
"type": "FieldtypePage",
"label": "PB Product Features",
"version": "1.0.7",
"id": 562,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"text_on_right": {
"type": "FieldtypeCheckbox",
"label": "Text on right?",
"version": "1.0.1",
"id": 545,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"action_blocks_simple": {
"type": "FieldtypeRepeater",
"label": "action_blocks_simple",
"version": "1.1.3",
"id": 558,
"blankValue": "class:RepeaterPageArray",
"importable": false,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"pb_blog_articles": {
"type": "FieldtypePage",
"label": "Blog articles to show",
"version": "1.0.7",
"id": 561,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"parts": {
"type": "FieldtypePage",
"label": "Products for Builder",
"version": "1.0.7",
"id": 544,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"related_prods": {
"type": "FieldtypePage",
"label": "Related Products",
"version": "1.0.7",
"id": 180,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"preview_products": {
"type": "FieldtypePage",
"label": "Products to preview on this page",
"version": "1.0.7",
"id": 478,
"blankValue": "class:PageArray",
"importable": true,
"test": true,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"show_newsletter_signup": {
"type": "FieldtypeCheckbox",
"label": "Show newsletter signup before footer?",
"version": "1.0.1",
"id": 361,
"blankValue": 0,
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"page_images": {
"type": "FieldtypeImage",
"label": "Other images for this page",
"version": "1.0.2",
"id": 284,
"blankValue": "class:Pageimages",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
},
"search_index": {
"type": "FieldtypeTextarea",
"label": "",
"version": "1.0.7",
"id": 582,
"blankValue": "",
"importable": true,
"test": false,
"returnsPageValue": true,
"requiresExportValue": false,
"restoreOnException": false
}
},
"urls": {
"root": "//",
"assets": "/
/site/assets/"
},
"timer": "0.0763"
}

AI diagnostics points at this as a likely cause:

_The RepeaterMatrixPage being passed into ___importValue is the child repeater page — and it's being instantiated without a proper $wire / fuel context, so when FieldtypeTextareaLanguage line 126 does something like:

$language = $this->wire('languages')->get($langName); // $language is null because wire() isn't available on this page object $page->getLanguageValue($language, $fieldName);

It returns null. The wire() call is failing silently inside the repeater porter's context._

This fix seems to work - in FieldtypeTextareaLanguage.module:

Change this (line 154):

// BEFORE (line ~148)
$languages = $this->wire()->languages;
/** @var LanguagesPageFieldValue $importValue */
$importValue = $page->get($field->name);
foreach($value as $languageName => $languageValue) {
$language = $languages->get($languageName);
if(!$language->id) continue;
$importValue->setLanguageValue($language->id, $languageValue);
}
return $importValue;

// AFTER
$languages = $this->wire()->languages;
/** @var LanguagesPageFieldValue $importValue */
$importValue = $page->get($field->name);

// If the page is unsaved/new (e.g. a RepeaterMatrixPage being constructed
// during import), $page->get() returns null. Create a blank value instead.
if(!$importValue instanceof LanguagesPageFieldValue) {
$importValue = new LanguagesPageFieldValue($page, $field);
}

foreach($value as $languageName => $languageValue) {
$language = $languages->get($languageName);
if(!$language->id) continue;
$importValue->setLanguageValue($language->id, $languageValue);
}
return $importValue;

AI reasoning as to why this is the correct fix:

The sanitizeValue() method in the same file (line ~40) already handles exactly this scenario:
php$pageValue = $page->data($field->name);
if(!$pageValue instanceof LanguagesPageFieldValue) {
$pageValue = new LanguagesPageFieldValue($page, $field, $pageValue);
}
The ___importValue() method simply forgot to apply the same defensive check. When called on a normal saved page, $page->get($field->name) returns a proper LanguagesPageFieldValue object. But on a new/unsaved RepeaterMatrixPage during import construction, it returns null.
This is a clean, minimal, single-file fix that mirrors the existing pattern already used in sanitizeValue() in the same file — which makes it easy to justify in your GitHub issue. The fix is safe for all other use cases because the instanceof check only triggers the fallback when $importValue is null or not the expected type.

I can confirm that, in the above scenario, the fix appears to work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions