Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: “3 arguments are required, 2 given” Error when accessing Add-on

Status Resolved
Add-on / Version DataGrab 5.0.5
Severity
EE Version 7.4.2

Doug Black

Mar 06, 2024

Not sure what happened or how. I cleared the queue on an import, and now cannot access the Datagrab panel. I am getting an error stating:

3 arguments are required, 2 given

Full stack:

3 arguments are required, 2 given
user/addons/datagrab/Model/ImportStatus.php:224

Stack Trace: Please include when reporting this error
#0 user/addons/datagrab/Model/ImportStatus.php(224): sprintf()
#1 user/addons/datagrab/mcp.datagrab.php(180): BoldMinded\DataGrab\Model\ImportStatus::getDisplayStatus()
#2 [internal function]: Datagrab_mcp->index()
#3 ee/ExpressionEngine/Controller/Addons/Addons.php(1590): call_user_func_array()
#4 ee/ExpressionEngine/Controller/Addons/Addons.php(866): ExpressionEngine\Controller\Addons\Addons->getModuleSettings()
#5 [internal function]: ExpressionEngine\Controller\Addons\Addons->settings()
#6 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array()
#7 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController()
#8 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run()
#9 public/admin.php(139): require_once('...')
#9 public/admin.php(139): require_once('...')

Screenshots / Videos / Template Code Attached

Environment Details: - Version: 5.0.5 - PHP Version 8.0.x - MySQL Version 8.x - OS: Ubuntu - Web Server: nginx

#1

BoldMinded (Brian)

Looks like you’re several versions behind on DataGrab. Try upgrading.

#2

Doug Black

Upgraded, still getting the same error.

#3

BoldMinded (Brian)

Oh. Instead of sending a whole new zip, you could make this update on line 224 of that file

return sprintf($template, 'locked', '');

Just add a blank string as the 3rd param.

#4

Doug Black

Perfecto! Thanks Brian!

Login to reply