1. Anonymous User
  2. RO CSVI
  3. Wednesday, 12 April 2023
  4.  Subscribe via email
Hi,

I am running an article import from a CSV file. The articles have custom fields and one of them is a text field that has part numbers separated by a Pipe symbol.

If I run the import with B23 | B23A | B23C the article editor is broken in the backend. If I rerun the import with B23, B23A, B23C the article editor works as expected.

From what I can see, on the frontend the pipe is replaced with a comma at the position of the Pipe.

In the article editor I get the following message (using TinyMce or JCE Editor)

An error has occurred.
0 htmlspecialchars(): Argument #1 ($string) must be of type string, array given

Have you come across this before and have a possible solution? I have tried changing the field's filter setting but that doesn't have any effect.

Thank you in advance
Accepted Answer
Accepted Answer Pending Moderation
Hello,
If I run the import with B23 | B23A | B23C the article editor is broken in the backend. If I rerun the import with B23, B23A, B23C the article editor works as expected.

The character | is used as separator for multiple values in RO CSVI and so on import B23 | B23A | B23C are imported as individual values and that breaks the system.

In the article editor I get the following message (using TinyMce or JCE Editor)

An error has occurred.
0 htmlspecialchars(): Argument #1 ($string) must be of type string, array given

Yes this is because of multiple values imported for text field.

Have you come across this before and have a possible solution? I have tried changing the field's filter setting but that doesn't have any effect.

Filter will not work. One possible solution is to replace | with some other character using RO CSVI multi replace rule using Find and Replace operation.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # Permalink
Sorry, the discussion is currently locked. You will not be able to post a reply or a comment at the moment.