Warning: The author of this contribution does not provide support for it anymore.

Anti Spam ACP

Antispam Mod broken with 3.0.9 (fatal error class not found) - Anti Spam ACP

Antispam Mod broken with 3.0.9 (fatal error class not found)

by oliverfr » Thu Jul 14, 2011 12:54 pm

Hello,

I have a problem with the Antispam ACP mod, it's breaking the .MODS tab in the admin panel, and blocking editing of the profiles of the users. Could you help me, by chance, please ?
I explain everything in the lines below :)

As an admin, I've already worked on oscommerce (hell) and wordpress (heaven), but PHPBB is a first for me. And suddenly, I have to manage an already running big forum with the ACP Antispam mod installed. This is ACP 1.0.2 installed with automod (or at least, listed in the automod page, and active).

Everything worked with PHPBB 3.0.8, as I was given it. I let the PHPBB auto-update from 3.0.8 to 3.0.9 run, everything went smoothly (every time the option was offered, I picked "overwrite"). And problems followed.

Error 1 :
Forum members can't update their profile, on the page (forum URL)/ucp.php?i=173 they have the error :
Fatal error: Class 'antispam' not found in in (host)/forum/includes/ucp/ucp_profile.php on line 473
(that line contains

Code: Select all

$user->add_lang('posting');
, and shortly before it, there's the explanation it's the block of code of "ucp_profile Changing profile settings" )

Error 2, worse ! :
I thought I could deactivate the mod, to see how it's going, and maybe remove it (hoping it's possible to be done from the web interface, please God, not the Oscommerce way !), and reinstall it with a fresh copy.
However, in the Admin's admnistration panel : impossible to open the .Mods tab, there is this message :
Fatal error: Class 'antispam' not found in (host)/forum/includes/acp/acp_asacp.php on line 557
(that line contains :

Code: Select all

$latest_version = antispam::version_check();
)

I can't even deactivate it ! :(

I have a backup of the PHPBB 3.0.8 files, I know how to perform file comparisons (I use Beyond Compare on a regular basis)... but I don't even know where to search in the present case. I'm too new to PHPBB, and I'm severely short of time :(

Please, if you have an idea about how to solve it, if you want me to perform tests or search precise elements, I'm open to all advice and suggestions !

Thank you very much if you can help me :)

Oliver
oliverfr
Registered User
Posts: 58
Joined: Thu Jul 14, 2011 12:38 am
Contact:

Re: Antispam Mod broken with 3.0.9 (fatal error class not found)

by EXreaction » Thu Jul 14, 2011 3:00 pm

It was probably from the update where you had it overwrite the changes. You'll need to manually go through the install instructions and make sure all of the edits are in place
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan
Contact:

Re: Antispam Mod broken with 3.0.9 (fatal error class not found)

by oliverfr » Sun Aug 07, 2011 9:28 pm

Sorry I took a long time to reply.

Indeed, one file's change had been overlooked.

Thanks for the reply :)
oliverfr
Registered User
Posts: 58
Joined: Thu Jul 14, 2011 12:38 am
Contact:

Re: Antispam Mod broken with 3.0.9 (fatal error class not fo

by KhizerHayat » Sat Aug 23, 2014 6:01 pm

can you help in this problem

i got this error

Fatal error: Interface 'SimpleQuiz\Utils\Base\LeaderBoardInterface' not found in C:\xampp\htdocs\simple-quiz-1.8.1\SimpleQuiz\Utils\LeaderBoard.php on line 4.

and my 4th line is

class LeaderBoard implements Base\LeaderBoardInterface {

and complete funtion is

class LeaderBoard implements Base\LeaderBoardInterface {

public function getMembers($quizid, $number = false)
{
$members = \ORM::for_table('users')
->left_outer_join('quiz_users', array('quiz_users.user_id', '=', 'users.id'))
->where('quiz_users.quiz_id', $quizid)
->order_by_desc('quiz_users.score')
->find_array();

if ($number)
{
usort($members, 'memberSort');
return array_slice($members, 0, $number, true);
}

return $members;
}

public function addMember($quizid, $user,$score,$start,$end,$timetaken)
{
//this should be called at start of quiz and fail if user already exists
//record should be updated at end of quiz with score etc
$userexists = \ORM::for_table('users')->where('name', $user)->find_one();

if (! $userexists) {
$newuser = \ORM::for_table('users')->create();
$newuser->set('name', $user);
$newuser->save();
$userid = $newuser->id();
}
else {
$userid = $userexists->id();
}

$quizuser = \ORM::for_table('quiz_users')->create();
$quizuser->set(array(
'quiz_id' => $quizid,
'user_id' => $userid,
'score' => $score,
'start_time' => $start,
'date_submitted' => $end,
'time_taken' => $timetaken
));
$quizuser->save();
return true;
}
}
KhizerHayat
Registered User
Posts: 1
Joined: Sat Aug 23, 2014 5:33 pm
Contact:

Re: Antispam Mod broken with 3.0.9 (fatal error class not fo

by Geolim4 » Sat Aug 23, 2014 8:26 pm

KhizerHayat, please create your own topic.

Thanks ;)
Also, please wrap your code with <code> bbcode.
phpBB-fr Former MOD Team Leader / Website Team Member
User avatar
Geolim4
Former Team Member
Posts: 1965
Joined: Sat Sep 11, 2010 3:28 pm
Location: Nantes, France
Name: Georges
Contact: