1. mangeshmane
  2. RO CSVI
  3. Wednesday, 18 February 2026
  4.  Subscribe via email
Division by Zero Error When Importing Articles with Gallery Custom Field Values

Hello RO CSVI Support Team,

I am migrating content to a new Joomla 6.0.2 website using RO CSVI.

Environment:

Joomla: 6.0.2

PHP: 8.4

Server: WAMP (Windows)

Progress:

Categories imported successfully

Custom Fields and Field Groups imported successfully

Articles imported successfully when subform/gallery plugins are disabled

Problem:

When importing article custom field values, the import fails with:

“Division by zero” error

Investigation:

The issue happens only for complex custom fields such as gallery/subform fields.

Example field value being imported:

{"items":{"1":{"alt":"","image":"media\\tfgallerymanager\\tmp\\image_original.jpg","thumbnail":"media\\tfgallerymanager\\tmp\\image_thumb.jpg"}}}


Simple custom fields like PDF upload paths import correctly, but gallery JSON fields cause the crash.

Disabling the subform/gallery custom field plugin allows article import to complete, but then custom field data is missing.

Question:

Is RO CSVI supposed to support importing gallery/subform custom fields (ACF/TF Gallery Manager)?

If yes, what is the correct format or method?

If not, is there an alternative recommended approach?

Thank you for your guidance.
Accepted Answer Pending Moderation
Hi,

Thank you for the database dump. Reading through the history there are a few things I want to explain:

  • The issue is not in the import of the data itself
  • The error is thrown when you want to edit the article ID 566
  • The error is thrown by the file layout of the gallery manager. Now which file exactly I cannot tell you because the stacktrace does not provide that. However you said it is the repeatable-table layout. Is that correct?
Now to some of your questions.
Upon reviewing the JSON for Article ID 566, we noticed that all image paths use backslashes (media\acfgallery\...).
Could this cause ACF Gallery to treat the images as invalid and result in an empty items array during rendering, leading to DivisionByZeroError in repeatable-table layout?
No, the double slashes are actually correct for the JSON format because a single backslash is meant as an escape character. By putting 2 backslashes it becomes a normal backslash. This is your JSON but in pretty format

{
"items": [
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide7_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide7_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide10_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide10_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide11_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide11_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide12_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide12_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide13_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide13_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide14_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide14_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide17_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide17_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide18_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide18_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide19_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide19_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide23_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide23_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide24_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide24_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide25_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide25_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide26_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide26_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\Slide27_original_copy_1.JPG",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\Slide27_thumb_copy_1.JPG"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\united_original.jpg",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\united_thumb.jpg"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\quilt_original.jpg",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\quilt_thumb.jpg"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\s1_original.jpg",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\s1_thumb.jpg"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\s2_original.jpg",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\s2_thumb.jpg"
},
{
"alt": "",
"caption": "",
"image": "media\\acfgallery\\content\\165\\11\\s3_original.jpg",
"source": "",
"tags": [],
"thumbnail": "media\\acfgallery\\content\\165\\11\\s3_thumb.jpg"
}
]
}
Do we have to import media files first before article import?
No need for that because these media files are not being processed by RO CSVI, they are stored as-is.
Please tell me what going wrong in this article.
Unfortunaltey I cannot do that as it is something related to the custom field you are using. What I can tell you is that to solve this, you need to find the location where the division is happening. One way to do that is to check how the data is being send to the repeatable-table.php by doing a print_r of the $displayData. Just so you can see how your data looks like. Perhaps you can also find the actual place where the division error happens and then check there what the data looks like and/or what the file expects to receive. Just by looking at what you posted, I see no problems with this data.

Let us know what you find and if you have any further questions. We will be happy to help where possible.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 2 weeks ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,
Please find attached zip folder containing SQL format database dump file. And let me know the issue.
Attachments (1)
  1. 2 weeks ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
That CSV file import in database did not go well and gave errors. See attached screenshot. Please send SQL format of database dump. Here is the documentation from Google on step by step guide to get SQL file. Post the downloaded sql file.


