List Items – GetCell returning an error if using row greater than 1
-
Hello,
If I use a List Entry Item form field in the formulas, I can call the GetCell function, and it returns the elements as expected if it is formatted with a 0 as the first parameter. For whatever reason, if I use a 1 or a 2 as the first parameter to get the second or third-row data, I get the error in Moodle shown below.
2024/01/09 14:42:00 [error] 3075319#3075319: *2026242 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/docflow/html/wp-content/plugins/PDFImporterForGravity/core/Integration/Processors/Entry/EntryItems/ListEntryItem/ListEntryItem.php:95 Stack trace: #0 /var/www/docflow/html/wp-content/plugins/PDFImporterForGravity/core/Integration/Processors/Entry/EntryItems/ListEntryItem/ListEntryItem.php(95): count() #1 /var/www/docflow/html/wp-content/plugins/PDFImporterForGravity/pr/core/Parser/Elements/Scalars/ParseField.php(57): rnpdfimporter\core\Integration\Processors\Entry\EntryItems\ListEntryItem\ListEntryItem->GetCell() #2 /var/www/docflow/html/wp-content/plugins/PDFImporterForGravity/pr/core/Parser/Elements/ParseMain.php(38): rnpdfimporter\pr\core\Parser\Elements\Scalars\ParseField->Parse() #3 /var/www/docflow/html/wp-content/plugins/PDFImporterForGravity/pr/core/Parser/Elements/ParseMain.php(74): rnpdfimporter\pr\core\Parser\Elements\ParseMain->InternalParse() #4 /var" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: docflow.wftigers.org, request: "GET /wp-admin/admin-ajax.php?_nonce=b569aa6f4a&action=rnpdfimportergravity_create_pdf&data={%22entryid%22:[%2216755%22],%22templateid%22:%2213%22} HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.1-fpm.sock:", host: "docflow.wftigers.org", referrer: "https://docflow.wftigers.org/wp-admin/admin.php?page=rnpdfimportergravity_entries"
- The topic ‘List Items – GetCell returning an error if using row greater than 1’ is closed to new replies.