lms icon indicating copy to clipboard operation
lms copied to clipboard

Wasn't able to upload Image through classess!

Open asharamseervi opened this issue 2 years ago • 11 comments

Describe the bug I was exploring LMS and found, I wasn't able to attach image through Front-end despite having Administrator role!

To Reproduce Steps to reproduce the behavior:

  1. Create a new course, click over attach image button.
  2. It will open dialogue box for attaching image with uploading button.
  3. Attaching isn't working as expected.
  4. Refer console errors:
  • Uncaught ReferenceError: Vue is not defined
  • Uncaught TypeError: this.uploader is undefined

Screenshots attach-image-from-course

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • OS: Ubuntu 20
  • Browser: Firefox
  • Frappe Version: v14

asharamseervi avatar Dec 12 '22 06:12 asharamseervi

@asharamseervi is there any error in the console? Can you attach a screenshot of the same?

pateljannat avatar Dec 12 '22 08:12 pateljannat

Yes, there are! I already shared reference of those console log error's titles; let'me share detailed log:

Uncaught ReferenceError: Vue is not defined
    Uncaught ReferenceError: Vue is not defined
    FileUploader index.js:31
    show_upload_modal new-course:1695
    <anonymous> new-course:1417
    jQuery 2
index.js:31:2
Uncaught TypeError: this.uploader is undefined
    Uncaught TypeError: this.uploader is undefined
    on_page_show index.js:116
    make dialog.js:111
    jQuery 7
    transitionComplete2 modal.js:294
    fn jQuery
    handle util.js:35
    jQuery 8
    _showElement modal.js:301
    show modal.js:145
    fn jQuery
    handle util.js:35
    jQuery 8
    _showBackdrop modal.js:407
    show modal.js:145
    Modal2 modal.js:551
    jQuery 2
    _jQueryInterface modal.js:534
    show dialog.js:210
    make_dialog index.js:121
    FileUploader index.js:26
    show_upload_modal new-course:1695
    <anonymous> new-course:1417
    jQuery 2
index.js:116:4
Uncaught TypeError: this.uploader is undefined
    Uncaught TypeError: this.uploader is undefined
    upload_files index.js:103
    primary_action index.js:110
    set_primary_action dialog.js:165
    jQuery 8
    set_primary_action dialog.js:158
    set_primary_action bootstrap-4-web.bundle.js:55
    make dialog.js:55
    make bootstrap-4-web.bundle.js:63
    Dialog dialog.js:17
    Dialog2 bootstrap-4-web.bundle.js:44
    make_dialog index.js:107
    FileUploader index.js:26
    show_upload_modal new-course:1695
    <anonymous> new-course:1417
    jQuery 2
index.js:103:2

asharamseervi avatar Dec 12 '22 09:12 asharamseervi

I am unable to replicate this issue on my site. Can you please make sure that your site is up to date and try again. What branch of LMS is your site on?

pateljannat avatar Dec 14 '22 05:12 pateljannat

Hi pateljannat, I has found the same issue in my system, can you fix it?

  1. Upload image for change cover course photo
  2. Can't not click Upload button to upload photo

I am unable to replicate this issue on my site. Can you please make sure that your site is up to date and try again. What branch of LMS is your site on?

Capture

duc-nq avatar Jan 27 '23 17:01 duc-nq

@duc-nq What version of Frappe is your site on?

pateljannat avatar Feb 06 '23 04:02 pateljannat

@duc-nq What version of Frappe is your site on?

My LMS site install on ERPnext version 14. Could you help me check this issue?

duc-nq avatar Feb 06 '23 04:02 duc-nq

@duc-nq It works fine with develop branch of Frappe. I'll check why its not working on v14.

pateljannat avatar Feb 06 '23 04:02 pateljannat

@duc-nq It works fine with develop branch of Frappe. I'll check why its not working on v14.

Do you want check on my site?. I will send to you the account to login my site. You can check this more quickly.

duc-nq avatar Feb 06 '23 05:02 duc-nq

@duc-nq sure if you can share the information that would help.

pateljannat avatar Feb 09 '23 09:02 pateljannat

how to fix it?

jaosnxh avatar Mar 07 '23 02:03 jaosnxh

微信图片_20230309112531 微信图片_20230309112440 how to fix it?

jaosnxh avatar Mar 09 '23 03:03 jaosnxh

works fine with the latest version

pateljannat avatar Jun 07 '24 07:06 pateljannat