Step-by-Step Guide
1. Log in to phpMyAdmin. You typically access this via your hosting provider's control panel (like cPanel or Plesk) or directly if you are using a local setup like XAMPP.
2. Select the source database from the left-hand menu. This ensures you are exporting the correct data.
3. Click the Export tab in the top navigation bar.
4. Choose an Export Method:
4.1 Quick: This is the easiest method and is suitable for most users. It immediately generates and downloads a .sql file with default options.

4.2 Custom: This method provides more control over the export, allowing you to select specific tables, choose compression (like gzipped), add DROP TABLE statements (useful when restoring to an existing database), and other advanced options.

5. Select SQL format for the dump file from the dropdown menu.
6. Click the Go button at the bottom of the page.

Your browser will prompt you to save the .sql file (or compressed file, if chosen) to your local computer. The file will be named after your database by default (e.g., databasename.sql). You can then use this file to restore or migrate your database later.
Attachments (1)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 2 weeks ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Please find database copy, let me what's going wrong
Attachments (1)
  1. 2 weeks ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,
I created custom fields same as in screenshots and import went fine with your import file. Now I am thinking this can be something related to the data you have in database. Can you please post database dump of your Joomla installation? I will give a try with that.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 2 weeks ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hello Tharuna,

error log of current import
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: single-video
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: pdf-file
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: images
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: pdf-document-file-upload
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: pdf-document
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: multiple-videos
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: multiple-images-gallery
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: access
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Setup field: image_intro
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Use the file for configuration
2026-02-20T12:10:36+00:00 INFO ::1 csvidebug Clean up old logs. Found 23 logs and threshold is 25 logs
2026-02-20T12:11:50+00:00 INFO ::1 controller Holding edit ID com_content.edit.article.566 Array ( [0] => 566 )
2026-02-20T12:11:50+00:00 INFO ::1 controller Checking edit ID com_content.edit.article.566: 1 Array ( [0] => 566 )
2026-02-20T12:11:52+00:00 CRITICAL ::1 error Uncaught Throwable of type DivisionByZeroError thrown with message "Division by zero". Stack trace: #0 [ROOT]\libraries\src\Layout\FileLayout.php(128): include()
#1 [ROOT]\libraries\src\Form\Field\SubformField.php(274): Joomla\CMS\Layout\FileLayout->render(Array)
#2 [ROOT]\libraries\src\Form\FormField.php(1070): Joomla\CMS\Form\Field\SubformField->getInput()
#3 [ROOT]\layouts\joomla\edit\fieldset.php(43): Joomla\CMS\Form\FormField->renderField()
#4 [ROOT]\libraries\src\Layout\FileLayout.php(128): include('C:\\wamp64\\www\\d...')
#5 [ROOT]\libraries\src\Layout\LayoutHelper.php(76): Joomla\CMS\Layout\FileLayout->render(Object(Joomla\Component\Content\Administrator\View\Article\HtmlView))
#6 [ROOT]\layouts\joomla\edit\params.php(170): Joomla\CMS\Layout\LayoutHelper::render('joomla.edit.fie...', Object(Joomla\Component\Content\Administrator\View\Article\HtmlView))
#7 [ROOT]\libraries\src\Layout\FileLayout.php(128): include('C:\\wamp64\\www\\d...')
#8 [ROOT]\libraries\src\Layout\LayoutHelper.php(76): Joomla\CMS\Layout\FileLayout->render(Object(Joomla\Component\Content\Administrator\View\Article\HtmlView))
#9 [ROOT]\administrator\components\com_content\tmpl\article\edit.php(113): Joomla\CMS\Layout\LayoutHelper::render('joomla.edit.par...', Object(Joomla\Component\Content\Administrator\View\Article\HtmlView))
#10 [ROOT]\libraries\src\MVC\View\HtmlView.php(416): include('C:\\wamp64\\www\\d...')
#11 [ROOT]\libraries\src\MVC\View\HtmlView.php(204): Joomla\CMS\MVC\View\HtmlView->loadTemplate(NULL)
#12 [ROOT]\libraries\src\MVC\View\FormView.php(182): Joomla\CMS\MVC\View\HtmlView->display(NULL)
#13 [ROOT]\libraries\src\MVC\Controller\BaseController.php(697): Joomla\CMS\MVC\View\FormView->display()
#14 [ROOT]\administrator\components\com_content\src\Controller\DisplayController.php(70): Joomla\CMS\MVC\Controller\BaseController->display()
#15 [ROOT]\libraries\src\MVC\Controller\BaseController.php(730): Joomla\Component\Content\Administrator\Controller\DisplayController->display()
#16 [ROOT]\libraries\src\Dispatcher\ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#17 [ROOT]\libraries\src\Component\ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#18 [ROOT]\libraries\src\Application\AdministratorApplication.php(150): Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')
#19 [ROOT]\libraries\src\Application\AdministratorApplication.php(206): Joomla\CMS\Application\AdministratorApplication->dispatch()
#20 [ROOT]\libraries\src\Application\CMSApplication.php(320): Joomla\CMS\Application\AdministratorApplication->doExecute()
#21 [ROOT]\administrator\includes\app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#22 [ROOT]\administrator\index.php(32): require_once('C:\\wamp64\\www\\d...')
#23 {main}
2026-02-20T12:19:49+00:00 INFO ::1 controller Holding edit ID com_content.edit.article.566 Array ( [0] => 566 )
2026-02-20T12:19:49+00:00 INFO ::1 controller Checking edit ID com_content.edit.article.566: 1 Array ( [0] => 566 )
2026-02-20T12:19:51+00:00 CRITICAL ::1 error Uncaught Throwable of type DivisionByZeroError thrown with message "Division by zero". Stack trace: #0 [ROOT]\libraries\src\Layout\FileLayout.php(128): include()
#1 [ROOT]\libraries\src\Form\Field\SubformField.php(274): Joomla\CMS\Layout\FileLayout->render(Array)
#2 [ROOT]\libraries\src\Form\FormField.php(1070): Joomla\CMS\Form\Field\SubformField->getInput()
#3 [ROOT]\layouts\joomla\edit\fieldset.php(43): Joomla\CMS\Form\FormField->renderField()
#4 [ROOT]\libraries\src\Layout\FileLayout.php(128): include('C:\\wamp64\\www\\d...')
#5 [ROOT]\libraries\src\Layout\LayoutHelper.php(76): Joomla\CMS\Layout\FileLayout->render(Object(Joomla\Component\Content\Administrator\View\Article\HtmlView))
#6 [ROOT]\layouts\joomla\edit\params.php(170): Joomla\CMS\Layout\LayoutHelper::render('joomla.edit.fie...', Object(Joomla\Component\Content\Administrator\View\Article\HtmlView))
#7 [ROOT]\libraries\src\Layout\FileLayout.php(128): include('C:\\wamp64\\www\\d...')
#8 [ROOT]\libraries\src\Layout\LayoutHelper.php(76): Joomla\CMS\Layout\FileLayout->render(Object(Joomla\Component\Content\Administrator\View\Article\HtmlView))
#9 [ROOT]\administrator\components\com_content\tmpl\article\edit.php(113): Joomla\CMS\Layout\LayoutHelper::render('joomla.edit.par...', Object(Joomla\Component\Content\Administrator\View\Article\HtmlView))
#10 [ROOT]\libraries\src\MVC\View\HtmlView.php(416): include('C:\\wamp64\\www\\d...')
#11 [ROOT]\libraries\src\MVC\View\HtmlView.php(204): Joomla\CMS\MVC\View\HtmlView->loadTemplate(NULL)
#12 [ROOT]\libraries\src\MVC\View\FormView.php(182): Joomla\CMS\MVC\View\HtmlView->display(NULL)
#13 [ROOT]\libraries\src\MVC\Controller\BaseController.php(697): Joomla\CMS\MVC\View\FormView->display()
#14 [ROOT]\administrator\components\com_content\src\Controller\DisplayController.php(70): Joomla\CMS\MVC\Controller\BaseController->display()
#15 [ROOT]\libraries\src\MVC\Controller\BaseController.php(730): Joomla\Component\Content\Administrator\Controller\DisplayController->display()
#16 [ROOT]\libraries\src\Dispatcher\ComponentDispatcher.php(143): Joomla\CMS\MVC\Controller\BaseController->execute('display')
#17 [ROOT]\libraries\src\Component\ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#18 [ROOT]\libraries\src\Application\AdministratorApplication.php(150): Joomla\CMS\Component\ComponentHelper::renderComponent('com_content')
#19 [ROOT]\libraries\src\Application\AdministratorApplication.php(206): Joomla\CMS\Application\AdministratorApplication->dispatch()
#20 [ROOT]\libraries\src\Application\CMSApplication.php(320): Joomla\CMS\Application\AdministratorApplication->doExecute()
#21 [ROOT]\administrator\includes\app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#22 [ROOT]\administrator\index.php(32): require_once('C:\\wamp64\\www\\d...')
#23 {main}


