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.

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, be sure to visit to add the license to your account here on

Ticket: XML: can’t import/recognize basic file

Status Resolved
Add-on / Version DataGrab 4.2.2
EE Version 6.4.5

Paul Larson

Mar 08, 2023

I’m well versed enough with DataGrab where I shouldn’t be having this issue.

a) upload songs.xml. Make sure it’s 755. Verify path, which is:

b) Removing content escaping as obstacle, using format (verbatim) from Boldminded docs:

        <title>Dummy 1</title>
        <date>1973-12-11 13:00:00</date>
        <summary>Adds a related field</summary>
        <title>Dummy 2</title>
        <date>1973-11-04 23:59:00</date>
        <summary>Adds another related field</summary>

c) Step one of Import creation.

d) Step two

e) Can’t get past the initial “recognize file” step.


What on earth am I overlooking?




Paul Larson

Also, I can browse to the file manually.


Paul Larson

Also made sure php-xml is installed


BoldMinded (Brian)

If you’re getting that error it’s b/c it can’t open the file. the CURL request is failing for some reason. Is there a redirect happening or something else that could block access to the file? This likely isn’t an issue with DataGrab itself… when this error happens its almost always a configuration error or something blocking access to the file.


Paul Larson

Yeah - switched the Nginx, turned off Apache…and it works.


Close this please =)


BoldMinded (Brian)

In the datatypes/dt.datagrab_xml.php file is the following function around line 248…. try adding the if (!$data) conditional to it and see if it adds any helpful error message in the log file.

private function _curl_fetch($url)
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);

        $data = curl_exec($ch);


        if (!$data) {
            $this->addError('cURL Error: ' . curl_error($ch));

        return $data;

BoldMinded (Brian)

Paul, did you figure out what the issue is? Did you try that error logging from the previous comment?


Paul Larson

I solved it by simply switching to Nginx from Apache. Must be different compiled PHP modules between the two. I don’t quite understand the “why,” but it works. Thanks!

Login to reply