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: “Depracted” issues

Status Resolved
Add-on / Version DataGrab 4.0.5
Severity
EE Version 7.1.2

Daniel Szczukiewicz

Sep 01, 2022

Hi,

I have a few issues while using DataGrab.

1) When enter to “Save Import” I always get:

Deprecated
Automatic conversion of false to array is deprecated
user/addons/datagrab/mcp.datagrab.php, line 1085

Severity: E_DEPRECATED

2. When I press “Start import”, in console and in “Status” field I can see:

<h1>Deprecated</h1><h2>preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated</h2><p>ee/ExpressionEngine/Service/Formatter/Formats/Text.php, line 51</p><ul>
		<li><b>Severity</b>: E_DEPRECATED</li>

3. When I enter into “Configure import” I can see:

Deprecated
strlen(): Passing null to parameter #1 ($string) of type string is deprecated
user/addons/datagrab/datatypes/json/dt.datagrab_json.php, line 126

Severity: E_DEPRECATED

4. When I copied an import URL and run it outside CP I got:

Deprecated
preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated
ee/ExpressionEngine/Service/Formatter/Formats/Text.php, line 51

Severity: E_DEPRECATED
Deprecated
preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated
ee/ExpressionEngine/Service/Formatter/Formats/Text.php, line 51

Severity: E_DEPRECATED
COMPLETED
Import has finished.

So it looks like some data I’m trying to get are not correct but there is no info which one.

 

 

#1

BoldMinded (Brian)

What version of PHP?

#2

Daniel Szczukiewicz

PHP 8.1.9

#3

Daniel Szczukiewicz

Well.. Changed to 7.4.19 and everything works fine.

#4

BoldMinded (Brian)

yeah that figures. This is probably an easy fix for 8.1, I just need to find the time to do it. Maybe in the next couple of days.

#5

BoldMinded (Brian)

Those errors coming from the file ee/ExpressionEngine/Service/Formatter/Formats/Text.php aren’t something I can fix. Those are core EE files, you’ll have to submit a bug with them. https://github.com/ExpressionEngine/ExpressionEngine/issues/new/choose

#6

BoldMinded (Brian)

I’m unable to replicate this one

Automatic conversion of false to array is deprecated user/addons/datagrab/mcp.datagrab.php, line 1085

What is on line 1085 of your mcp file??

#7

Daniel Szczukiewicz

Line 1085:

$this->settings[‘import’][‘id’] = ee()->input->get_post(‘id’);

#8

BoldMinded (Brian)

Regarding the EE issue, looks like it’s already fixed for their next release.

https://github.com/ExpressionEngine/ExpressionEngine/issues/2348 https://github.com/ExpressionEngine/ExpressionEngine/pull/2359/commits/4b20e13e843d1412fcd13dea3f390f442892b79f

#9

BoldMinded (Brian)

Comment has been marked private.

#10

BoldMinded (Brian)

Daniel I’m pretty certain the build I provided, plus making the change in EE’s core will resolve this issue, so I’m going to close the ticket. If you experience further problems feel free to re-open the ticket. Thanks.

#11

Daniel Szczukiewicz

Brian, unfortunately I found something else. Still using PHP 7.4.19.

When I import small data (10-20 entries) then everything works fine. But with 300-350 entries I got following error in “Status” column and no entries are created at all. This is regarding different channel so maybe I’m doing something wrong…? Unfortunately there is no message what field get wrong data etc.

<h1>Notice</h1>
 <h2>Undefined index: response</h2>
 user/addons/datagrab/datatypes/json/dt.datagrab_json.php, line 87
#12

Daniel Szczukiewicz

UPDATE: I was trying to import string into number field… That was a case. However, now I do not get any issue but entries are not created at all. And don’t know why…

#13

Daniel Szczukiewicz

UPDATE2: Finally I imported all data - I think there was an issue with datatype of some fields.

Login to reply