Im working on bitnami gitlab stack. Im making a custom entity.
Everything is ok before using the menu_execute_active_handler.

function profile_page() {
      global $user;
      if ($user->uid) {
        $profile_id = users_profile_get_profile_id($user->uid);
        if ($profile_id) {
          menu_set_active_item('profile/' . $profile_id);
          return menu_execute_active_handler(NULL, FALSE);
        }
        else {
          menu_set_active_item('profile/create');
          return menu_execute_active_handler(NULL, FALSE);
          //return drupal_get_form('users_profile_create_form', );
        }
      }
      else {
        return drupal_get_form('user_login');
     }
    }

After this i have the error "No data received" in Chrome and Opera. I googled it and geussed it might be because of APC cache which is not installed on my site. The problem is that after installing the APC cache i cannot find the php.ini to add the "extention = apc.so" in order to enable it. pleassssssse help me.

Comments

VM’s picture

Please edit the opening post and move it to the 'module development and code questions' forum. Upon editing it may also be of benefit to wrap your code in code tags. Thanks.

Jaypan’s picture

What is that code supposed to be doing?