• erfanit

    (@erfanit)


    After upgrading to TUTOR LMS 2.0,
    -Inside the dashboard, the “MY PROFILE” tab does not work properly.
    -After clicking on the My Profile tab, the website changes to the mobile version, and an error message appears indicating your WordPress website has a problem (with a link to the WordPress troubleshooting page).
    -All other tabs are working fine.
    -By rolling back to the previous version of TUTOR LMS the problem is solved.
    -I am using Customizr theme.

    Could you please help me solve the issue?

    • This topic was modified 3 years ago by erfanit.
Viewing 4 replies - 1 through 4 (of 4 total)
  • potel

    (@potel)

    Dude, the same thing happens to me when I click on the “My Profile” link, it doesn’t show anything, everything is blank on the side. Hope they get a solution!

    avacher

    (@avacher)

    +1 Same issue on my website

    avacher

    (@avacher)

    Fixed it by applying this.

    Go here /plugins/tutor/classes/Utils.php ,

    here line 9417 function this convert_date_into_wp_timezone
    full function replace with this function

    public function convert_date_into_wp_timezone( string $date ){
        $date_format = get_option('date_format');
        $time_format = get_option('time_format');
        $date = date("{$date_format} {$time_format}",  strtotime( wp_get_current_user()->user_registered ));
        return $date;
        }
    largbasket

    (@largbasket)

    Dear @erfanit

    Go to the page: /plugins/tutor/classes/Utils.php
    
    Then, find the Code Block:
    
    public function convert_date_into_wp_timezone( string $date ): string {
        	$date = new \DateTime( $date );
        	$date->setTimezone( wp_timezone() );
        	return $date->format( get_option( 'date_format' ) . ', ' . get_option( 'time_format' ) );
    }
    
    Finally, replace with the Code:
    
    public function convert_date_into_wp_timezone( string $date )
    {
    	$date_format = get_option('date_format');
    	$time_format = get_option('time_format');
    	$date = date("{$date_format} {$time_format}",  strtotime( wp_get_current_user()->user_registered ));
    	return $date;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“My Profile” Tab problem on TUTOR 2.0’ is closed to new replies.