500 Error When Saving Existing Model after 2.0 upgrade

Created on 20 June 2024, 6 months ago
Updated 10 September 2024, 3 months ago

Problem/Motivation

This is my first time logging an issue so please be patient and I will try to provide more info if possible. I upgraded to version 2.0.0 of ECA (as well as BPMN.io) today. 3 of the 10 existing models that I have, when I try to save them (even when not making any changes), I get an error. When I look at my developer console, this is part of what I see. Some of these models are very complex and I certainly don't want to recreate them from scratch. Any thoughts here?

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /admin/config/workflow/eca/bpmn_io/save
StatusText: error
ResponseText: [{"command":"settings","settings":{"pluralDelimiter":"\u0003","suppressDeprecationErrors":true,"user":{"uid":"1","permissionsHash":"is-admin"}},"merge":true},{"command":"add_js","selector":"body","data":[{"src":"\/core\/misc\/drupalSettingsLoader.js?v=10.3.0-rc1"},{"src":"\/core\/misc\/drupal.js?v=10.3.0-rc1"},{"src":"\/core\/misc\/drupal.init.js?v=10.3.0-rc1"},{"src":"\/core\/misc\/debounce.js?v=10.3.0-rc1"},{"src":"\/core\/misc\/announce.js?v=10.3.0-rc1"},{"src":"\/core\/misc\/message.js?v=10.3.0-rc1"},{"src":"\/core\/themes\/claro\/js\/messages.js?sfcxg4"}]},{"command":"message","message":"Successfully saved the model.","messageWrapperQuerySelector":null,"messageOptions":{"type":"status"},"clearPrevious":true}]

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dbdrupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dbdrupal
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Hi @dbdrupal, sorry to hear you're having such a problem. To see what's going on we would require done log information. Could you please check of there is anything in the Drupal or the php logs?

    Otherwise, could you please export one of the models and send it to us for review?

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Ah, and one more question: have you gone through the steps to update, that are described in the release notes? Has all that gone without issues?

  • πŸ‡ΊπŸ‡ΈUnited States dbdrupal

    Per Jurgen's suggestion, I ran something I did not initially which was the drush eca:update. This did not solve the problem and I am uploading an export of the module per his suggestion. Thank you.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Thanks @dbdrupal for sharing your model. I can report that the model can be imported, opened and saved without any issue.

    That's a bit unfortunate, since reproducing the problem would have been much better, as it would have helped to find the problem.

    It seems as if the problem is somewhere in your Drupal installation. To further analyse that, we need more information. The console output from above tells us, that there was a so called 500 error. That means, PHP ran into a severe problem. Usually, this writes some logs either in Drupal under /admin/reports/dblog or directly into the PHP error log. The location of the latter depends upon your system setup.

    Any chance you could reach out and find more information in either of those?

  • πŸ‡ΊπŸ‡ΈUnited States dbdrupal

    I will keep poking around @jurgenhaas, but there is nothing in the dblog for this issue and I'm not finding anything in my PHP error log either. Very odd. I will try to find some time this weekend to look deeper and report back on my findings.

  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    This is a great analysis. Does that mean that even if you start a new model and only add a Token: Set Value task and then save, that it already fails?

    I've looked into that plugin and there isn't anything special with it.

    Not sure if you could go as far as trying with a fresh Drupal installation and see if the same happens there?

    In any event, you could add the following 3 lines to the end of your settings.php and see if you then get some error messages somewhere. Probably, the error message in the browser console may contain more detail after that.

    error_reporting(E_ALL);
    ini_set('display_errors', TRUE);
    ini_set('display_startup_errors', TRUE);
    
  • πŸ‡ΊπŸ‡ΈUnited States dbdrupal

    Thanks Jurgen. I added these to settings.php and it isn't capturing anything new nor is there more information on the browser console (I"m using Chrome). From what I can tell, while this is super annoying and I want to figure it out, it is not keeping my models from saving or running correctly so for the time being, I will just need to deal with it. At some point, I will stand up a new instance of Drupal 10.3 and see if I continue to have this issue. In the meantime, thank you for addressing this for me. I think it is fair to close out this issue as it is a non-issue for the code base and must be something with my environment.

  • Status changed to Postponed: needs info 6 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Really sorry for this to happen. I wish we could address this more efficiently. I mean, with xdebug that would be fairly straightforward to get to the roots of this. But not many have an environment where xdebug is available. If in any way possible and you could dump your database into a file and let me get my hands on it, I'd be happy to debug that for you. But of course, I understand if that's not an option.

    ... it is not keeping my models from saving or running correctly ...

    Are you saying it saves the model correctly and still comes back with an error message?

    In any event, I'd like to keep this open so that we can always get back to it when possible. Marking as postponed and as a support request, though.

  • Status changed to Fixed 4 months ago
  • πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

    Marking as fixed as I don't know what else we can do.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024