Support Toolkit

conflict with another installed MOD? - Support Toolkit

conflict with another installed MOD?

by M.O.B. » Wed Jan 01, 2014 12:41 am

I recently installed a MOD found here: Quick Language - https://www.phpbb.com/customise/db/mod/quick_language/

To me it seems to not want to work with STK, because today I tried to go into STK, and got an error.

I wonder if there is a way to make both MODs work together? Or is there another problem, I don't foresee.

Here is the error when I try to view STK:

Code: Select all

Emergency Repair Kit

Undefined variable: quick_language

Click here to reload the STK


Screenshot:
Attachments
stk.gif
Image
User avatar
M.O.B.
Registered User
Posts: 942
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA
Contact:

Re: conflict with another installed MOD?

by Noxwizard » Wed Jan 01, 2014 3:50 am

Open: includes/session.php
Find:

Code: Select all

$this->lang_name = $this->data['user_lang'] = $quick_language->quick_language_setlang( $this->lang_name, $this->data['user_id'], $config['cookie_name'] );

Add, before:

Code: Select all

global $quick_language;
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10406
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: conflict with another installed MOD?

by M.O.B. » Wed Jan 01, 2014 4:49 am

Thanks! That fixed it!

Hopefully the developer of the Quick Language mod can add that code, since it seems it's part of his MOD.

Thanks again! :)

OPEN: includes/session.php

FIND:

Code: Select all

/ MOD : MSSTI Quick Language (v1.0.1) - START
      if (!defined('IN_QUICK_LANGUAGE'))
      {
         include($phpbb_root_path . 'includes/function_quick_language.' . $phpEx);
      }
      $this->lang_name = $this->data['user_lang'] = $quick_language->quick_language_setlang( $this->lang_name, $this->data['user_id'], $config['cookie_name'] );
// MOD : MSSTI Quick Language (v1.0.1) - END


REPLACE WITH:

Code: Select all

/ MOD : MSSTI Quick Language (v1.0.1) - START
      if (!defined('IN_QUICK_LANGUAGE'))
      {
         include($phpbb_root_path . 'includes/function_quick_language.' . $phpEx);
      }
      global $quick_language;
      $this->lang_name = $this->data['user_lang'] = $quick_language->quick_language_setlang( $this->lang_name, $this->data['user_id'], $config['cookie_name'] );
// MOD : MSSTI Quick Language (v1.0.1) - END
Image
User avatar
M.O.B.
Registered User
Posts: 942
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA
Contact: