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
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. 1 day ago
  2. RO CSVI
  3. # 1
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. 1 day ago
  2. RO CSVI
  3. # 2
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. 1 day ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Please find screenshot of multiple-images-gallery field setup page
Attachments (5)
  1. 1 day ago
  2. RO CSVI
  3. # 4
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. 1 day ago
  2. RO CSVI
  3. # 5
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. 2 days ago
  2. RO CSVI
  3. # 6
  • Page :
  • 1


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