MyBB Community Forums

Full Version: Fatal error: Call to a member function set_language() on a non-object in /global.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, 


I got a big problem with my mybb forum. 
I installed the Index Top Poster Plugin today, and it works all fine. At next I wanted to make it on another side, linked by the Navigation. 

But after I create a new template and php, there is this big Error on my side:

Fatal error: Call to a member function set_language() on a non-object in /global.php on line 94

I tried to fix it, by deleting the plugin from my server and load up a new global.php, but this doesn't fix it. 
I can't reach my admin-cp or the site. 

I tried to reupload all mybb-files again, but this still doesn't work. 

I really need some help...
temporarily rename plugins folder as plugins2 - does the error disappear ? if so what files you have in the plugins folder ?

Edit:
Quote:... after I create a new template and php
unable to get it. have you copied the plugin file and renamed it ?
No it don't disappear, if I changed the name.

No, I wanted to put the plugin on another page, not showed on the index. I wanted to create a new site called Topposter, to link it at my navigation.
For this I need to create a new PHP for this site and a template, in the template I linked the plugin. But after this I can't see anything.
can you post content of the new template
or temporarily wipe out its contents & check
Yeah the template:

<html>
<head>
<title>{$settings['bbname']} - Impressum</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Impressum</strong></td>
</tr>
<tr>
<td class="trow1" align="center">
 {$itpf}{$itph}
</td>
</tr>
</table>
{$footer}
</body>
</html>
in your php file, have you set $templates , $lang as the global variables ?
Which PHP do ya mean?
The PHP of the new site?
Quote:... I need to create a new PHP for this site and a template
sorry, it is confusing what exactly you have done.
would you like to PM me temporary access to files (FTP) where you have the problem
Okay I did.

It works, if I renamed plugin zu plugin2.

But what could I do now?
^ can't guess what went wrong without looking at your plugin files !