• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Spam Cleaner tool broken

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Spam Cleaner tool broken

    • Issue Tools
      • View Changes
    1. issueid=6477 1 Week Ago 2:23 PM
      dvsDave dvsDave is offline
      Regular Member
      Spam Cleaner tool broken
      Tried to spam ban a new user, but got an error

      Running XF 2.2.17 and VW 4.1.7

      Tried to use the SPAM cleaner tool on a new user and got the following error:


      Code:
      ErrorException: [E_WARNING] Undefined property: vw\vw\Handler\Spam\Cleaner\Comment::$contentType in src/addons/vw/vw/Handler/Spam/Cleaner/base.php at line 74
      XF::handlePhpError() in src/addons/vw/vw/Handler/Spam/Cleaner/base.php at line 74
      vw\vw\Handler\Spam\Cleaner\base->cleanUp() in src/XF/Spam/Cleaner.php at line 156
      XF\Spam\Cleaner->cleanUpContent() in src/XF/Spam/Cleaner.php at line 139
      XF\Spam\Cleaner->cleanUp() in src/XF/Pub/Controller/SpamCleaner.php at line 47
      XF\Pub\Controller\SpamCleaner->actionIndex() in src/XF/Mvc/Dispatcher.php at line 352
      XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
      XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
      XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
      XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2513
      XF\App->run() in src/XF.php at line 524
      XF::runApp() in index.php at line 20
      this error occurs whether or not I have the spam cleaner option selected or not to clean wiki entries.

      The only thing I updated recently was the Standard Library by Xon.
    Issue Details
    Issue Number 6477
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Forum Posts / Non-Wiki Content
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.7
    Fixed Version Next Release
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags bug, error




    1. 1 Week Ago 11:26 AM
      pegasus pegasus is offline
      VaultWiki Team
      It looks like you may be using PHP 8.2 or higher. PHP's treatment of dynamic class properties was changed in PHP 8.2. If you are using this version, it is likely you are receiving many similar error messages about VaultWiki files. The first VaultWiki version with PHP 8.2 compatibility is VaultWiki 4.1.8 (you are using 4.1.7).

      That said, I see that Spam Cleaner will not clean any wiki entries even when the option is selected. To resolve both issues, in src/addons/vw/vw/Handler/Spam/Cleaner/base.php, find:
      Code:
      		$submitter = $app->container('spam.contentSubmitter');
      		$submitter->submitSpam($this->contentType, $contentids);
      
      		$log[$this->contentType] = [
      Replace with:
      Code:
      		$contentType = 'vw' . strtolower($this->vwAccesskey);
      
      		$submitter = $app->container('spam.contentSubmitter');
      		$submitter->submitSpam($contentType, $contentids);
      
      		$log[$contentType] = [
      Find:
      Code:
      $contents = \vw_Hard_Core::controller('Fetch')->get($this->vwAccesskey, $log[$this->contentType]['itemids']);
      Replace with:
      Code:
      			$contentType = 'vw' . strtolower($this->vwAccesskey);
      			$contents = \vw_Hard_Core::controller('Fetch')->get($this->vwAccesskey, $log[$contentType]['itemids']);
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 8:31 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.