User Details, User Management shows a gray panel with no info

As stated, there is no UI to add a user, just a gray panel. I couldn’t see any button to add a user. There are no errors in the logs.

Additionally, I can’t add a logo or log out!

A pointer in any direction will be helpful.

This is an install on a Droplet of Ubuntu 20.04.

Thanks!

Hi,

Let’s try to tackle one issue at a time…

Are there any errors in the logs in storage/logs/ when you try to upload a logo?

Thanks for the reply!

I didn’t see any yesterday, but I do today.

 Error Output:
Error Output:
[2021-03-05 00:00:04] production.ERROR: Check data failed!!
[2021-03-05 01:34:34] production.ERROR: Check data failed!!
[2021-03-05 01:35:11] production.ERROR: Class 'App\Services\PdfMaker\Designs\Plain' not found {"exception":"[object] (Error(code: 0): Class 'App\
\Services\\PdfMaker\\Designs\\Plain' not found at /var/www/html/invoiceninja/app/Console/Commands/DesignUpdate.php:52)
[2021-03-05 01:42:30] production.ERROR: Class 'App\Services\PdfMaker\Designs\Plain' not found {"exception":"[object] (Error(code: 0): Class 'App\
\Services\\PdfMaker\\Designs\\Plain' not found at /var/www/html/invoiceninja/app/Console/Commands/DesignUpdate.php:52)
[2021-03-05 01:42:34] production.ERROR: Check data failed!!

I also just cleared out the log, and tried adding the logo (it’s a .png file). No errors.

@david, @ben do you have any ideas?

@undrwater

It sounds like a permissions error, did you follow one of our install guides to setup the app?

I followed the official docs and this one:
https://forum2.invoiceninja.com/t/install-invoice-ninja-v5-on-ubuntu-20-04/4588

All directories are owned by the nginx user ‘www-data’.
Permissions for directories and files look a bit strange:

drwxr-sr-x 828 www-data www-data     32768 Mar  5 00:04 node_modules
-rw-r-Sr--   1 www-data www-data    510893 Mar  5 00:04 package-lock.json
-rw-r-Sr--   1 www-data www-data      1527 Mar  5 00:04 package.json
-rw-r-Sr--   1 www-data www-data      1296 Oct 19 21:41 phpunit.xml

Here’s a screenshot of what I’m seeing:

Is this a clean install or did you migrate from v4?

The upload logo option is on Settings > Company Details and you can logout by clicking the company dropdown in the top left corner.

@undrwater

Are there any error messages in the browser console?

This is a clean install. The upload logo option “pretends” to work, but nothing actually happens. that gray panel to the right of “User Details” is typical?

Yes:

Failed to load resource: the server responded with a status of 404 ()
knOnUJtjSExLKEi0u6L4…tIsnt6FFafeuh.png:1 
Failed to load resource: the server responded with a status of 404 ()

More browser console errors;

knOnUJtjSExLKEi0u6L4…tIsnt6FFafeuh.png:1 GET https://invoice.domain.com//storage/public/IoJMsPPdgGrqQpUzPG8bG42w…VAKhCBa2Q04el05TqEF93UE1CYYjz/knOnUJtjSExLKEi0u6L4dKcxCe1tIsnt6FFafeuh.png 404
The FetchEvent for "https://invoice.domain.com/" resulted in a network error response: the promise was rejected.
flutter_service_work…a8552e1e40584837a:1 Uncaught (in promise) TypeError: Failed to fetch
/#/:1 Site cannot be installed: Page does not work offline. Starting in Chrome 93, the installability criteria is changing, and this site will not be installable. See https://goo.gle/improved-pwa-offline-detection for more information.
knOnUJtjSExLKEi0u6L4…tIsnt6FFafeuh.png:1 GET https://invoice.domain.com//storage/public/IoJMsPPdgGrqQpUzPG8bG42w…VAKhCBa2Q04el05TqEF93UE1CYYjz/knOnUJtjSExLKEi0u6L4dKcxCe1tIsnt6FFafeuh.png 404

I reinstalled with a different version. Everything seems to be OK so far, though I did run into a problem with the setup detailed below:

Install went fine. Upon setup, where the database and email are prompted, everything showed success. However, once one presses the submit button, I was returned back to the setup screen.

Checking laravel.log, there was an error stating there was no “account” table in the database. Checking with mysql, there was an “accounts” table, but no “account”. I created an empty “account” table, and I was able to proceed.

Everything else seems good. Thanks!

I don’t think manually creating the accounts table is a good solution. I suggest starting over, if you see the error again you should be able to resolve it by running php artisan migrate.

1 Like