Home / Forums / DynamiX Support / Logging into Admin Issue

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Andy
    Andy
    Keymaster

    Hi all,

    Over the past few days the ThemeForest site came under attack which meant the Themes could not use the API to check for updates. This has led to users not being able to access their admin.

    ThemeForest are aware of the theme are addressing it. See these topics here:

    http://themeforest.net/forums/thread/ongoing-ddos-attacks-on-envato-market-ftp-file-upload-affected/184299
    http://themeforest.net/forums/thread/envato-api-problem/184308

    Solution
    The easiest way to bypass this check is to edit DynamiX/options.php and remove the following section of code:

    	// Check for Theme Updates
    	if( of_get_option( 'tf_username' ) != '' && of_get_option( 'tf_apikey' ) != '' ) 
    	{		
    		include_once( get_template_directory() . '/lib/adm/inc/theme-updates/class-envato-wordpress-theme-upgrader.php' );
    		
    		$upgrader = new Envato_WordPress_Theme_Upgrader( of_get_option( 'tf_username' ) , of_get_option( 'tf_apikey' ) );
    		$theme_update = $upgrader->check_for_theme_update( wp_get_theme()->Name, $allow_cache = false );	
    		$current_theme = wp_get_theme();		
    	
    		if ( ( $theme_update->latest_version - $current_theme->get('Version') ) > 0 && ! $theme_update->errors > 0 )
    		{
    			add_action( 'admin_notices', 'acoda_theme_update_admin_notice' );	
    	
    			function acoda_theme_update_admin_notice()
    			{
    				$message = sprintf( __( "An update for the theme is available! Head over to %s to update it now.", "themeva-admin" ),
    					"<a href='" . admin_url() . "admin.php?page=options-framework#themeupdates'>Theme Updates</a>" );
    				echo "<div id='message' class='updated'><p>{$message}</p></div>";
    			}	
    			
    			$options[] = array(
    				'name' => __( 'Version '. $theme_update->latest_version .' is Available!', 'themeva-admin'),
    				'type' => 'info',
    				'desc' => '<p>Your current version <strong>'. $current_theme->get('Version') .'</strong> needs to be updated. Please click the update button below to update to <strong>version '. $theme_update->latest_version .'</strong></p>
    				<p class="ajax-theme-update-message"></p>
    				<a href="#">'. __( 'Update Theme', 'optionsframework' ) .'</a>
    				',		
    			);	
    		}
    		elseif( $theme_update->errors > 0 )
    		{
    			$options[] = array(
    				'name' => __( 'Incorrect Details', 'themeva-admin'),
    				'type' => 'info',
    				'desc' => '<p>The details entered above appear to be incorrect. Please re-enter your <strong>ThemeForest Username</strong> and <strong>ThemeForest API Key</strong> into the relevant fields.</p>',		
    			);				
    		}
    		else
    		{
    			$options[] = array(
    				'name' => __( $current_theme->get('Name') .' is Up-to-date!', 'themeva-admin'),
    				'type' => 'info',
    				'desc' => '<p>You\'re using the latest version of <strong>'. $current_theme->get('Version') .'</strong>.</p>',		
    			);				
    		}
    	}
    	else
    	{
    		$current_theme = wp_get_theme();
    		$options[] = array(
    			'name' => __( 'Theme Updates', 'themeva-admin'),
    			'type' => 'info',
    			'desc' => '<p>You\'re using version <strong>'. $current_theme->get('Version') .' </strong> of the '. $current_theme->get('Name') .' theme. To check for the latest updates, please enter your <strong>ThemeForest Username</strong> and <strong>ThemeForest API Key</strong> into the above fields.</p>',		
    		);		
    	}

    I’ll keep an eye on this and keep you up to date.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.