Error when update and markups do not work anymore

Version v5.11.29-C172

Environment: Self hosted, Debian 12, PHP 8.3, Apache2, MariaDB

Checklist

  • Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja?
    • No
  • Have you searched existing issues?
    • Yes
  • Have you inspected the logs in storage/logs/laravel.log for any errors?
    • Yes, and l it is strange - laravel.log has no new entries

Describe the bug

Markups in documents (like ###) are not parsed anymore. Update (and forced update) give this error (APP_DEBUG is true):
500: Internal Server Error • The command "ninja:design" does not exist.

Steps To Reproduce

  • Update Invoice Ninja from the Flutter web page
  • Error appears, but app is updated and it works (except markups)

Expected Behavior

After update I expect no errors and markups working.

Additional context

I try composer i -o --no-dev and php artisan optimize and also force install again, but markups still do not work.

Screenshots

Logs

  • This is strange - there are no new entry or errors in laravel.log
  • Error is shown only at the end of the update process and nowhere in logs

Hi,

This may be a bug, I suggest following up on GitHub

1 Like

Hi,

I see that bug #10587 is closed as fixed. I’ve made update, and then force update to the latest version (v5.11.31-C172) and now error after update is gone.

But the ### markups still do not work. Maybe I miss something?

This is what I see.

Hi, this is what I see in PDF:

I tried these and the output is fine:

sudo -u www-data php artisan ninja:check-data
sudo -u www-data php artisan optimize
sudo -u www-data composer i -o --no-dev

In the log I can see only this:

[2025-01-26 23:30:02] production.INFO: updating currencies
[2025-01-27 06:20:02] production.INFO: Performing Autobilling 2025-01-27 06:20:02

Also forced reinstall do not produce any errors.

Experiencing this issue as well trying to use the self updater to go to v5.11.32.

I also raised an issue here: Self Updater - Server Error 500 but update seems to complete. · Issue #10571 · invoiceninja/invoiceninja

There isn’t any more detailed errors showing up anywhere but nothing has changed with my webserver or its config, I’ve only been using the self updater and a few versions back this Error 500 started appearing. In this update more information is presented as "the command “ninja:design” does not exist.

I haven’t been doing anything with markups. It should be noted that the update does complete again, but throws this error at the end.

@kylegp

Thanks, this last error is a known one which wont appear in the next release.

One this to help debug this, when you are performing the self upder, open the browser console (F12) and watch the timer, if it exceeds 30 seconds, my guess is the browser and server are disconnecting, and this is the error you are seeing.

Currently the upgrade is a “sync” operation

Markups works again in v5.11.33-C172

1 Like