Closed (fixed)
Project:
@font-your-face
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2010 at 04:05 UTC
Updated:
22 Jul 2010 at 13:30 UTC
This is an odd situation.
* warning: Illegal offset type in isset or empty in /home/jm/public_html/includes/bootstrap.inc on line 873.
* warning: Illegal offset type in /home/jm/public_html/includes/bootstrap.inc on line 874.
* warning: Illegal offset type in /home/jm/public_html/includes/bootstrap.inc on line 878.
These errors seem to be coming from enabling several font providers at once. It's hard to isolate whether it's a specific combination or just a limit, but as soon as I reduce to one the errors go away. When I enable perhaps three, the errors return. It's rather consistent in this inconsistent sort of way.
Comments
Comment #1
sreynen commentedI found several issue threads with the same error but no clear explanation of what was causing it, so in case anyone is looking at this trying to debug a similar error:
This problem is caused by calling drupal_set_message() with an array passed as the second parameter ($type).
In this case (and I would guess most cases of this error), the array was supposed to be a parameter to t() inside the drupal_set_message() call, but some misplaced parentheses made it a parameter of the surrounding drupal_set_message() call instead.
It looks like this is happening in the kernest.module file. I'll make a patch for that as soon as I get a chance, unless someone else beats me to it.
Comment #2
jasont28 commentedIt only occurs with the Kernest module for me. When it happens for me I can't access the Kernest fonts.
Comment #3
sreynen commented@jasont28, I think you probably just need to run cron to get the Kernest fonts loaded. It's actually the message telling you that causing the bootstrap error.
Comment #4
sreynen commentedI just committed a fix in the dev release. I'll get this in a stable release after one more bug fix.
Comment #5
jasont28 commentedThanks for the response sreynen. I successfully ran cron a number of times but it hasn't helped unfortunately. I still don't have access to the Kernest fonts.
Comment #6
sreynen commented@jasont28, I'm not sure what's going on with your install, but I'd suggest uninstalling the @font-your-face modules, removing the directory, and installing the 1.2 release. Hopefully that will resolve the issue.