Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter smadonnatore

    (@smadonnatore)

    Hi,
    I splitted the backup size as per your instructions.
    Same result.
    All the created backups have 0kb size.
    If I make a manual backup everything is ok.

    Thread Starter smadonnatore

    (@smadonnatore)

    Both.
    In the ftp folder the backups files are available but they all have 0kb size.
    From UpdraftPlus dashboard they are all available, but when I try to download them a blank page appears with the message “File not found”.

    Thread Starter smadonnatore

    (@smadonnatore)

    Hi,
    here you go

    https://pastebin.com/gMKGT7CY

    I’ve obscured some path/url info in the file.

    Thanks

    Thread Starter smadonnatore

    (@smadonnatore)

    Hi Jeff,
    I’m afraid this doesn’t work.
    Even the action is not fired while visiting an admin page.
    I checked the code and it seems that the section where the user is redirected is this one:

    public function init() {
    		global $current_user, $pagenow;
    
            if ( is_user_logged_in() && is_admin() ) {
    			$redirect_to = Theme_My_Login::get_page_link( 'profile' );
    
    			$user_role = reset( $current_user->roles );
    			if ( is_multisite() && empty( $user_role ) )
    				$user_role = 'subscriber';
    
    			if ( 'profile.php' == $pagenow && ! isset( $_REQUEST['page'] ) ) {
    				if ( $this->get_option( array( $user_role, 'theme_profile' ) ) ) {
    					if ( ! empty( $_GET ) )
    						$redirect_to = add_query_arg( (array) $_GET, $redirect_to );
    					wp_redirect( $redirect_to );
    					exit;
    				}
    			} else {
    				if ( $this->get_option( array( $user_role, 'restrict_admin' ) ) ) {
    					if ( ! defined( 'DOING_AJAX' ) ) {
    						wp_redirect( $redirect_to );
    						exit;
    					}
    				}
    			}
            }
    	}

    Maybe this happens before triggering the tml_modules_loaded action ?
    Jeff,
    I think you should push an update for this as this is actually a bug, because WP allows calls to admin-post.php for not logged users.

    Thread Starter smadonnatore

    (@smadonnatore)

    Hi,
    the exact version is 6.4.17.
    Yes it allows ajax calls, but it should allow post calls to admin-post.php too as in WP is possible to define calls for logged and not logged users

    eg.

    add_action( 'admin_post_add_foobar', 'prefix_admin_add_foobar' );
    //this next action version allows users not logged in to submit requests
    //if you want to have both logged in and not logged in users submitting, you have to add both actions!
    add_action( 'admin_post_nopriv_add_foobar', 'prefix_admin_add_foobar' );
    Thread Starter smadonnatore

    (@smadonnatore)

    Hi Jeff,
    I purchased the new extensions, but the porting to the new TML plugin will be done in the next months by our staff.
    Currently, we use the 6.4.17 version.
    The problem is that if I restrict a specific role form seeing the admin area the plugins blocks every call to admin-post.php.
    Is there a way of allowing it thus restricting the full admin area to the role?

    Thanks for your time.
    Simone

    Thread Starter smadonnatore

    (@smadonnatore)

    Update to latest versionn…validation errors still present.

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