Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was trying out the 3.x-dev branch (updated from 2.4).
Trying to edit an existing profile
Notice: Undefined property: stdClass::$admin_description in ctools_export_ui->edit_form() (regel 1066 van /sites/all/modules/contrib/ctools/plugins/export_ui/ctools_export_ui.class.php).
Recoverable fatal error: Argument 2 passed to _linkit_build_profile_type_form_fields() must be an instance of LinkitProfile, instance of stdClass given, called in /sites/all/modules/contrib/linkit/plugins/export_ui/linkit_profiles.inc on line 44 and defined in _linkit_build_profile_type_form_fields() (regel 100 van /sites/all/modules/contrib/linkit/plugins/export_ui/linkit_profiles.inc)
So I decided to make a new profile (fyi: targeted at fields with node/nid paths). When saving however I get this error and nothing is saved.
Notice: Undefined index: label in LinkitSearchPluginEntity->__construct() (regel 75 van /home/domain/domains/domain.com/public_html/sites/all/modules/contrib/linkit/plugins/linkit_search/entity.class.php).
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'admin_description' in 'field list': INSERT INTO {linkit_profiles} (name, admin_title, admin_description, profile_type, data) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => standaard [:db_insert_placeholder_1] => Standaard [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 2 [:db_insert_placeholder_4] => a:8:{s:14:"search_plugins";a:4:{s:20:"entity:taxonomy_term";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}s:28:"entity:field_collection_item";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}s:11:"entity:node";a:2:{s:7:"enabled";i:1;s:6:"weight";s:3:"-10";}s:11:"entity:user";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}}s:28:"entity:field_collection_item";a:1:{s:18:"result_description";s:0:"";}s:11:"entity:node";a:4:{s:18:"result_description";s:0:"";s:7:"bundles";a:11:{s:4:"page";i:0;s:12:"beheersgroep";i:0;s:11:"cnapi_actor";i:0;s:11:"cnapi_event";i:0;s:16:"cnapi_production";i:0;s:6:"dienst";i:0;s:6:"nieuws";i:0;s:12:"ipdc_product";i:0;s:14:"slideshow_item";i:0;s:9:"themepage";i:0;s:7:"webform";i:0;}s:15:"group_by_bundle";i:0;s:19:"include_unpublished";i:0;}s:20:"entity:taxonomy_term";a:3:{s:18:"result_description";s:0:"";s:7:"bundles";a:8:{s:4:"tags";i:0;s:20:"blokken_configuratie";i:0;s:17:"ipdc_product_type";i:0;s:14:"ipdc_doelgroep";i:0;s:34:"ipdc_geografisch_toepassingsgebied";i:0;s:10:"ipdc_thema";i:0;s:16:"ipdc_trefwoorden";i:0;s:4:"type";i:0;}s:15:"group_by_bundle";i:0;}s:11:"entity:user";a:1:{s:18:"result_description";s:0:"";}s:13:"insert_plugin";a:2:{s:6:"plugin";s:7:"raw_url";s:10:"url_method";s:1:"1";}s:17:"attribute_plugins";a:5:{s:9:"accesskey";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}s:5:"title";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}s:3:"rel";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}s:5:"class";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}s:2:"id";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}}s:12:"autocomplete";a:3:{s:9:"charLimit";s:1:"1";s:4:"wait";s:3:"350";s:13:"remoteTimeout";s:5:"10000";}} ) in drupal_write_record() (regel 7106 van /includes/common.inc).
Comments
Comment #1
Gyver06 CreditAttribution: Gyver06 commentedI am facing the same exact issue.
Notice: Undefined index: label in LinkitSearchPluginEntity->__construct() (line 75 of /home/XXXXXX/public_html/sites/all/modules/linkit/plugins/linkit_search/entity.class.php). Backtrace:
LinkitSearchPluginEntity->__construct(Array, Object) search_plugin.class.php:101
LinkitSearchPlugin::factory(Array, Object) linkit_profiles.inc:191
_linkit_build_search_plugin_form_fields(Array, Object) linkit_profiles.inc:47
linkit_profiles_form(Array, Array) ctools_export_ui.class.php:1073
ctools_export_ui->edit_form(Array, Array) ctools_export_ui.class.php:1371
ctools_export_ui_edit_item_form(Array, Array)
call_user_func_array('ctools_export_ui_edit_item_form', Array) form.inc:798
drupal_retrieve_form('ctools_export_ui_edit_item_form', Array) form.inc:339
drupal_build_form('ctools_export_ui_edit_item_form', Array) ctools_export_ui.class.php:780
ctools_export_ui->edit_execute_form_standard(Array) ctools_export_ui.class.php:770
ctools_export_ui->edit_execute_form(Array) ctools_export_ui.class.php:667
ctools_export_ui->add_page(, Array)
call_user_func_array(Array, Array) export-ui.inc:469
ctools_export_ui_switcher_page('linkit_profiles', 'add')
call_user_func_array('ctools_export_ui_switcher_page', Array) menu.inc:517
menu_execute_active_handler() index.php:24
Comment #2
anonThere are no upgrade hooks yet. You can't just upgrade and expect that everything just work, that why 3.x is still in dev.
Comment #3
rv0 CreditAttribution: rv0 commented@anon.. but that should not have prevented me from making a new profile, right?
Comment #4
anon@rv0: No that true.
Comment #5
anonStill having this issue? I cant reproduce it.
Comment #6
anonComment #7
knalstaaf CreditAttribution: knalstaaf commentedHad the same issue after upgrading from 7.x-2.6 to 7.x-3.x-dev.
... solved it.
Comment #8
Vacilando CreditAttribution: Vacilando commentedSame issue, after upgrading to 7.x-3.0.
Comment #9
loopy1492 CreditAttribution: loopy1492 commentedSame here. Happened after we upgraded to 7.x-3.0.
Comment #9.0
loopy1492 CreditAttribution: loopy1492 commentedremoved domain
Comment #10
granticusiv CreditAttribution: granticusiv commentedI'm getting:
Notice: Undefined index: label in LinkitSearchPluginEntity->__construct() (line 75 of /PHP_Sites/XXX/sites/all/modules/linkit/plugins/linkit_search/entity.class.php).
This for a clean install of Linkit 7.x-3.0, Drupal 7.23. I'm not sure if it's actually causing any issues, because I'm able to save profiles, and they're as I set them up when I go back to edit them later.
However! I have noticed a lot of odd things with Linkit 7.x-3.0, and I'm not sure if they're related to this error or not. One buggy thing I've noticed is this, where the lightbox/popup for the search function has a wrapping div with a height of 0px.
Another thing I noticed: Using a Linkit profile for textfields with the IMCE File Picker, I went to set the DEFAULT VALUE, but no 'Open file browser' button appears.
Comment #11
leanderl CreditAttribution: leanderl commentedI'm having the same issue with Drupal 7.25 and LinkIt 7.x-3.1 when creating a new profile.
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'admin_description' in 'field list': INSERT INTO {linkit_profiles} (name, admin_title, admin_description, profile_type, data) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => editor [:db_insert_placeholder_1] => Editor [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => a:10:{s:12:"text_formats";a:3:
and so on...Comment #12
leanderl CreditAttribution: leanderl commentedOk, the problem seems to be when you upgrade from an earlier version of LinkIt. The solution seems to be to uninstall LinkIt using admin/modules/uninstall (just unchecking the module in the module list is not enough) and then installing it again. This wipes the db clean of "old" linkit tables and then creates the necessary tables.
Comment #13
sylus CreditAttribution: sylus commentedHad this problem as well and recommendation by #12 did fix the issue. Can this issue then be reopened since a few people seem to be able to reproduce it now?