Warning: Parameter 1 to Language::getMagic() expected to be a reference, value given in /home/vhosting/c/vhost0008804/domains/online-urbanus.be/htdocs/w3/includes/StubObject.php on line 58 FAQ - Game Section

FAQ

From Game Section

NOTE THAT THIS PAGE IS ABOUT GAME SECTION 1.1.x

This is the FAQ (Frequently Asked Questions) of the Game Section. When you don't find an answer to your question, you can ask him at the community forums.

Contents

Installation

I get a header error!

Do you get an error like this:

Warning: Cannot modify header information - headers already sent by (output started at
/home/user/www/forum/global.php:1) in /home/user/www/forum/inc/functions.php on line 1118

Then you have a whitespace or an other character in your global.php file BEFORE <?php. To fix the problem, you can download this global.php for MyBB 1.2.9 with the Game Section changes.

I get a php error that games.lang.php doesn't exist

Do you get an error like this:

/home/user/www/forum/inc/languages//games.lang.php does not exist

Then you didn't follow the instructions in the README.txt file:

2. OPEN GLOBAL.PHP AND FIND:
// Run global_start plugin hook now that the basics are set up
$plugins->run_hooks("global_start");

// Set and load the language
if(!isset($mybb->settings['bblanguage']))
{
	$mybb->settings['bblanguage'] = "english";
}

// Load language
$lang->set_language($mybb->settings['bblanguage']);
$lang->load("global");
$lang->load("messages");

REPLACE WITH:
// Set and load the language
if(!isset($mybb->settings['bblanguage']))
{
	$mybb->settings['bblanguage'] = "english";
}

// Load language
$lang->set_language($mybb->settings['bblanguage']);
$lang->load("global");
$lang->load("messages");

// Run global_start plugin hook now that the basics are set up
$plugins->run_hooks("global_start");

OR upload this global.php file (MyBB 1.2.9)

When I activate the plugin, I get a MySQL error

Do you get an error like this:

MySQLi error: 1146
Table 'forum.mybb_games_list' doesn't exist
Query: ALTER TABLE `mybb_games_list` RENAME `mybb_games`;

Then you downloaded the wrong package: You downloaded the Arcade conversion package.

I get an error that the games doesn't exist when I submit my score

Do you get this error:

Game doesn't exist.

This is a problem with the session. Be sure that you use 1.1.7 (or higher) and follow this:
1. Create a directory, for example sessions, in your home directory so it's not online
2. Go to AdminCP -> Board Settings -> Change -> General Configuration -> Session Path and fill the path to that directory in. For example /home/kieken/sessions

Adding games and gamedata (AdminCP)

I get an error that my directories aren't CHMOD 777!

Do you get this error:

One of the follow directories has no chmod 777:
games
arcade/gamedata
games/images
admin/games

This means, like it says, that one or more of that directories aren't CHMOD 777. This means that the directories aren't writable. In the mods FTP programs, you can change the CHMOD of your directories and files.

I get a php error that I don't have permissions!

Do you get an error like this when you view the gamedata:

Warning: mkdir() [function.mkdir]: Permission denied in /home/user/www/forum/admin/games.php on line 923

Make a arcade directory in your forumroot and give it CHMOD 777 rights.

When you still get that error, control then if you can make directories with PHP.

I get and eror that he can't make the directory

Do you get an error like this:

Can't make this directory:
arcade

This means that there was an error to make the directory, make the directory and give him 777 rights.

dissertation writing services