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

Gyver06’s picture

I 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

anon’s picture

Status: Active » Closed (works as designed)

There are no upgrade hooks yet. You can't just upgrade and expect that everything just work, that why 3.x is still in dev.

rv0’s picture

@anon.. but that should not have prevented me from making a new profile, right?

anon’s picture

Status: Closed (works as designed) » Active

@rv0: No that true.

anon’s picture

Status: Active » Postponed (maintainer needs more info)

Still having this issue? I cant reproduce it.

anon’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)
knalstaaf’s picture

Had the same issue after upgrading from 7.x-2.6 to 7.x-3.x-dev.

  1. Disabling the module
  2. de-installing
  3. running update.php (for what it's worth)
  4. and clearing the cache

... solved it.

Vacilando’s picture

Same issue, after upgrading to 7.x-3.0.

loopy1492’s picture

Version: 7.x-3.x-dev » 7.x-3.0

Same here. Happened after we upgraded to 7.x-3.0.

TYPE	php
DATE	Wednesday, October 9, 2013 - 11:51am
USER	fasoldav
LOCATION	http://www.oursiteblahblahblah.ny.gov/admin/config/content/linkit/add
REFERRER	http://www.oursiteblahblahblah.ny.gov/admin/config/content/linkit/add
MESSAGE	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] => wysiwyg [:db_insert_placeholder_1] => WYSIWYG [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => a:10:{s:12:"text_formats";a:4:{s:9:"full_html";s:9:"full_html";s:4:"code";i:0;s:13:"filtered_html";i:0;s:10:"plain_text";i:0;}s:14:"search_plugins";a:5:{s:20:"entity:taxonomy_term";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:14:"entity:comment";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}s:11:"entity:file";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}s:11:"entity:user";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}}s:14:"entity:comment";a:3:{s:18:"result_description";s:0:"";s:7:"bundles";a:10:{s:27:"comment_node_administration";i:0;s:20:"comment_node_article";i:0;s:17:"comment_node_page";i:0;s:24:"comment_node_coordinator";i:0;s:21:"comment_node_document";i:0;s:22:"comment_node_home_page";i:0;s:31:"comment_node_information_signup";i:0;s:25:"comment_node_landing_page";i:0;s:29:"comment_node_slideshow_images";i:0;s:20:"comment_node_webform";i:0;}s:15:"group_by_bundle";i:0;}s:11:"entity:node";a:4:{s:18:"result_description";s:0:"";s:7:"bundles";a:10:{s:7:"article";s:7:"article";s:4:"page";s:4:"page";s:8:"document";s:8:"document";s:12:"landing_page";s:12:"landing_page";s:7:"webform";s:7:"webform";s:14:"administration";i:0;s:11:"coordinator";i:0;s:9:"home_page";i:0;s:18:"information_signup";i:0;s:16:"slideshow_images";i:0;}s:15:"group_by_bundle";i:0;s:19:"include_unpublished";i:0;}s:11:"entity:file";a:6:{s:18:"result_description";s:0:"";s:7:"bundles";a:4:{s:5:"audio";i:0;s:5:"image";i:0;s:5:"video";i:0;s:7:"default";i:0;}s:15:"group_by_bundle";i:0;s:11:"show_scheme";i:0;s:15:"group_by_scheme";i:0;s:16:"image_extra_info";a:2:{s:9:"thumbnail";s:9:"thumbnail";s:10:"dimensions";s:10:"dimensions";}}s:20:"entity:taxonomy_term";a:3:{s:18:"result_description";s:0:"";s:7:"bundles";a:22:{s:13:"feature_types";i:0;s:18:"portal_association";i:0;s:15:"main_categories";i:0;s:4:"tags";i:0;s:14:"document_types";i:0;s:8:"template";i:0;s:19:"guidance_documents_";i:0;s:3:"adm";i:0;s:14:"content_owners";i:0;s:22:"guidance_document_type";i:0;s:13:"video_gallery";i:0;s:11:"regulations";i:0;s:20:"procurement_category";i:0;s:5:"ddsos";i:0;s:13:"safety_alerts";i:0;s:8:"language";i:0;s:18:"coordinator_types_";i:0;s:20:"employee_of_the_year";i:0;s:5:"ddsoo";i:0;s:16:"regional_offices";i:0;s:28:"language_english_association";i:0;s:18:"show_language_menu";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:1:{s:10:"url_method";s:1:"2";}s:17:"attribute_plugins";a:6:{s:2:"id";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:6:"target";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:9:"accesskey";a:2:{s:7:"enabled";i:0;s:6:"weight";s:3:"-10";}}s:12:"autocomplete";a:3:{s:9:"charLimit";s:1:"3";s:4:"wait";s:3:"350";s:13:"remoteTimeout";s:5:"10000";}} ) in drupal_write_record() (line 7166 of /var/www/vhosts/opwdd.ny.gov/includes/common.inc).
SEVERITY	error
HOSTNAME	72.43.218.28
OPERATIONS	
loopy1492’s picture

Issue summary: View changes

removed domain

granticusiv’s picture

I'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.

leanderl’s picture

I'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...

leanderl’s picture

Ok, 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.

sylus’s picture

Had 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?