Editor shows strange problem "A system error has occurred"

Editor shows strange problem "A system error has occurred"

zipperzipper Posts: 35Questions: 9Answers: 0
edited March 2017 in Free community support

This worked fine before; but now whenever I submit from editor by add/edit/remove, I always get this problem. Please help to check the test case at 54.250.163.77/6 --> "Product Mgmt.", click new or edit icon at the right hand side and submit to reoccur, thanks.

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    This worked fine before; but now....

    So what changed?

    Also, what do you learn from using the developer tools explained in the "More information" link?

  • zipperzipper Posts: 35Questions: 9Answers: 0

    @tangerine, sorry I cannot figure out what changed -- nothing changed at that part. in the "More information" link it talked about how to trace the request and response in chrome and I checked there seems no problem with both the request and response. May you just check the test case and help. Thanks.

  • allanallan Posts: 63,873Questions: 1Answers: 10,528 Site admin

    This is what the server is returning:

    /**/ typeof jQuery22408866259736854201_1490885871852 === 'function' && jQuery22408866259736854201_1490885871852({"data":[{"DT_RowId":"row_1","product":{"id":"1","name":"as_o_agent","catalog_id":"1","description":"acting as origination agent","create_time":"2017-3-18 14:12:47","status_id":"3"},"product_catalog":{"name":"Nibiru"},"product_status":{"name":"suspend"}}]});
    

    That leading typeof shouldn't be there. The comment part shouldn't really either.

    Allan

  • zipperzipper Posts: 35Questions: 9Answers: 0
    edited March 2017

    Hi @allan, I don't know why that part is there. I'm using Node.js, and uses "res.jsonp(res_contents)" to return the contents. If check the return by clicking the "Product Mgmt." it also includes "/**/ typeof" as the header, but it works fine, it shows the table correctly, so I'd thought that is fine. More specificly:

    Bellow works fine for jquery ajax:

    http://54.250.163.77/tst6?callback=jQuery224003770785812553479_1490887848742&action=init&mgmt_node=product&_=1490887848743
    /**/ typeof jQuery224003770785812553479_1490887848742 === 'function' && jQuery224003770785812553479_1490887848742({"data":[{"DT_RowId":"row_1","product":{"id":1,"name":"as_o_agent","catalog_id":1,"description":"acting as origination agent","create_time":"2017-3-18 14:12:47","status_id":1},"product_catalog":{"name":"Nibiru"},"product_status":{"name":"pre-active"}},{"DT_RowId":"row_2","product":{"id":2,"name":"as_t_agent","catalog_id":1,"description":"acting as termination agent","create_time":"2017-3-18 14:13:18","status_id":2},"product_catalog":{"name":"Nibiru"},"product_status":{"name":"active"}},{"DT_RowId":"row_3","product":{"id":3,"name":"1000_data","catalog_id":1,"description":"1000 Mb monthly data1","create_time":"2017-3-18 15:31:29","status_id":2},"product_catalog":{"name":"Nibiru"},"product_status":{"name":"active"}},{"DT_RowId":"row_4","product":{"id":4,"name":"0300_data","catalog_id":1,"description":"300 Mb monthly data","create_time":"2017-3-18 15:32:04","status_id":2},"product_catalog":{"name":"Nibiru"},"product_status":{"name":"active"}},{"DT_RowId":"row_5","product":{"id":5,"name":"","catalog_id":1,"description":"","create_time":"2017-3-30 14:38:42","status_id":2},"product_catalog":{"name":"Nibiru"},"product_status":{"name":"active"}},{"DT_RowId":"row_6","product":{"id":6,"name":"something","catalog_id":1,"description":"","create_time":"2017-3-30 14:39:50","status_id":2},"product_catalog":{"name":"Nibiru"},"product_status":{"name":"active"}}],"options":{"product.catalog_id":[{"value":1,"label":"Nibiru"}],"product.status_id":[{"value":2,"label":"active"},{"value":4,"label":"deactive"},{"value":1,"label":"pre-active"},{"value":3,"label":"suspend"}]},"tb_name":"product","tb_fields":["product.id","product.name","product_catalog.name","product.description","product.create_time","product_status.name"],"tb_titles":["ID","Product Name","Catalog","Description","Create Time","Status"],"tb_visible":[true,true,true,true,true,true],"tb_disabled_fields":["product.id","product.create_time"],"tb_editable":true,"show_sub_table":false,"show_extra_contents":false});
    

    Bellow has problem for the editor built-in communication:

    http://54.250.163.77/tst6?callback=jQuery224003770785812553479_1490887848742&action=edit&data%5Brow_1%5D%5Bproduct%5D%5Bid%5D=1&data%5Brow_1%5D%5Bproduct%5D%5Bname%5D=as_o_agent&data%5Brow_1%5D%5Bproduct%5D%5Bcatalog_id%5D=1&data%5Brow_1%5D%5Bproduct%5D%5Bdescription%5D=acting+as+origination+agent&data%5Brow_1%5D%5Bproduct%5D%5Bcreate_time%5D=2017-3-18+14%3A12%3A47&data%5Brow_1%5D%5Bproduct%5D%5Bstatus_id%5D=2&mgmt_node=product&sub_table=false&_=1490887848744
    /**/ typeof jQuery224003770785812553479_1490887848742 === 'function' && jQuery224003770785812553479_1490887848742({"data":[{"DT_RowId":"row_1","product":{"id":"1","name":"as_o_agent","catalog_id":"1","description":"acting as origination agent","create_time":"2017-3-18 14:12:47","status_id":"2"},"product_catalog":{"name":"Nibiru"},"product_status":{"name":"active"}}]});
    
  • allanallan Posts: 63,873Questions: 1Answers: 10,528 Site admin

    It appears that jQuery is attempting to parse the entire callback as JSON which isn't correctly. It should only be using the data in the callback function.

    Could you try removing: async: false, from the Editor Ajax configuration?

    If that doesn't fix it, does one of your other tables work correctly so I compare them?

    Allan

  • zipperzipper Posts: 35Questions: 9Answers: 0

    I just removed it sir but still get the problem. May you check again.

  • zipperzipper Posts: 35Questions: 9Answers: 0
    edited March 2017

    Other tables please try "Product Bundle Mgmt." and "Customer Mgmt." (but I still not make the response part for the editor at the server side yet).

  • allanallan Posts: 63,873Questions: 1Answers: 10,528 Site admin

    The link above isn't loading for me at the moment I'm afraid. Server can't be reached.

    Allan

  • zipperzipper Posts: 35Questions: 9Answers: 0

    the aws ec2 sometimes not stable. so I restarted the vm and now the test case address changed to : 54.250.178.45/6

  • zipperzipper Posts: 35Questions: 9Answers: 0

    Is it possible the problem been introduced by Editor v1.6.1?

  • allanallan Posts: 63,873Questions: 1Answers: 10,528 Site admin

    Is it possible the problem been introduced by Editor v1.6.1?

    Its possible, but I would be surprised since no one else has reported this.

    You said before that it used to work. Did ti stop working when you updated to 1.6.1?

    I've just tried submitting an item from the Product Bundle Mgmt table, but it is just "Pending" a response from the server-side forever. It looks like the server side script for that is hanging.

    Allan

  • zipperzipper Posts: 35Questions: 9Answers: 0

    previously I downloaded 1.6.0 trail and expired. since I still did not finish the evaluation of all the features/functions I need, I prefer to purchase a bit later. So I downloaded by another ID a couple of days ago the 1.6.1 trail to continue the test, and the problem happened. Is there a way I get another 1.6.0 trail? thanks.

  • allanallan Posts: 63,873Questions: 1Answers: 10,528 Site admin

    It would be good if we could fix this for 1.6.1 since 1.6.2 is on its way. What I'll do is package up a 1.6.2 dev trial for you and send that over.

    Allan

This discussion has been closed.