Hi.

First of all thank You for such a good project.
I missed it a lot in all of the modules available in D7 extensions.

I've implemented module on multilingual website, and it works gorgeous, except one thing.

After logout from admin panel, i'm receiving error code, right below footer.
Error appears only on that page, where logout was made from. And its visible to regular users also.

After cleaning cache (from another browser) error gone.

It was saying something about undefined function in line 180.module

I have commented those line, to keep error gone, but i know its not a solution.

/**
 * Implementation of hook_exit()
 * store current request page to user session
 */
/*function beanstag_exit($destination = NULL) {
  if (user_access('administer beanstag') && (!isset($_REQUEST['render']) || $_REQUEST['render'] != 'overlay')) {
    $_SESSION['last_request_page'] = request_path() ? request_path() : '<front>';
  }
}
*/

Keep up with great job!

Good luck

Comments

ykyuen’s picture

What language detection you used? i tried URL as detection method but couldn't reproduce the problem.

And line 180 is

if (user_access('administer beanstag') && (!isset($_REQUEST['render']) || $_REQUEST['render'] != 'overlay')) {

the only function here is user_access(). i found a similar problem which is quite similar to ours.
Fatal error: Call to undefined function user_access() inmodules/browscap/browscap.module on line 99

I think we can load the user module inside the hook_exit(). Could u please check if the following new function can fix the problem?

function beanstag_exit($destination = NULL) {
  module_load_include('module', 'user', 'user');
  if (user_access('administer beanstag') && (!isset($_REQUEST['render']) || $_REQUEST['render'] != 'overlay')) {
    $_SESSION['last_request_page'] = request_path() ? request_path() : '<front>';
  }
}
noizo’s picture

Hi, i used session and user language detection.
I will try and give a feedback.

ykyuen’s picture

Status: Active » Closed (fixed)

code commited.