Edited to add last paragraph…
Self-hosted v4.5.19 on Ubuntu 16.04 with PHP 7.3 7.2
I’m not sure if these 2 things are related or not, but for several weeks now the iOS App has been having issues. These are the symptoms:
- Dashboard Overview screen just shows spinning circle (no data)
- Dashboard Activity correctly displays
- Data entered into any of the fields of a Quote, Invoice, Product, etc. is not shown on screen, but if I just pretend like I can “see” it, and enter all fields then save, it does create correct invoice and PDF shows all data. Example: click calendar icon to select Invoice/Due date and hit ok, field appears blank, even though it actually is saving my entries as evidenced by viewing the PDF.
- Overview screen of any client’s “Paid to Date” and “Balance Due” is blank
- Clicking
Refresh Data
in Settings produces the following Deserialization error:
Everything appears to be working from a browser on computer, with the exception of Migration, which brings me to next issue.
I installed a fresh copy of v5 on a separate VPS instance running Ubuntu 20.04 and PHP 7.4. I created a DB and made sure to use the same email to register account. I setup SSL cert, changing my URL from https://invoice.mydomain.com
to https://myinvoice.mydomain.com
, using the new Nginx template. Upon reaching the Setup screen I entered all information, receiving a “Success” message after clicking each “Test” button (ie. Database and SMTP).
Then I went back to v4, logged in and went to start Migration. Proceeded through steps, which seemed pretty normal, except for the screen which asks which company you are migrating because it only gave me what appears to be a random string of characters rather than actual company name, but assume this is just the ID for company “under the hood” so to speak.
Ultimately, the migration ends with “Whoops, looks like something went wrong” error (below):
1. So, are these two issues related?
2. How can I resolve them?
EDIT: So while troubleshooting these errors I found that some of the files in the invoiceninja
directory of my v4 installation, which is at /var/www/html/invoiceninja
had incorrect permissions (ownership). Some were owned by root
, others by www-data
, which is the correct owner (I think). Thus, I ran the following commands and tried to migrate again, though it still resulted in the same “Whoops, looks like something went wrong error”:
sudo chown -R www-data:www-data /var/www/html/invoiceninja
sudo chmod -R 775 /var/www/html/invoiceninja/storage
sudo chmod -R g+s /var/www/html/invoiceninja/storage
Lastly, this error is repeated several times in the laravel-error.log
file:
[2020-10-27 22:01:52] production.ERROR: ***ErrorException*** [0] : /var/www/html/invoiceninja/app/Traits/GenerateMigrationResources.php [Line 770] => Undefined offset: 1 {"context":"PHP","user_id":1,"account_id":1,"user_name":"Josh Madrone","method":"POST","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15","locale":"en","ip":"47.208.10.222","count":3,"is_console":"no","is_api":"no","db_server":"mysql","url":"migration/companies"} []
Any help would be much appreciated!!!