1. cpaschen
  2. RO CSVI
  3. Saturday, 06 December 2025
  4.  Subscribe via email
I have a rather complex set of csv data to import into content items with custom fields (using Tasos Custom Fields extension).

When I try to import the data, it starts importing and then after a few seconds I get:

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

Status error: 200
Status message: parsererror

Warning: Undefined array key 1 in /var/www/vhosts/.../plugins/csviext/joomlacustomfields/PlgCsviextJoomlacustomfields.php on line 220

The entries do get imported in to Joomla. They appear properly in the articles list. They appear to properly import the fields: title, alias, Date created, and category for all of the pieces.
Some of the pieces import properly but others do not.
However, when I try to open some of the imported articles (on the admin side) I get::

An error has occurred.
htmlspecialchars(): Arguent #1 ($string) must be of type string, array given
(see the callstack details in the attached file)



If I just try to import a few of the fields I don't get this (the import works properly - even when using a few custom fields); however, trying to remove field by field and re-testing is way too long to try to figure this out.

I'm attaching
- the template XML file
- the csv import file
- the latest log file
- callstack.txt file (when trying to view an article that had issues)

We're running:
RO CSVI: 9.2.0
Joomla: 5.4.0
PHP: 8.2.29
DB: MariaDB/11.1.6

I've been unable to find any good documentation or other support requests that match this error or provide any explanation why/where the undefined array key might be.

Please help me understand why this error is happening and how to avoid it so that we can get the hundreds of records migrated into Joomla articles, which is why we purchased RO CSVI.
Attachments (4)
Accepted Answer Pending Moderation
Hi,

So I checked the line that you see in the first error on import and this has something to do with the import of an advanced custom field. This can be one of these four:
  • URL
  • Soundcloud
  • Paypal
  • OSM
RO CSVI expects a name and a value of the option but the content is in the wrong format. The field expects the data to be formatted as name#value. However in your import file I see no field that even resembles this kind of data.

RO CSVI gets a field name and looks up the type of the field and then processes it based on that type. It could even be that you have multiple fields with the same name and the wrong one is found.

Do you have any custom field that is an ACF field of the type above and has a name as used in the import?

Let us know what you find.
Kind regards,

RolandD

=========================
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
  • Page :
  • 1


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