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

sjancich’s picture

Priority: Critical » Normal
jabba_29’s picture

This 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.

sjancich’s picture

When 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

jabba_29’s picture

These 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...

jabba_29’s picture

Status: Active » Closed (fixed)