Value for id 566 in filed value table is
566 {"items":[{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide7_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide7_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide10_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide10_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide11_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide11_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide12_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide12_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide13_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide13_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide14_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide14_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide17_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide17_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide18_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide18_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide19_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide19_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide23_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide23_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide24_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide24_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide25_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide25_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide26_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide26_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\Slide27_original_copy_1.JPG","thumbnail":"media\\acfgallery\\content\\165\\11\\Slide27_thumb_copy_1.JPG","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\united_original.jpg","thumbnail":"media\\acfgallery\\content\\165\\11\\united_thumb.jpg","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\quilt_original.jpg","thumbnail":"media\\acfgallery\\content\\165\\11\\quilt_thumb.jpg","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\s1_original.jpg","thumbnail":"media\\acfgallery\\content\\165\\11\\s1_thumb.jpg","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\s2_original.jpg","thumbnail":"media\\acfgallery\\content\\165\\11\\s2_thumb.jpg","caption":"","tags":[]},{"alt":"","source":"","image":"media\\acfgallery\\content\\165\\11\\s3_original.jpg","thumbnail":"media\\acfgallery\\content\\165\\11\\s3_thumb.jpg","caption":"","tags":[]}]}

Upon reviewing the JSON for Article ID 566, we noticed that all image paths use backslashes (media\acfgallery\...).
Could this cause ACF Gallery to treat the images as invalid and result in an empty items array during rendering, leading to DivisionByZeroError in repeatable-table layout?
Do we have to import media files first before article import?

Please tell me what going wrong in this article.

Thank you.
  1. 2 weeks ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello Tharuna,

While reviewing the import file, I noticed that some custom field columns — including the ACF Gallery/Subform field — contain empty values for certain articles.

I would like to confirm:

Can empty values for Subform/Gallery custom fields cause a "Division by zero" error during import?

Specifically:

If the gallery field column exists in the CSV

But the value for some records is empty

Will CSVI still attempt to process it as a subform field?

Should we:
• Remove the gallery column entirely when no value exists?
• Use "" as an empty value?
• Or exclude those records from custom field import?

Additionally, could PHP 8.4 strict handling of undefined array keys be contributing to this issue?

Please advise on the recommended way to handle empty Subform/Gallery custom field values during import.

Thank you.
Attachments (1)
  1. 2 weeks ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
  1. 2 weeks ago
  2. RO CSVI
  3. # 8
Accepted Answer Pending Moderation
Hello,
I have set Number of lines in log file field to 100 and then i tried to import csv but still getting zero division error and this time we got below warnings and RO CSVI stops import and return to template page. I am attaching CVS and log file

Are you importing subform values? Those warnings are coming from subform field. Since your Joomla installation is in WAMP server I don't see a way to login and check your custom fields setup. So can you please post screenshots on how you have all of your custom fields setup? The ones you are importing. Let me set them all up on my test site and check if I can reproduce Division by zero error.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 2 weeks ago
  2. RO CSVI
  3. # 9
Accepted Answer Pending Moderation
I have set Number of lines in log file field to 100 and then i tried to import csv but still getting zero division error and this time we got below warnings and RO CSVI stops import and return to template page. I am attaching CVS and log file

An error has occurred during the import. Below the information received from the server.

Status error: 200
Status message: OK

Warning: Undefined array key "customfield" in C:\wamp64\www\demo-pps\plugins\csviext\joomlacustomfields\PlgCsviextJoomlacustomfields.php on line 162

Warning: Undefined array key "customfield" in C:\wamp64\www\demo-pps\plugins\csviext\joomlacustomfields\PlgCsviextJoomlacustomfields.php on line 162

Warning: Undefined array key "customfield" in C:\wamp64\www\demo-pps\plugins\csviext\joomlacustomfields\PlgCsviextJoomlacustomfields.php on line 162
{"process":false,"url":"administrator\/index.php?option=com_csvi&view=logdetails&run_id=15&return=aHR0cDovL2xvY2FsaG9zdC9kZW1vLXBwcy9hZG1pbmlzdHJhdG9yL2luZGV4LnBocD9vcHRpb249Y29tX2Nzdmkmdmlldz10ZW1wbGF0ZXM="}
Attachments (2)
  1. 2 weeks ago
  2. RO CSVI
  3. # 10
Accepted Answer Pending Moderation
Hello Mangesh Mane,
I setup ACF gallery field as in your screenshot and see import stores JSON value without any problem. I don't see division by zero error. One issue I have is that missing image and that is because I don't have images saved at the given location. See attached screenshot. I did import of articles having value for multiple-images-gallery field. By default debug log has details of first 20 records. Since you are importing 95 records we will increase the log records to 95 so we get details of all records in debug log. That way we can see which article is breaking the import. To do that go to RO CSVI Config page go to Site tab and change Number of lines in log file field to 100 and save the config. Run import and send me latest import file to check.

If I disable the subform/gallery custom field plugin, the article import completes successfully, but custom field data is not saved.

I guess you are talking about Fields - ACF Gallery plugin.
Attachments (1)
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 3 weeks ago
  2. RO CSVI
  3. # 11
Accepted Answer Pending Moderation
Hello,
I got your screenshots of the field setup. I will look into it and get back with my findings.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 3 weeks ago
  2. RO CSVI
  3. # 12
Accepted Answer Pending Moderation
Hello Mangesh Mane,
I have attached a screenshot showing the exact field configuration.

Screenshot is missing in your reply. Can you please post it? I will setup field in my test site and run import with your import file and check.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 3 weeks ago
  2. RO CSVI
  3. # 13
Accepted Answer Pending Moderation
Please find screenshot of multiple-images-gallery field setup page
Attachments (5)
  1. 3 weeks ago
  2. RO CSVI
  3. # 14
Accepted Answer Pending Moderation
Hello Tharuna,

Thank you for your response.

As requested, I am sharing the gallery field setup details along with the import file and debug log.

Environment

Joomla: 6.0.2

PHP: 8.4

Server: WAMP (Windows)

RO CSVI: Latest version installed

Gallery Custom Field Setup

The field is created under:

Content → Articles → Fields

Field Name: multiple-images-gallery

Field Type: Gallery/Subform (TF Gallery Manager / ACF Gallery field)

Assigned to: Articles

Field Group: School Calendar

I have attached a screenshot showing the exact field configuration.

Import File

I am importing custom field values separately after importing articles.

The CSV contains:

alias (criteria)

category_path (criteria)

multiple-images-gallery (gallery JSON data)

Example value:

{"items":{"1":{"alt":"","source":"","image":"media\\tfgallerymanager\\tmp\\22nd_Eduleaders_Summit_original.jpeg","thumbnail":"media\\tfgallerymanager\\tmp\\22nd_Eduleaders_Summit_thumb.jpeg","caption":"","tags":""}}}


The full import file is attached.

Issue

When importing the gallery JSON field values with the gallery/subform plugin enabled, the import fails with:

Division by zero error

If I disable the subform/gallery custom field plugin, the article import completes successfully, but custom field data is not saved.

This suggests the error occurs during processing of the gallery/subform field JSON data.

Attachments

Gallery custom field setup screenshot

Import CSV file

RO CSVI debug log (as per documentation)

Please let me know if the JSON format needs any adjustment or if additional configuration is required for TF Gallery Manager / ACF gallery fields.

Thank you for your support.

Kind regards,
Mangesh Mane
Attachments (2)
  1. 3 weeks ago
  2. RO CSVI
  3. # 15
Accepted Answer Pending Moderation
Hello,
Is RO CSVI supposed to support importing gallery/subform custom fields (ACF/TF Gallery Manager)?

If you are import JSON format of Gallery field as a individual column in import file then it should import in RO CSVI.

Disabling the subform/gallery custom field plugin allows article import to complete, but then custom field data is missing.

Can you share a screenshot on how you have gallery field set up? Also post import file and import debug log to check. To get the debug log see How to collect debug information? document.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 3 weeks ago
  2. RO CSVI
  3. # 16
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!