• 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
    • ErrorException: Fatal Error: Declaration of vw_Image_Processor_Imagick_Model::clear() must be compatible with Imagick::clear(): bool

    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: ErrorException: Fatal Error: Declaration of vw_Image_Processor_Imagick_Model::clear() must be compatible with Imagick::clear(): bool

    • Issue Tools
      • View Changes
    1. issueid=6264 November 3, 2021 7:00 PM
      hollosch hollosch is offline
      Senior Member
      ErrorException: Fatal Error: Declaration of vw_Image_Processor_Imagick_Model::clear() must be compatible with Imagick::clear(): bool

      ErrorException: Fatal Error: Declaration of vw_Image_Processor_Imagick_Model::clear() must be compatible with Imagick::clear(): bool src/addons/vw/vw/_core/model/image/processor/imagick/vw.php:175
      Generiert von: Holger Schrag 3. November 2021 um 23:55
      Stack-Trace
      #0 [internal function]: XF::handleFatalError()
      #1 {main}
      Status der Anfrage
      array(4) {
      ["url"] => string(30) "/index.php?wiki-ajax/&c=upload"
      ["referrer"] => string(97) "https://stadtwiki-geislingen.de/wiki/?do=create&itemtypeid=13&da=4&etid=1&ecid=0&eaid=9225&efi d=0"
      ["_GET"] => array(2) {
      ["wiki-ajax/"] => string(0) ""
      ["c"] => string(6) "upload"
      }
      ["_POST"] => array(5) {
      ["ajax"] => string(1) "1"
      ["_xfToken"] => string(8) "********"
      ["c"] => string(6) "upload"
      ["areaid"] => string(1) "5"
      ["pageid"] => string(0) ""
      }
      }
    Issue Details
    Issue Number 6264
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Images / Icons
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.2
    Fixed Version 4.1.4
    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 (none)




    1. November 3, 2021 11:26 PM
      pegasus pegasus is offline
      VaultWiki Team
      It looks like PHP 8 changed the signature for the Imagick::clear method. This error should be fixed in the next release (4.1.4), by using a different class for PHP 8 environments.

      In the mean time, the easiest solution is to disable VaultWiki's Imagick support when in PHP 8 environments. This will be applied in the next build of 4.1.3. In src/addons/vw/vw/_core/model/image/format/vw.php, find:
      Code:
      if (class_exists('Imagick', false))
      Replace with:
      Code:
      		if (
      			class_exists('Imagick', false) AND
      			(
      				version_compare(PHP_VERSION, '8.0.0', '<') OR
      				vw_Hard_Core::model('Version')->installed('4.1.4')
      			)
      		)
      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 6:45 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.