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: Had custom datatype on previous version of Datagrab, moved folder to updated plugin files, getting errors
Status | Resolved |
Add-on / Version | DataGrab 4.0.2 |
Severity | |
EE Version | 6.3.2 |
MLohrman
Apr 26, 2022Good morning! I was using Datagrab 3.0.3 and just updated to EE6 and Datagrab 4.0.2. We were using a custom datatype in a folder called “kwantek_json”. I moved this folder to the new datatypes folder in the “datagrab” addon folder at datagrab/datatypes. I’m getting errors in the CP when I click into the Datagrab settings. Also when clicking into a “Configure Import” on a saved import. Any ideas? Maybe the datatype file needs to be updated? Thanks!
BoldMinded (Brian)
Apr 26, 2022
It needs to extend AbstractDataType
Check the other datatypes and compare to what you have, you might have to make a couple of updates.
MLohrman
May 02, 2022
After getting an updated datatype, I kept getting same errors. I went into the DB and found the info for the saved import and updated the “kwantek_json” name there, but got new errors. I ended up deleting that saved import and setting it up again. Seems to be working now after a quick test.
BoldMinded (Brian)
May 02, 2022
Good to hear! If you have other troubles let me know.
MLohrman
Feb 28, 2023
Brian, nearly a year later and we are finally trying to get this site launched, so I’ve been updating plugins. I updated Datagrab from 4.0.2 to 4.2.2. When trying to click into it in the CP, I’m getting an error. This was working before the update. Any ideas? Thanks!
Fatal error: Declaration of Datagrab_kwantek_json::fetch_columns() must be compatible with AbstractDataType::fetch_columns(): array in /home/forge/4m.5byfivecreative.com/public_html/ohsoclean/user/addons/datagrab/datatypes/kwantek_json/dt.datagrab_kwantek_json.php on line 113
BoldMinded (Brian)
Feb 28, 2023
It sounds like you’ll need to update that json type file so the method signatures are the same.
Also, this might be relevant. https://docs.boldminded.com/datagrab/docs/import-types/creating-your-own-import-type
You don’t need to put the custom dt file inside of the main datagrab folder, so every time you update DG you don’t have to replace it.
MLohrman
Mar 01, 2023
Brian thanks for letting me know about putting the folder outside of the plugin folder!
I think the datatype I have is in the correct format, it was working before the recent plugin update. I attached a screenshot of some of the code. Was something changed within the last year? Thanks!
BoldMinded (Brian)
Mar 01, 2023
I can’t assist with custom import types. If you’re getting PHP errors from somewhere other than a native DataGrab file then you’ll need to compare it to one of the native import types and figure out what is missing or wrong.