Problem with the linkit dialog box not rendering appropriately. (See attached) The search doesn't work, and the "insert link" will display raw json on the screen. Cancel button doesn't work, but escape does.
It seems to be related to a content type (in my site: basic page). Blocks work fine. Doesn't matter which text format (filtered or full html).
I disabled all caching, changed the admin theme, upgraded wysiwyg, and no luck.
The closest clue I have is "[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (editor.css, line 0)" It's asking for an editor.css file in my theme/style directory, but there isn't one. Now, I could blame the theme, but I have 8 other sites running the same theme with no problems with linkit. I also see "Notice: Undefined property: stdClass::$profile_type in linkit_profile_editor_load_all() (line 164 of docroot/sites/all/modules/contrib/linkit/linkit.module)."
I've been pounding my head against the wall on this one. Any clue on how I can figure this one out?
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2015-09-20 at 8.37.20 PM.png | 27.31 KB | hayzer |
Comments
Comment #2
hayzer commentedComment #3
anonEditor.css is nothing linkit depends on. I dont think the issue is related to Linkit.
About the notice: Seems like you have updated Linkit version, but for some reason the profile settings are old.
I need more information to reproduce this, so I will close this for now. Please feel free to open it again if you can provide more detailed information.
Comment #4
hayzer commentedI just deleted all profiles, and created a new one (same error).
Here is the linkit_profiles table.
pid name admin_title data profile_type admin_description
16 profile_1 profile 1 a:11:{s:12:"text_formats";a:5:{s:13:"filtered_html";s:13:"filtered_html";s:9:"full_html";s:9:"full_html";s:13:"strict_format";i:0;s:10:"plain_text";i:0;s:8:"php_code";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:5:{s:17:"comment_node_page";i:0;s:23:"comment_node_facilities";i:0;s:26:"comment_node_fitness_class";i:0;s:17:"comment_node_poll";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:5:{s:4:"page";i:0;s:10:"facilities";i:0;s:13:"fitness_class";i:0;s:4:"poll";i:0;s:7:"webform";i:0;}s:15:"group_by_bundle";i:0;s:19:"include_unpublished";i:0;}s:11:"entity:file";a:5:{s:18:"result_description";s:0:"";s:11:"show_scheme";i:0;s:15:"group_by_scheme";i:0;s:8:"url_type";s:6:"direct";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:7:{s:4:"tags";i:0;s:15:"site_categories";i:0;s:20:"slideshow_categories";i:0;s:17:"people_categories";i:0;s:15:"fitness_classes";i:0;s:17:"fitness_locations";i:0;s:18:"fitness_instructor";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:"3";}s:17:"attribute_plugins";a:6:{s:5:"title";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:6:"target";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:5:"class";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:4:"imce";i:0;s:12:"autocomplete";a:3:{s:9:"charLimit";s:1:"3";s:4:"wait";s:3:"350";s:13:"remoteTimeout";s:5:"10000";}} 1
Comment #5
anonAnd what Linkit version are you using? And which issue still occurs?
Comment #6
hayzer commented7.x-3.4 (not dev)
The issue demoed in the screen shot still occurs. I will confirm if the watchdog log error is still produced.
Comment #7
hayzer commentedThe watchdog error wasn't produced, so it appears that error resolved itself through deleting the profiles.
Here is the div class that is produced for the modal dialog box.
When I click "insert", this is produced:
[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"cornell_sas","theme_token":"5tUPF_0R77SsgunKOxiVnc8aCi52TPjEGbw75WdWwRM"},"colorbox":{"opacity":"0.85","current":"{current} of {total}","previous":"\u00ab Prev","next":"Next \u00bb","close":"Close","maxWidth":"98%","maxHeight":"98%","fixed":true,"mobiledetect":true,"mobiledevicewidth":"480px"},"custom_search":{"form_target":"_self","solr":0},"ajax":{"edit-profile-profile-1":{"callback":"linkit_change_profile","wrapper":"linkit-dashbaord-ajax-wrapper","method":"replaceWith","effect":"fade","event":"click","url":"\/system\/ajax","submit":{"_triggering_element_name":"profile"}}},"urlIsAjaxTrusted":{"\/system\/ajax":true,"\/linkit\/dashboard\/profile_1":true},"linkit":{"currentInstance":{"profile":"profile_1","autocomplete":{"charLimit":"3","wait":"350","remoteTimeout":"10000"}}}},"merge":true},{"command":"insert","method":"html","selector":"#linkit-modal","data":"\u003Cform action=\u0022\/linkit\/dashboard\/profile_1\u0022 method=\u0022post\u0022 id=\u0022linkit-dashboard-form\u0022 accept-charset=\u0022UTF-8\u0022\u003E\u003Cdiv\u003E\u003Cdiv id=\u0022linkit-profile-changer\u0022\u003E\u003Cdiv class=\u0022form-item form-type-radios form-item-profile\u0022\u003E\n \u003Clabel for=\u0022edit-profile\u0022\u003ESelect profile to use \u003C\/label\u003E\n \u003Cdiv id=\u0022edit-profile\u0022 class=\u0022form-radios\u0022\u003E\u003Cdiv class=\u0022form-item form-type-radio form-item-profile\u0022\u003E\n \u003Cinput type=\u0022radio\u0022 id=\u0022edit-profile-profile-1\u0022 name=\u0022profile\u0022 value=\u0022profile_1\u0022 checked=\u0022checked\u0022 class=\u0022form-radio\u0022 \/\u003E \u003Clabel class=\u0022option\u0022 for=\u0022edit-profile-profile-1\u0022\u003Eprofile 1 \u003C\/label\u003E\n\n\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\n\u003C\/div\u003E\u003Cinput type=\u0022hidden\u0022 name=\u0022form_build_id\u0022 value=\u0022form-kKIW_HMkX85ToXwNEyTzLhUjgAjO5pYt51kKzcUofKg\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_token\u0022 value=\u0022bo_oqs27ypjywIKCTLVnNnBZreChfiOBf3ogpqIa09Y\u0022 \/\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022form_id\u0022 value=\u0022linkit_dashboard_form\u0022 \/\u003E\n\u003Cdiv id=\u0022linkit-dashbaord-ajax-wrapper\u0022\u003E\u003Cdiv id=\u0022edit-linkit-container\u0022 class=\u0022form-wrapper\u0022\u003E\u003Cdiv class=\u0022form-item form-type-textfield form-item-linkit-search\u0022\u003E\n \u003Clabel for=\u0022edit-linkit-search\u0022\u003ESearch for content. \u003C\/label\u003E\n \u003Cinput class=\u0022linkit-search-element form-text\u0022 type=\u0022text\u0022 id=\u0022edit-linkit-search\u0022 name=\u0022linkit_search\u0022 value=\u0022\u0022 size=\u002260\u0022 maxlength=\u0022255\u0022 \/\u003E\n\u003Cdiv class=\u0022description\u0022\u003EStart typing to find content or paste a URL.\u003C\/div\u003E\n\u003C\/div\u003E\n\u003Cdiv class=\u0022form-item form-type-textfield form-item-linkit-path\u0022\u003E\n \u003Clabel for=\u0022edit-linkit-path\u0022\u003ELink URL \u003Cspan class=\u0022form-required\u0022 title=\u0022This field is required.\u0022\u003E*\u003C\/span\u003E\u003C\/label\u003E\n \u003Cinput class=\u0022linkit-path-element form-text required error\u0022 type=\u0022text\u0022 id=\u0022edit-linkit-path\u0022 name=\u0022linkit_path\u0022 value=\u0022\u0022 size=\u002260\u0022 \/\u003E\n\u003Cdiv class=\u0022description\u0022\u003EThis will be populated by the search, or you can fill it in yourself.\u003C\/div\u003E\n\u003C\/div\u003E\n\u003Cinput class=\u0022linkit-insert form-submit\u0022 type=\u0022submit\u0022 id=\u0022edit-linkit-insert\u0022 name=\u0022op\u0022 value=\u0022Insert link\u0022 \/\u003E\u003Ca id=\u0022linkit-cancel\u0022 href=\u0022#\u0022\u003ECancel\u003C\/a\u003E\u003C\/div\u003E\u003C\/div\u003E\u003C\/div\u003E\u003C\/form\u003E","settings":null},{"command":"insert","method":"prepend","selector":"#linkit-modal","data":"\u003Cdiv class=\u0022messages error\u0022\u003E\n\u003Ch2 class=\u0022element-invisible\u0022\u003EError message\u003C\/h2\u003E\nLink URL field is required.\u003C\/div\u003E\n","settings":null}]Comment #8
hayzer commentedOK. I got 'PHP Warning: Unknown: Input variables exceeded 2500. To increase the limit change max_input_vars in php.ini. in Unknown on line 0 request_id="c220c8dd-ccb3-47a6-b8ad-2e016918db2b"' Might be related to https://www.drupal.org/node/2249097
Comment #9
anonYes it is, I will close this as a duplicate. Thanks for the information.