[Too few arguments to function modX::parseChunk()
Step to reproduce
Fatal error: Uncaught ArgumentCountError: Too few arguments to function modX::parseChunk(), 1 passed in /var/www/vhosts/lucernehealth.com/httpdocs/core/cache/includes/elements/modsnippet/10.include.cache.php on line 111 and at least 2 expected in /var/www/vhosts/lucernehealth.com/httpdocs/core/model/modx/modx.class.php:1900 Stack trace: #0
Any idea what that is and how to fix it?
There is a syntax error in your snippet with the ID = 10.
On line 111 there is a call to
$modx->parseChunk() but the second parameter is missing. The second parameter should be “an array of properties to replace in the chunk”.
Is this a custom snippet or a snippet from a MODX extra?
Thanks for the Hint, I just found it.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.