We unchecked the Printer, e-mail and PDF versions in the moduels section of the drupal admin site; now we are getting errors that will not allow us to login and there are errors on every page that had the pfint friendly link on it; any advice as to how to fix this?
Error is:
Notice: Uninitialized string offset: 0 in print_node_view() (line 373 of /home/content/71/7521371/html/drupal/sites/all/modules/print/print.module).
Notice: Uninitialized string offset: 0 in print_node_view() (line 374 of /home/content/71/7521371/html/drupal/sites/all/modules/print/print.module).
Notice: Uninitialized string offset: 0 in print_node_view() (line 375 of /home/content/71/7521371/html/drupal/sites/all/modules/print/print.module).
and
Recoverable fatal error: Argument 1 passed to drupal_attributes() must be an array, string given, called in /home/content/71/7521371/html/drupal/includes/common.inc on line 2353 and defined in drupal_attributes() (line 2258 of /home/content/71/7521371/html/drupal/includes/common.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1256648.patch | 613 bytes | feo |
Comments
Comment #1
jcnventuraTry to install Drush and run 'drush cc all' to clear any caches you've got there.. It seems that the module didn't really uninstall cleanly and it's still trying to do something with it..
I've failed to reproduce that in my system, though.
Comment #2
jcnventuraNo further info in two weeks. Closing the issue.
Comment #3
feo commentedConfirmation of the issue on the page with Webform, looks like notices comes, from theme('print_format_link') in empty case.
"Notice : Uninitialized string offset: 0 dans print_node_view() (ligne 422 dans /mnt/pcFedir/formavenir-performances.fr/trunk/sites/all/modules/print/print.module).
Notice : Uninitialized string offset: 0 dans print_node_view() (ligne 423 dans /mnt/pcFedir/formavenir-performances.fr/trunk/sites/all/modules/print/print.module).
Notice : Uninitialized string offset: 0 dans print_node_view() (ligne 424 dans /mnt/pcFedir/formavenir-performances.fr/trunk/sites/all/modules/print/print.module)."
Attached patch resolves the issue.
Comment #4
jcnventuraComment #5
jcnventuraThe only way that the attached patch solves the issue is if someone wrote a theme_print_format_link() function of their own that doesn't properly set the values of the required return array. From what I've seen, the only way that specific error message can be achieved is if instead of an array, a string is being returned.
So, clearly something needs a patch, but I'm not sure it's the module.. Can you please tell me if you're using a custom print_format_link function, and if so, what's the return value?
Comment #6
jcnventuraNo further info in two weeks. Closing the issue.