• When I try to login, it showing me critical error that page and not allowing me to login into admin section of WordPress. When I checked logs I got to know that the toolset plugin is reason for that error. Screenshot is here for reference.

    the trace logs here:

    Here is the error details:
    PHP Fatal error: Uncaught Whip_InvalidType: Configuration should be of type array. Found string. in /home/opshub/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/whip/src/Whip_Configuration.php:22
    Stack trace:
    #0 /home/opshub/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/whip/src/Whip_RequirementsChecker.php(26): Whip_Configuration->__construct(false)
    #1 /home/opshub/www/wp-content/plugins/wordpress-seo-premium/vendor/yoast/whip/src/facades/wordpress.php(21): Whip_RequirementsChecker->__construct(false)
    #2 /home/opshub/www/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/admin.php(30): whip_wp_check_versions(Array)
    #3 /home/opshub/www/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/admin.php(14): Toolset_Admin_Controller->load_whip()
    #4 /home/opshub/www/wp-content/plugins/types/vendor/toolset/toolset-common/bootstrap.php(378): Toolset_Admin_Controller->initialize()
    #5 /home/opshub/www/wp-content/plugins/types/vendor/toolset/toolset-common/bootstrap.php( in /home/opshub/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/whip/src/Whip_Configuration.php on line 22

Viewing 3 replies - 1 through 3 (of 3 total)
  • я испытываю такую же ошибку кто может помочь с этим ?

    I am experiencing the same error can anyone help me with this ?

    Hello,

    Have you found a way to fix it without losing the content?

    да, помог мне в этом chatgtp

    надо в файле Whip_Configuration.php который расположен по адресу /wp-content/plugins/types/vendor/toolset/toolset-common/lib/whip/src/

    заменить код

    public function __construct( $configuration = array() ) {
    		if ( ! is_array( $configuration ) ) {
    			throw new Whip_InvalidType( 'Configuration', gettype( $configuration), "array" );
    		}
    
    	    $this->configuration = $configuration;
    	}

    на вот этот

    public function __construct( $configuration = array() ) {
    	if ( is_string( $configuration ) ) {
    		$configuration = json_decode( $configuration, true );
    	}
    
    	if ( ! is_array( $configuration ) ) {
    		throw new Whip_InvalidType( 'Configuration', gettype( $configuration), "array" );
    	}
    
    	$this->configuration = $configuration;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wp-admin critical errors’ is closed to new replies.