Viewing 15 replies - 1 through 15 (of 25 total)
  • Hi, I think there could be a problem with the htaccess, or maybe the index.php
    does the index.php file name end with .php?
    Can you share your .htaccess file?
    Also create a file in the siteroot called info.php
    in this info.php place this:
    <?php phpinfo(); ?>
    This can give us an idea if the php interpreter works properly

    lisa

    (@contentiskey)

    -if you have access to the files and database it is possible to create a copy of the site (export database + download files) if you have not deleted things.
    -if you have access to the files in the WP-Content folder, it is possible to temporarily deactivate the plugins by changing the name of the plugins folder to something like plugins-old. often deactivating all plugins will allow you to get into the WordPress dashboard to do further review.

    https://ww.wp.xz.cn/support/category/troubleshooting/

    Backing Up Your WordPress Files

    • This reply was modified 3 years, 6 months ago by lisa.
    Thread Starter raelenel

    (@raelenel)

    If i go in to the WordPress management in the Softaculous page and click on login for the page it just downloads this file, sapp-wp-signon (6).php. Inside this is:

    <?php
    @unlink(__FILE__);
    
    // Validate if the request is from Softaculous
    if($_REQUEST['pass'] != 'uepb16aj7mvm24bx5indmvhybs1ouqq4'){
    	die("Unauthorized Access");
    }
    
    // Dummy plugin dir so that no plugins are loaded as they conflict with our login process
    define('WPMU_PLUGIN_DIR', '/home/landeau/pelicansnestkalbarri.com.au/uepb16aj7mvm24bx5indmvhybs1ouqq4');
    define('WP_PLUGIN_DIR', '/home/landeau/pelicansnestkalbarri.com.au/uepb16aj7mvm24bx5indmvhybs1ouqq4');
    define('WP_CONTENT_DIR', '/home/landeau/pelicansnestkalbarri.com.au/uepb16aj7mvm24bx5indmvhybs1ouqq4');
    define('WP_USE_THEMES', false);
    
    // Some themes check the current login script name
    $_SERVER['SCRIPT_NAME'] = '/wp-login.php';
    
    require('wp-blog-header.php');
    require('wp-includes/pluggable.php');
    
    // If the user is already logged in simply redirect to admin page
    if(!is_user_logged_in()){
    	
    	$signon_user = '';
    
    	//Backword compatibility ($__setting['signon_username'] won't be there in previous versions <= 5.2.3)
    	if(!empty($signon_user) && !preg_match('/^\[\[(.*?)\]\]$/is', $signon_user)){
    		$user = get_user_by('login', $signon_user);
    	}else{
    		$user_info = get_userdata(1);
    		
    		// Try to find an admin if we do not have any admin with ID => 1
    		if(empty($user_info) || empty($user_info->user_login)){
    			$admin_id = get_users(array('role__in' => array('administrator'), 'number' => 1, 'fields' => array('ID')));
    			$user_info = get_userdata($admin_id[0]->ID);
    		}
    		
    		$username = $user_info->user_login;
    		$user = get_user_by('login', $username);
    	}
    	
    	// Create the session
    	if(!is_wp_error($user)){
    		wp_clear_auth_cookie();
    		wp_set_current_user($user->ID);
    		wp_set_auth_cookie($user->ID);
    		
    		// Create a session for wp-simple-firewall plugin
    		if(file_exists(dirname(__FILE__).'/wp-content/plugins/wp-simple-firewall')){
    			
    			try{
    				
    				global $wpdb;
    				
    				$wpsf_session_id = md5(uniqid('icwp-wpsf'));
    				
    				$wpdb->insert($wpdb->prefix."icwp_wpsf_sessions", array(
    				   "session_id" => $wpsf_session_id,
    				   "wp_username" => $user->user_login,
    				   "ip" => $_SERVER['REMOTE_ADDR'],
    				   "browser" => md5($_SERVER['HTTP_USER_AGENT']),
    				   "last_activity_uri" => "/wp-login.php",
    				   "logged_in_at" => time(),
    				   "last_activity_at" => time(),
    				   "login_intent_expires_at" => 0,
    				   "secadmin_at" => 0,
    				   "created_at" => time(),
    				   "deleted_at" => 0,
    				));
    				
    				setcookie("wp-icwp-wpsf", $wpsf_session_id, time()+ DAY_IN_SECONDS * 30);
    				
    			} catch(Exception $e){
    				
    			}
    		}
    	}
    }
    
    // Redirect to admin page
    $redirect_to = admin_url();
    wp_safe_redirect( $redirect_to );
    
    exit();

    I went into my cPanel files and changed the name of the plugins folder to plugins-old but still nothing, does it take time to go through?

    I also made the info.php file with the <?php phpinfo(); ?> inside but I still don’t understand any of this as I used to working with html files.

    Thanks for the replies so far.

    can you open the info.php file in your browser please

    Thread Starter raelenel

    (@raelenel)

    Thread Starter raelenel

    (@raelenel)

    but if I try a link like https://www.pelicansnestkalbarri.com.au/wp-admin/info.php it just downloads it, or https://www.pelicansnestkalbarri.com.au/info.php again it just downloads it, it won’t view.

    okay, can you post your .htaccess file please

    Thread Starter raelenel

    (@raelenel)

    Inside the .htaccess is the following: `AddHandler application/x-httpd-php54 .php
    #This Apache config file was created by Duplicator Installer on 2021-06-06 07:10:36.
    #The original can be found in archived file with the name .htaccess__[HASH]

    # BEGIN WordPress
    # The directives (lines) between “BEGIN WordPress” and “END WordPress” are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress`

    Hi, okay i suspect that php54 is not available anymore

    you could try to find out what php versions are available from your hoster and then set one closest to you,

    Just test it, in the first line of the htaccess replace the php54 with these:
    php55
    php56
    php70
    php71
    php74
    php80

    Save the file and test if it works now. Just use the first one that works so you don’t jump a few versions

    Thread Starter raelenel

    (@raelenel)

    I tried all of those and checked to see if the website worked and if I could get into the site at Softaculous and neither worked for any of them.

    Thread Starter raelenel

    (@raelenel)

    I have renamed the plugins folder back so I could get in to manage the plugins in the dashboard and I have deactivated the plugins Google XML Sitemaps and Sitemap by BestWebSoft because they said it was the “type E_ERROR was caused in line 531 of the file /home/landeau/pelicansnestkalbarri.com.au/wp-content/plugins/google-sitemap-plugin/google-sitemap-plugin.php”. The problem is that the website still does not show and I still can’t login to the dashboard, I can only see the manage plugins part in the first page. I have now discovered that even though I deactivated them there, they keep coming back on and if I try to delete them it won’t let me. Each time I go to the webpage itself it still just downloads a php file that reads

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define( 'WP_USE_THEMES', true );
    
    /** Loads the WordPress Environment and Template */
    require __DIR__ . '/wp-blog-header.php';

    What I would like to know is does it take long to work again if I get it right or is there a 24 hour delay?

    I have gone back and tried changing the php54 but then when I go check the plugins have been reactivated on their own. Not sure how I can fix this if they keep coming back on and won’t let me delete them?

    I don;t want to have to build a html page and just wipe the WordPress website out all together but it;s looking more and more like I will have to do that and the business sale has gone through today and they still haven’t told them about the missing website!

    Any other ideas? is there some way I can get help from somewhere? A number or email address I can contact to get this site back up?

    Thread Starter raelenel

    (@raelenel)

    Is there any way to stop these plugins from reactivating themselves or how would I take them back to an older version? I don’t see anywhere outside of the login that I can’t get in to, to be able to do any of this, it’s so frustrating, I am also waiting for a new recovery link to be sent but it hasn’t come.

    Thread Starter raelenel

    (@raelenel)

    @humayonk is there any way you can help me with this?

    Thread Starter raelenel

    (@raelenel)

    If I roll the WordPress version back to 5.1.15 which is what it was on before will it take away all my trouble or make it worse due to the other upgrades on the plugins? How do I roll the plugins back?

    Hi, no rolling back I think would cause more problems and probably completely destroy everything.
    Please activate debugging and post any errors that you can see in the debug log, if any..

    Debugging in WordPress

Viewing 15 replies - 1 through 15 (of 25 total)

The topic ‘Broken website after plugin updates’ is closed to new replies.