MyBB Community Forums

Full Version: mybb error 1091
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
i got the facebook plugin deleted and now i want to delete the twitter plugin. But yes it says twavatar missing. Is there a similar script to the facebook script that can fix this error?
you can add below code segment as twavatar.php file & execute it
<?php

define('IN_MYBB', 1);
require "global.php";

global $db;

if(!$db->field_exists("twavatar", "users")) {
	$db->add_column("users", "twavatar", "TEXT NULL");
	echo ("Missing twavatar. Restored.");
}

Note: php files should be saved with utf-8 encoding without Byte Order Mark.
in general, we use editor like Notepad++ or file editor at web host panel
so I put the code in a php file then execute it like the last one? how do I make utf-8 encoding without Byte order mark ? How do I make a php file on cpanel?
^ in cPanel you can go to file manager and browse to your MyBB files folder where you have global.php file
at the top toolbar you can click on add file & follow instructions on screen .. select utf8 for encoding .. etc
I went into global.php but there is no option to add a file. Am I supposed to add this code in the global php file? I tried to make the file and put it in the mybb folder and tried executing it but got a 404 page.
the code should be added as a new file. not sure how you got 404 error.
would you like to PM me temporary access to files (FTP account) to check
sent the details to you
Pages: 1 2