ERPNEXT issue, unable to upload image using the ACE EDITOR

hello all,

i am unable to upload the image using the ACE EDITOR.

the file is getting uploaded successfully but then i am getting an error at the "TypeError: this.get_attachments(...) is undefined"

how can i fix this ??

thanks.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/9f47c652-ac9f-4b88-883b-7ca21bbcb27d%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
i am currently using an older version of ERPNEXT which is .. ERPNEXT - 1310 ( branch )

On Wednesday, 26 March 2014 15:21:48 UTC+3, Syed Qadeer wrote:
hello all,

i am unable to upload the image using the ACE EDITOR.

the file is getting uploaded successfully but then i am getting an error at the "TypeError: this.get_attachments(...) is undefined"

how can i fix this ??

thanks.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2faeb9f8-7ad0-40ce-8737-4b3ba91f58d9%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
We have deprecated the Ace Editor in the newer versions. It is too heavy and slows down the browser.

best,
Rushabh

On Wednesday, March 26, 2014 5:51:48 PM UTC+5:30, Syed Qadeer wrote:
hello all,

i am unable to upload the image using the ACE EDITOR.

the file is getting uploaded successfully but then i am getting an error at the "TypeError: this.get_attachments(...) is undefined"

how can i fix this ??

thanks.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/d6284cc8-d8d4-4f4a-97ee-e75f47982396%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Yes,i have seen that in the newer version ,since we are still using the older version , could you please guide on how to fix that error ??

Thanks

Syed.

On Thursday, 27 March 2014 08:20:40 UTC+3, rushabh wrote:
We have deprecated the Ace Editor in the newer versions. It is too heavy and slows down the browser.

best,
Rushabh

On Wednesday, March 26, 2014 5:51:48 PM UTC+5:30, Syed Qadeer wrote:
hello all,

i am unable to upload the image using the ACE EDITOR.

the file is getting uploaded successfully but then i am getting an error at the "TypeError: this.get_attachments(...) is undefined"

how can i fix this ??

thanks.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e98ed9ee-79d2-4709-b2c4-48ced52eac4a%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Hi Syed,

Can you send a link to the github code with that specific line number, so that we can see it? Without it, we wouldn't be able to help.

Thanks,
Anand.



On Thu, Mar 27, 2014 at 11:00 AM, Syed Qadeer <sd…@gmail.com> wrote:

Yes,i have seen that in the newer version ,since we are still using the older version , could you please guide on how to fix that error ??

Thanks

Syed.


On Thursday, 27 March 2014 08:20:40 UTC+3, rushabh wrote:
We have deprecated the Ace Editor in the newer versions. It is too heavy and slows down the browser.

best,
Rushabh

On Wednesday, March 26, 2014 5:51:48 PM UTC+5:30, Syed Qadeer wrote:
hello all,

i am unable to upload the image using the ACE EDITOR.

the file is getting uploaded successfully but then i am getting an error at the "TypeError: this.get_attachments(...) is undefined"


how can i fix this ??

thanks.



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e98ed9ee-79d2-4709-b2c4-48ced52eac4a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAAQzbF2r19xifDRKuwjLb6XjufEsQ96WOYtmf8g%3DC4ALbLimjg%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.






and the line number of the github is : https://github.com/webnotes/wnframework/blob/1310/public/js/wn/form/attachments.js#L150

it seems that :
get_attachments: function() {
return this.frm.get_docinfo().attachments;
},

this.frm.get_docinfo().attachments; is returning empty or null or undefined.

please look into this.

Thanks.







Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/23dfdb0e-6f6e-4e42-a1ad-3f057e32f062%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.