Publisher is EE6 compatible, but it does not support the Fluid field. 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)

Sep 01, 2022

What version of PHP?

#2

Daniel Szczukiewicz

Sep 01, 2022

PHP 8.1.9

#3

Daniel Szczukiewicz

Sep 01, 2022

Well.. Changed to 7.4.19 and everything works fine.

#4

BoldMinded (Brian)

Sep 01, 2022

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)

Sep 01, 2022

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)

Sep 01, 2022

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

Sep 02, 2022

Line 1085:

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

#9

BoldMinded (Brian)

Sep 02, 2022

Comment has been marked private.

#10

BoldMinded (Brian)

Sep 02, 2022

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

Sep 05, 2022

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

Sep 05, 2022

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

Sep 05, 2022

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

Login to reply