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, 2022Hi,
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.
BoldMinded (Brian)
What version of PHP?
Daniel Szczukiewicz
PHP 8.1.9
Daniel Szczukiewicz
Well.. Changed to 7.4.19 and everything works fine.
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.
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
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??
Daniel Szczukiewicz
Line 1085:
$this->settings[‘import’][‘id’] = ee()->input->get_post(‘id’);
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
BoldMinded (Brian)
Comment has been marked private.
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.
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.
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…
Daniel Szczukiewicz
UPDATE2: Finally I imported all data - I think there was an issue with datatype of some fields.