MyBB Community Forums

Full Version: MyBB Integration not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to integrate my website with my forum, they are in the same host.

My cookie path is:
Cooke Domain: .expmu.net
Cookie Path: /

My code is:


define('IN_MYBB', NULL);
require_once 'forum/global.php';
require_once 'class.MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);

if ($MyBBI->login('Leh', '123456')) {
    echo 'login';
}


Error: Undefined property: MyLanguage::$lang_select_default

Even if I declare the global variable this occurs.
I'm trying to integrate my website with my forum, they are in the same host.

My cookie path is:
Cooke Domain: .expmu.net
Cookie Path: /

My code is:


define('IN_MYBB', NULL);
require_once 'forum/global.php';
require_once 'class.MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);

if ($MyBBI->login('Leh', '123456')) {
    echo 'login';
}


Error: Undefined property: MyLanguage::$lang_select_default

Even if I declare the global variable this occurs.

(2017-04-03, 06:23 PM)levale Wrote: [ -> ]I'm trying to integrate my website with my forum, they are in the same host.

My cookie path is:
Cooke Domain: .expmu.net
Cookie Path: /

My code is:


define('IN_MYBB', NULL);
require_once 'forum/global.php';
require_once 'class.MyBBIntegrator.php';
$MyBBI = new MyBBIntegrator($mybb, $db, $cache, $plugins, $lang, $config);

if ($MyBBI->login('Leh', '123456')) {
    echo 'login';
}


Error: Undefined property: MyLanguage::$lang_select_default

Even if I declare the global variable this occurs.


The issue was because I had this setted on my code: register_shutdown_function( "fatal_handler" );