All add-ons currently require PHP 7.4 or greater.

On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.

Please read about the changes to BoldMinded add-on licensing.

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