We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Unable to load requested field type

How Do I?

typohannes's avatar
typohannes
14 posts
7 years ago
typohannes's avatar typohannes

Hi,

So I’ve upgraded my EE site to V3.15.16 from the latest version of 2, the main site seems to be working fine though, but unfortunatley not with the lists of multisite, see the error below

“Error

Unable to load requested field type file: ft.pt_checkboxes.php. Confirm the fieldtype file is located in the /system/user/addons/ directory”

…and when I tried to replicate and create new field-type I got the error below

“Warning Declaration of Checkboxes_ft::_get_field_options($data) should be compatible with EE_Fieldtype::_get_field_options($data, $show_empty = ”)

user/addons/checkboxes/ft.pt_checkboxes.php, line 358 show details

Severity: E_WARNING

Fatal error: Cannot declare class Checkboxes_ft, because the name is already in use in /var/www/system/ee/EllisLab/Addons/checkboxes/ft.checkboxes.php on line 288”

Hoping to hear any suggestion or answer from another guy out there

Thanks

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

That looks like a third-party field type that you don’t have a v3 version installed for. Any add-ons that you aren’t carrying forward need to be refactored out of the site prior to upgrading, otherwise v3 will still be expecting them to exist. If there is a v3 compatible version, you’ll need to get it from the developer (I believe EE Harbor might have one for you) and install their updated version.

       
typohannes's avatar
typohannes
14 posts
7 years ago
typohannes's avatar typohannes

Hi Derek,

Thanks for the reply

Here are lists of fieldtypes from the previous version (V2) /system/expressionengine/fieldtypes/checkboxes /system/expressionengine/fieldtypes/date /system/expressionengine/fieldtypes/file /system/expressionengine/fieldtypes/grid /system/expressionengine/fieldtypes/hidden /system/expressionengine/fieldtypes/multi_select /system/expressionengine/fieldtypes/radio /system/expressionengine/fieldtypes/relationship /system/expressionengine/fieldtypes/select /system/expressionengine/fieldtypes/text /system/expressionengine/fieldtypes/textarea /system/expressionengine/fieldtypes/EE_Fieldtype.php

So I just simply copied the above old fieldtypes to the new EE like so

/system/user/addons/fieldtypes/checkboxes /system/user/addons/fieldtypes/date /system/user/addons/fieldtypes/file /system/user/addons/fieldtypes/grid /system/user/addons/fieldtypes/hidden /system/user/addons/fieldtypes/multi_select /system/user/addons/fieldtypes/radio /system/user/addons/fieldtypes/relationship /system/user/addons/fieldtypes/select /system/user/addons/fieldtypes/text /system/user/addons/fieldtypes/textarea /system/user/addons/fieldtypes/EE_Fieldtype.php

Even removing the item would still cause an error.

How do I install fieldtypes to the new V3 or links where I can downlaod those fieldtypes?, it’s pretty much buildtin fieldtypes no third party.

Thanks

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

You will not be able to copy over any add-ons directly from v2 into v3, and certainly not first-party. 😊

Have a look at the upgrade docs here, there are some instructions at the top with respect to add-ons. Looking your list and your previous error, you likely just need to get a v3 compatible version of the Checkboxes add-on from the developer. I should note that checkboxes are native fields now, so long-term that’s not an add-on that you would need.

       
typohannes's avatar
typohannes
14 posts
7 years ago
typohannes's avatar typohannes

I actually following that Docs and there’s no way that telling which is which, except this

” Important

Third-party add-ons from v2 will not work with ExpressionEngine 3….

and

Note We recommend putting ExpressionEngine 3 compatible third-party add-ons into the system/user/addons/ directory now.”

So back to my previous question: “How do I install fieldtypes in the new V3 or links where I can download those fieldtypes?, it’s pretty much builtin fieldtypes, no third party.”

I’ve been digging and killing my time where in the cybernet I can find a downloadable and good explanation to move fieldtypes from V2 to V3, there’s nowhere aside from just a leaving a note.

So are you suggesting that I have to revert my installation to V2 and remove fieldtypes and then try installing V3 again?

Thanks

       
Derek Jones's avatar
Derek Jones
7,561 posts
7 years ago
Derek Jones's avatar Derek Jones

> user/addons/checkboxes/ft.pt_checkboxes.php, line 358 show details

That is an add-on, that is not first party. We do not have a field type named pt_checkboxes.As I mentioned before, I believe that one is available from EEHarbor. You do not have to do anything move first party field types. They are covered under the system/ee folder (“our stuff”). You are only moving third-party add-ons to system/user (“your stuff”). Make sense?

       
typohannes's avatar
typohannes
14 posts
6 years ago
typohannes's avatar typohannes

Hi Derek,

Woah it’s been a month now, I’m busy on something so let’s get back to this and thanks for pointing things out.

Now that there are a builtin Add-ons that is under /system/ee, is there a way to remove the previous add-ons from loading like, remove from DB or something?

I already tried removing it from the exp_fieldtypes table and still no luck, surely moving or copying /system/ee to user/addons is not an option here.

Thanks

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

Closer to eight months! 😛

You would need to remove references in the database to the third party add-ons as well as remove their files from system/user/addons. That includes entry data that might reference that field type. That requires manual database manipulation since you didn’t uninstall those add-ons prior to upgrading. But as I mentioned, if you acquire the v3 compatible version of the Checkboxes add-on and install it, I think that would take care of your errors.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.