white page with error
Babalu - September 29, 2008 - 08:42
| Project: | Keyboard shortcut utility |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | BravoGolf |
| Status: | closed |
Description
when i go under admin/settings/shortcut it comes a white page with this error:
Fatal error: Unsupported operand types in /var/www/web3/html/includes/common.inc on line 1445

#1
Same here
#2
This is my patch to slove your probem. Please test it!
The error is the third paramater of the l() function, it must be an array()!
#3
hmm no. after patching the same problem still there
#4
When using the 1.1 Version and applying the patch the error is gone and shortcuts work.
regards
#5
Eureka !! I got the problem
see the code
<?php
function theme_shortcut_admin_list($shortcuts = array()) {
$headers = array(t('Shortcut'), t('Description'), t('Actions'));
$rows = array();
foreach ($shortcuts as $shortcut) {
$shortcut_string = shortcut_shortcut_to_string($shortcut);
$rows[] = array(
$shortcut_string,
$shortcut['title'],
l(t('Edit'), 'node/' . $shortcut['nid'] . '/edit', array(drupal_get_destination())) // enclose array() to drupal_get_destination()
. ' | '
. l(t('Remove'), 'node/' . $shortcut['nid'] . '/delete', array(drupal_get_destination())) // enclose array() to drupal_get_destination()
);
}
$output = l(t('Add a new shortcut'), 'node/add/shortcut', array(drupal_get_destination())); // enclose array() to drupal_get_destination()
?>
and its done
#6
#7
this seemed to fix it - can this solution be added to release?
#8
Created a patch of #5 with small modification.
regards
#9
#5 code works
#8 patch is not working for me
#10
can you specify whats not working with the patch?
#11
It works with #5 !!
Thanks for this nice practical module !!!
#12
Patch/code in #5 worked for me.
#13
Automatically closed -- issue fixed for 2 weeks with no activity.