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: Custom Date field causing import to fail

Status Resolved
Add-on / Version DataGrab 4.0.2
Severity
EE Version 6.3.3

Scott Harrington

May 06, 2022

Datagrab import seems to fail at ‘Call to private method Datagrab_model::_parse_date() from scope Datagrab_date’

I’ve tried various formats form a timestamp, to format=”%Y-%m-%d %G:%i:%s”

Interestingly, works fine for entry_date.

I’ve tested the parse_date function seperately and this is working fine.

Example feed: https://www.sportresolutions.com/export/news

Its the

field that causes the issue (currently a timestamp)

Log below:

——

16:17:14 05/06/2022 Import #3 Started
16:17:15 05/06/2022 Import #3 Initialized
16:17:15 05/06/2022 Begin Importing [Glentoran FC v Irish FA]
16:17:15 05/06/2022 Call to private method Datagrab_model::_parse_date() from scope Datagrab_date
16:17:15 05/06/2022 #0 /home/sportresbuiltbyr/metsys/user/addons/datagrab/models/datagrab_model.php(489): Datagrab_date->prepare_post_data()
#1 /home/sportresbuiltbyr/metsys/user/addons/datagrab/mod.datagrab.php(147): Datagrab_model->do_import()
#2 /home/sportresbuiltbyr/metsys/ee/legacy/libraries/Actions.php(175): Datagrab->run_action()
#3 /home/sportresbuiltbyr/metsys/ee/legacy/libraries/Core.php(605): EE_Actions->__construct()
#4 /home/sportresbuiltbyr/metsys/ee/legacy/controllers/ee.php(51): EE_Core->generate_action()
#5 [internal function]: EE->index()
#6 /home/sportresbuiltbyr/metsys/ee/ExpressionEngine/Core/Core.php(266): call_user_func_array()
#7 /home/sportresbuiltbyr/metsys/ee/ExpressionEngine/Core/Core.php(122): ExpressionEngine\Core\Core->runController()
#8 /home/sportresbuiltbyr/metsys/ee/ExpressionEngine/Boot/boot.php(161): ExpressionEngine\Core\Core->run()
#9 /home/sportresbuiltbyr/public_html/index.php(164): require_once(’/home/sportresb…’)
#10 {main}
——

Other useful info: PHP 8.0

#1

Scott Harrington

Are you able to update on this please? Its a show stopper for us and the client is chasing. Sorry to bump.

#2

BoldMinded (Brian)

Yes I’ll get you a link to a new build today.

#3

Scott Harrington

Thanks so much 😊

#4

BoldMinded (Brian)

You can download 4.0.3 from your account which should fix the issue.

Login to reply