Hi,

I get a bunch of php notices every time I open up a popup produced by the linkit module... to reproduce: install linkit + wysiwyg, activate linkit button for wysiwyg, click that button on a node creation form, and then check any other administration page to see the notices.

* Notice: Undefined variable: classes in include() (Zeile 3 von /var/www/bf_d7test/public_html/sites/all/themes/rubik/templates/object.tpl.php).
* Notice: Undefined variable: attributes in include() (Zeile 3 von /var/www/bf_d7test/public_html/sites/all/themes/rubik/templates/object.tpl.php).
* Notice: Undefined variable: layout in include() (Zeile 4 von /var/www/bf_d7test/public_html/sites/all/themes/rubik/templates/object.tpl.php).
* Notice: Undefined variable: layout in include() (Zeile 18 von /var/www/bf_d7test/public_html/sites/all/themes/rubik/templates/object.tpl.php).
* Notice: Undefined variable: layout in include() (Zeile 22 von /var/www/bf_d7test/public_html/sites/all/themes/rubik/templates/object.tpl.php).
* Notice: Undefined variable: layout in include() (Zeile 43 von /var/www/bf_d7test/public_html/sites/all/themes/rubik/templates/object.tpl.php).

Cheers,
Ben

Comments

aimevp’s picture

Version: 7.x-4.0-beta4 » 7.x-4.0-beta5

I have it also. My setup is linkit + linkit_views + CKEditor (without wysiwyg).
The notices are exactly the same. I had them also when I didn't have linkit_views installed.

coffeymachine’s picture

Title: Fix E_NOTICE errors » Conflict with linkit module
btopro’s picture

are you sure it's not a devel conflict? I turned devel on, no issue, turn it off, this starts popping up. I disabled devel, then uninstalled it and my issue went away. Granted it was 6.x but it was the same error message.

dgastudio’s picture

same here

silloyd’s picture

I've tracked it down to linkit's inclusion of theme('help') in template_preprocess_linkit_dashboard (around line 123 of linkit.module).

Not sure what the problem is beyond that.

I'm using the following work around to force the use of a different theme for linkit

/**
 *  Implements hook_menu_alter().
 *  Work around for http://drupal.org/node/1073682
 */
function custom_module_menu_alter(&$items){
	$items['linkit/dashboard/%']['theme callback'] = '_custom_module_linkit_theme';
}
function _custom_module_linkit_theme(){
	return 'seven';  // replace with the name of any other enabled theme you wish
}
haydeniv’s picture

Issue summary: View changes
Status: Active » Fixed

I believe this should have been fixed in the latest release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.