MyBB Community Forums

Full Version: After Purge Spammer Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is my first time encountering this error.

This happens when I click on "Purge Spammer", it takes me to a page like this:

[Image: 5537b96840.jpg]

Then I get the following error:

[Image: 93ec1ad51f.png]

Thread of Purge Error
It's a problem with an arcade plugin (don't know which you're using), moving to Plugin Support. Show the plugin file located in inc/plugins or provide a download link.
I am using is My Arcade Master.

I've had it on there for a while,  but since I couldn't find any game tar files, I didn't want to use it any longer.

Disabling My Arcade Plugin fixed the Error.

But now I am getting an error with my Favcons plugin.

This error is shown when my purge spammer is successful.

[Image: 01f2fdeb88.png]


Favicon:

<?php
// Main Plugin file for the plugin Favicon
// © 2014 juventiner
// ----------------------------------------
// Last Update: 06.10.2014

if(!defined('IN_MYBB'))
{
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}

$plugins->add_hook('global_end','favcons_insert');

function favcons_info()
{
	global $lang;
	$lang->load('favicons');
	
	return array
	(
		'name'			=> $lang->favicons_info_name,
		'description'	=> $lang->favicons_info_desc,
		'website'		=> 'http://community.mybb.com/user-32469.html',
		'author'		=> 'juventiner',
		'authorsite'	=> 'https://www.mybboard.de/forum/user-5490.html',
		'version'		=> '1.6.1',
		'compatibility' => '14*,16*,18*',
		'codename'      => 'favcons'
	);
}


// This function runs when the plugin is activated.
function favcons_activate()
{
	require '../inc/adminfunctions_templates.php';
	global $db, $lang;
	$lang->load('favicons');

	$insertarray = array(
		'name' => 'favcons',
		'title' => $lang->favicons_settings_name,
		'description' => $lang->favicons_settings_desc,
		'disporder' => 35,
		'isdefault' => 0,
	);
	$gid = $db->insert_query("settinggroups", $insertarray);
	
	$insertarray = array(
		'name' => 'favcons_status',
		'title' => $lang->favicons_settings_status_name,
		'description' => $lang->favicons_settings_status_desc,
		'optionscode' => 'yesno',
		'value' => 'yes',
		'disporder' => 1,
		'gid' => $gid
	);
	$db->insert_query("settings", $insertarray);
	
	$insertarray = array(
		'name' => 'favcons_url',
		'title' => $lang->favicons_settings_url_name,
		'description' => $lang->favicons_settings_url_desc,
		'optionscode' => 'text',
		'value' => '',
		'disporder' => 2,
		'gid' => $gid
	);
	$db->insert_query("settings", $insertarray);

	rebuild_settings();

}

// This function runs when the plugin is deactivated.
function favcons_deactivate(){

	global $db;
	$db->delete_query("settings", "name IN('favcons_status','favcons_url')");
	$db->delete_query("settinggroups", "name IN('favcons')");
}

function favcons_insert(){

	global $headerinclude, $mybb;
		if(intval($mybb->settings['favcons_status']) == 1){
			$forumpath = $mybb->settings['bburl'].'/images/'.$mybb->settings['favcons_url'];
			$faviconsize = getimagesize($forumpath);
			$headerinclude = '<link rel="icon" type="'.$faviconsize["mime"].'" href="'.$forumpath.'" />'.$headerinclude;
		}
}


?>
To fix the error in Arcade open inc/plugins/myarcade.php and change:
WHERE r.uid IN('.$delete->delete_uids.')
to:
WHERE r.uid IN({$delete->delete_uids})

EDIT: and also:

"uid IN('.$delete->delete_uids.')"
to:
"uid IN({$delete->delete_uids})"


As for Favcons, you don't need a plugin for such a simple task.. Just insert a code like this to headerinclude template:
<link rel="shortcut icon" href="path/to/your/icon.ico" />
Thank you for your attention, everything seems to work now!