1. roderic
  2. RO CSVI
  3. Tuesday, 13 August 2024
  4.  Subscribe via email
After installing the update, I get the following error on running the template:


[INFO] Template Vendit -> VM: Product Import basic + stockable


In PlgCsviextCustomfieldsforall.php line 897:

[TypeError]
PlgCsviextCustomfieldsforall::getChildIds(): Argument #1 ($mainCustomId) must be of type int, null given,
called in x/httpdocs/plugins/csviext/customfieldsforall/PlgCsviextCustomfieldsforall.php on line 872


Exception trace:
at x/httpdocs/plugins/csviext/customfieldsforall/PlgCsviextCustomfieldsforall.php:897
PlgCsviextCustomfieldsforall->getChildIds() at x/httpdocs/plugins/csviext/customfieldsforall/PlgCsviextCustomfieldsforall.php:872
PlgCsviextCustomfieldsforall->clearDisablerOverrideValues() at x/httpdocs/administrator/components/com_csvi/rantai/plugin/dispatcher.php:69
RantaiPluginDispatcher->trigger() at x/httpdocs/plugins/csviaddon/virtuemart/com_virtuemart/model/import/product.php:2489
virtuemart\com_virtuemart\model\import\Product->processCustomFields() at x/httpdocs/plugins/csviaddon/virtuemart/com_virtuemart/model/import/product.php:752
virtuemart\com_virtuemart\model\import\Product->getProcessRecord() at x/httpdocs/administrator/components/com_csvi/rantai/import/model.php:680
RantaiImportModel->runImport() at x/httpdocs/plugins/console/rocsvi/src/Console/ImportCommand.php:405
Joomla\Plugin\Console\Rocsvi\Console\ImportCommand->runImport() at x/httpdocs/plugins/console/rocsvi/src/Console/ImportCommand.php:298
Joomla\Plugin\Console\Rocsvi\Console\ImportCommand->doExecute() at x/httpdocs/libraries/vendor/joomla/console/src/Command/AbstractCommand.php:234
Joomla\Console\Command\AbstractCommand->execute() at x/httpdocs/libraries/vendor/joomla/console/src/Application.php:1083
Joomla\Console\Application->runCommand() at x/httpdocs/libraries/vendor/joomla/console/src/Application.php:374
Joomla\Console\Application->doExecute() at x/httpdocs/libraries/src/Application/ConsoleApplication.php:201
Joomla\CMS\Application\ConsoleApplication->doExecute() at x/httpdocs/libraries/vendor/joomla/console/src/Application.php:413
Joomla\Console\Application->execute() at x/httpdocs/libraries/src/Application/ConsoleApplication.php:255
Joomla\CMS\Application\ConsoleApplication->execute() at x/httpdocs/cli/joomla.php:77


If I downgrade to the previous version of the CSVI breakdesigns plug-in, leaving the main component and other plug-ins to the latest version, it works again.
Accepted Answer
Accepted Answer Pending Moderation
Hello Roderic,
Please load the attached patch file and try the import. See if patch file fixes the error.
Attachments (1)
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
Accepted Answer Pending Moderation
Hi Tharuna,

Error seems to be gone. Any chance you already updated the extension under downloads with this patch? As it also seems to work on the live site, even though I didn't patch it yet.
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello Roderic,
No I did not fix anything yet on the package. Value returned by a method in RO CSVI file is causing this error. I guess data in your test and live site are not the same. Test site returned NULL value and live site returned actual value. That should be the reason for error in test site and not in live site.
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. # 2
  • Page :
  • 1


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