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: Entries fail to import because of missing IP Address

Status Resolved
Add-on / Version DataGrab 4.2.2
Severity
EE Version 7.2.16

Doug Black

May 22, 2023

Set up multiple imports, but all would fail according to the debugging because of a missing IP Address.

In `/modes/datagrab_model.php` @ line 810, I added:

$data['ip_address'] = "127.0.0.1";

Similar to what was in the comment import, and it worked.

Is there another way that IP address needs to be brought in?

#1

BoldMinded (Brian)

Shouldn’t EE be setting a default IP? This is the first time I’ve seen an error report like this, so I’m wondering what is unique to your environment or import process to fail when it works for everyone else. What was the actual message in the log file?

#2

Doug Black

As far as I know it should be setting it by default.

The actual message (paraphrasing as I fixed it temporarily) “ip_address DOES NOT HAVE A DEFAULT VALUE”. Happened during the entry creation part.dring the

#3

BoldMinded (Brian)

Can you try this instead?

if (!array_key_exists('ip_address', $data)) {
            $data['ip_address'] = '127.0.0.1';
        }
#4

Doug Black

That definitely worked for me with no issue!

#5

BoldMinded (Brian)

Great, I’ll include this in the v5 release. Thanks for pointing it out.

Login to reply