• Resolved stakehol

    (@stakehol)


    Hi,

    I have been facing two errors in tutor lms and I can’t find a way to fix them:

    1) Everytime I try to change my profile or cover photo from the dashboard it gives me an error saying: ‘something went wrong.’

    2) When I try to open an Instructors profile it just redirects me to the homepage.(mywebsite.com/profile/instructor-name)

    Can someone please help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @stakehol,

    Did you try after increasing PHP memory limit on your server?

    Did you check for theme/plugin conflict?

    Please send email to support at themeum dot com along with your site info details because this requires a deeper look at your issues. Let us know your PHP, WordPress, Tutor LMS versions and name of the theme currently active.

    Thread Starter stakehol

    (@stakehol)

    Yes i tested for theme/plugin conflict. Could you tell me how to increase PHP memory limit on my server?

    Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @stakehol,

    The cover photo is not uploading because of this function
    mime_content_type( $file_path ) in this

    wp-content/plugins/tutor/classes/User.php

    file liner number 112.
    This function is not returning any mime type that’s why you are getting 0(zero) on the ajax call. Now, you need to use this function instead:

    $getimagesize = getimagesize($file_path);
    $mimeType = $getimagesize['mime'];
    Thread Starter stakehol

    (@stakehol)

    Hello @stakehol,

    The cover photo is not uploading because of this function
    mime_content_type( $file_path ) in this

    wp-content/plugins/tutor/classes/User.php

    file liner number 112.
    This function is not returning any mime type that’s why you are getting 0(zero) on the ajax call. Now, you need to use this function instead:

    $getimagesize = getimagesize($file_path);
    $mimeType = $getimagesize[‘mime’];

    Hi @jobayertuser,

    i updated the code and im no longer getting the error. But after uploading the picture as soon as i click update profile the picture disappears and it shows the default image of a user with no profile photo

    Plugin Support Md. Jobayer Al Mahmud

    (@jobayertuser)

    Hello @stakehol,

    Can you please send a mail to our email support at themeum dot com we need check the issue properly accessing your site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Tutor LMS help’ is closed to new replies.