Fatal error: Call to undefined function mobile_tools_mobile_user_roles() in /var/aegir/platforms/Modules_Directory/mobile/mobile_tools/mobile_tools.module on line 813

it is defined in mobile_tools_roles.inc on line 132

on line 106 of mobile_tools.module

 if (variable_get('mobile_tools_enable_roles', 0) ) {
    include(dirname(__FILE__) . '/mobile_tools_roles.inc');
    mobile_tools_roles_boot();  // assigns the user the mobile \
role
  }

I am not familiar with the dirname directive

Comments

Dropper’s picture

I found the same problem today. This solution is not really making sense, but when you activate "mobile roles" (on the settings page), the error seems to disappear. You don't even have to assign any role.

twom’s picture

Status: Active » Fixed

Hi,

Thanks for pointing this out!
I committed a fix and will tag the module as 1.14.... I have added an extra check to make sure that the file is included in case you have activated the user roles functionality....

socialnicheguru’s picture

thanks. this was a hidden bug meaning that for some reason it did not show up in the logs or on the screen or watchdog. it had a cascade effect on other modules. It was a strange, long debugging experience. again thanks for the fix!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.