Closed (fixed)
Project:
Accessibility
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2008 at 13:15 UTC
Updated:
20 Sep 2008 at 07:00 UTC
I have the accessibility module enabled and configured on a site that may experience moderate to heavy traffic. With page caching turned on, all pages load with an "undefined function drupal_get_path()" error on accessibility.module. (line 199, I think).
By placing function_exists('drupal_get_path') around the function in question, the same error displays again, this time for drupal_set_header() on accessibility_init.php. Mobi versions of the pages no longer load in a handheld device.
Comments
Comment #1
sjancich commentedComment #2
jabba_29 commentedThis is a known issue.
When in the admin section, /admin/settings/performance -
accessibility module is listed as a module that may not function correctly with caching on...
Apart from the obvious disable caching, as the module adds caching for mobile devices anyway,
perhaps try adding the function exists to the second undefined function.
Comment #3
sjancich commentedWhen I wrap the function_exists() around drupal_get_path, the module no longer works. Handheld devices attempt to pull up the web theme instead of the mobi/wap theme
Comment #4
jabba_29 commentedThese functions are only used to get the correct paths to the files that are included -
you could try hard coding them instead.
However, whether the module would still try to get the correct theme or not is questionable...
Comment #5
jabba_29 commented