Migrating v4 to v5 on Shared Hosting does not finish

After successfully installing v5 on a shared hosting, i wanted to test the migration but it doesnt go through.

On v4 it says the migration has started and i’d get an email when done but i dont receive anything and nothing is changed on v5 installation, the company still shows 0 content.

after 3hrs or so (my v4 only has maybe a couple of hundred invoices), i restarted the migration process again and 2hrs in, still nothing.

Following the original guide and other posts here etc, the only thing missing is the cronjob, i do not have the right to create a cronjob on the server.

storage/logs/laravel.log on v5 shows nothing.

storage/logs/laravel-error.log shows nothing either. (i do not see a laravel.log file in the v4 insallation)

Any thoughts?

** Edit
I forgot to mention im migrating from https://invoices.domain.com to https://invoices.domain2.com

Hi,

Maybe you need to change companies using the selector in the top left corner?

The company exist on v5 but its empty.

Is it possible in v5 you have two companies?

No, I checked… only the ‘Main Company’ and another company i tested with called ‘New Company’ that is also empty.

I never received an email saying the migration was done too.

What i did was this:

  • installed latest version of v5 on invoices.domain2.com (will be the new perm location)
  • logged in the first time, created my company (Same name as in v4)
  • logged into v4 (invoices.domain.com v4.5.19) and went into Account Management and started the migration process
  • followed the steps and picked the company i created in v5
    ** I chose to delete and overwrite everything

@david any suggestions?

I would start by checking the output in the logs file in v5 in storage/logs/laravel.log.

Here is the logs

[2021-08-08 08:37:49] production.INFO: account table not found
[2021-08-08 08:38:42] production.INFO: account table not found
[2021-08-08 08:48:36] production.INFO: account table not found
[2021-08-08 09:03:27] production.INFO: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
[2021-08-08 10:36:49] production.DEBUG: Message-ID: 63e0d4f2667e9b34a304fda4fa643@invoices.domain2.ch
Date: Sun, 08 Aug 2021 10:36:49 +0000
Subject: New login detected for your account.
From: NSI Services Invoice System staff@domain2.ch
Reply-To: FirstName LastName email@address.com
To: email@address.com
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

@import url("https://use.typekit.net/zxn7pho.css"); :root { color-scheme: light dark; supported-color-schemes: light dark; }
    /** Content-specific styles. **/
    #content .button {
        display: inline-block;
        background-color: #298AAB;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-decoration: none;
        font-size: 13px;
        padding: 15px 70px;
        font-weight: 600;
        margin-bottom: 30px;

The rest of the log looks like some email content?

The last log entry is 09:03:27am, its 11:53pm right now, i started another migration process at 11:45pm and nothing is in the log file

I found this in the system logs of v5.

invoices.mydomain2.ch 92.106.127.33 - - [09/Aug/2021:00:03:23 +0200] “POST /api/v1/refresh?current_company=true&updated_at=1628458427&first_load=true HTTP/1.1” 200 109403 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:58:44 +0200] “POST /api/v1/refresh?current_company=true&updated_at=1628458407&first_load=true HTTP/1.1” 200 109403 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:58:25 +0200] “POST /api/v1/refresh?current_company=true&updated_at=1628458129&first_load=true HTTP/1.1” 200 109403 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:58:23 +0200] “GET /flutter_service_worker.js?v=5.2.17 HTTP/1.1” 200 2869 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:58:22 +0200] “GET /flutter_service_worker.js?v=5.2.17 HTTP/1.1” 200 2869 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:58:21 +0200] “GET /main.foss.dart.js?v=5.2.17 HTTP/1.1” 200 2205001 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:58:21 +0200] “GET /js/pdf.min.js HTTP/1.1” 200 54949 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:58:20 +0200] “GET / HTTP/1.1” 200 1622 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:56:33 +0200] “PUT /api/v1/companies/Wpmbk5ezJn? HTTP/1.1” 200 12345 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:56:32 +0200] “PUT /api/v1/users/VolejRejNm?include=company_user HTTP/1.1” 200 1364 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:53:47 +0200] “POST /api/v1/refresh?current_company=true&updated_at=1628457859&first_load=true HTTP/1.1” 200 109403 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:49:16 +0200] “POST /api/v1/login?first_load=true&include_static=true HTTP/1.1” 200 650843 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:48:58 +0200] “POST /api/v1/refresh?current_company=true&updated_at=1628441293&first_load=true HTTP/1.1” 200 104200 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:48:48 +0200] “POST /api/v1/refresh?current_company=true&updated_at=1628457590&first_load=true HTTP/1.1” 200 108878 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:48:47 +0200] “GET /flutter_service_worker.js?v=5.2.17 HTTP/1.1” 200 2869 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:48:44 +0200] “GET /main.foss.dart.js?v=5.2.17 HTTP/1.1” 200 2205001 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:48:45 +0200] “GET /flutter_service_worker.js?v=5.2.17 HTTP/1.1” 200 2869 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.127.33 - - [08/Aug/2021:23:48:44 +0200] “GET /js/pdf.min.js HTTP/1.1” 200 54949 “https://invoices.mydomain2.ch/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 92.106.128.11 - - [08/Aug/2021:23:48:44 +0200] “GET / HTTP/1.1” 200 1622 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0”
invoices.mydomain2.ch 2001:1600:4:b:569f:35ff:fe14:0000 - - [08/Aug/2021:23:48:35 +0200] “POST /api/v1/migration/start/VolejRejNm HTTP/1.1” 404 49 “-” “unirest-php/2.0”
invoices.mydomain2.ch 2001:1600:4:b:569f:35ff:fe14:0000 - - [08/Aug/2021:23:48:21 +0200] “GET /api/v1/companies HTTP/1.1” 200 27546 “-” “unirest-php/2.0”
invoices.mydomain2.ch 2001:1600:4:b:569f:35ff:fe14:0000 - - [08/Aug/2021:23:48:20 +0200] “POST /api/v1/login?include=token HTTP/1.1” 200 216426 “-” “unirest-php/2.0”
invoices.mydomain2.ch 2001:1600:4:b:569f:35ff:fe14:0000 - - [08/Aug/2021:23:47:27 +0200] “POST //api/v1/login?include=token HTTP/1.1” 404 49 “-” “unirest-php/2.0”
invoices.mydomain2.ch 2001:1600:4:b:569f:35ff:fe14:0000 - - [08/Aug/2021:23:47:16 +0200] “POST //api/v1/login?include=token HTTP/1.1” 404 49 “-” “unirest-php/2.0”
invoices.mydomain2.ch 2001:1600:4:b:569f:35ff:fe14:0000 - - [08/Aug/2021:23:47:08 +0200] “POST //api/v1/login?include=token HTTP/1.1” 404 49 “-” “unirest-php/2.0”
invoices.mydomain2.ch 2001:1600:4:b:569f:35ff:fe14:0000 - - [08/Aug/2021:23:46:55 +0200] “POST //api/v1/login?include=token HTTP/1.1” 404 49 “-” “unirest-php/2.0”

I can see the migration starts here " [08/Aug/2021:23:48:35 +0200] “POST /api/v1/migration/start/VolejRejNm HTTP/1.1” 404 49 “-” “unirest-php/2.0”" nothing happens after

Any thoughts?

I tried to do the migration again this morning and nothing is happening either. An no logs this time in apache logs or in laravel logs

Migration is finally successful.

For some reason i thought i was running the latest version of v4, i wasnt, i was 1 version short.

I upgraded to latest v4 update
Double checked the cronjob
Enabled/increased PHP set_time_limit

I created 2 replies on purpose.

I am getting a lot of error 500’s though.

Whenever i make a change into an existing invoice, wether is a refund, adding/removing an item, i would give me this error:

It the change would save though, for example i did a refund, this error 500 popped up, refreshed and it worked.

Another thing is the PDF, it would give me a screenshot of the login page :laughing:

It would not view a sample in the invoice page and if i download the PDF it would show like in the screenshot below.

Like this:

Are there any details about the 500 error in storage/logs/

This is the last thing in the lavarel.log:

[2021-08-09 18:28:07] production.INFO: https://invoices.domains.ch/phantom/invoice/jihpkhnplvuqji1bunudhhtlhuxvrjfa?phantomjs_secret=
[2021-08-09 18:28:18] production.ERROR: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 {“userId”:1,“exception”:"[object] (ErrorException(code: 0): file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 at /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Models/Presenters/CompanyPresenter.php:68)
[stacktrace]
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, ‘file_get_conten…’, ‘/home/clients/1…’, 68, Array)
#1 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Models/Presenters/CompanyPresenter.php(68): file_get_contents(‘https://invoice…’, false, Resource id #1267)
#2 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Utils/HtmlEngine.php(335): App\Models\Presenters\CompanyPresenter->logo_base64(Object(stdClass))
#3 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Utils/HtmlEngine.php(453): App\Utils\HtmlEngine->buildEntityDataArray()
#4 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Repositories/ActivityRepository.php(151): App\Utils\HtmlEngine->generateLabelsAndValues()
#5 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Repositories/ActivityRepository.php(89): App\Repositories\ActivityRepository->generateHtml(Object(App\Models\Invoice))
#6 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Repositories/ActivityRepository.php(62): App\Repositories\ActivityRepository->createBackup(Object(App\Models\Invoice), Object(App\Models\Activity))
#7 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Listeners/Invoice/InvoicePaidActivity.php(55): App\Repositories\ActivityRepository->save(Object(stdClass), Object(App\Models\Invoice), Array)
#8 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Events/CallQueuedListener.php(107): App\Listeners\Invoice\InvoicePaidActivity->handle(Object(App\Events\Invoice\InvoiceWasPaid))
#9 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Events\CallQueuedListener->handle(Object(Illuminate\Foundation\Application))
#10 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#11 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure(Object(Closure))
#12 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#13 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#14 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(128): Illuminate\Container\Container->call(Array)
#15 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus\{closure}(Object(Illuminate\Events\CallQueuedListener))
#16 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Events\CallQueuedListener))
#17 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#18 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(120): Illuminate\Bus\Dispatcher->dispatchNow(Object(Illuminate\Events\CallQueuedListener), false)
#19 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Queue\CallQueuedHandler->Illuminate\Queue\{closure}(Object(Illuminate\Events\CallQueuedListener))
#20 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Events\CallQueuedListener))
#21 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#22 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(70): Illuminate\Queue\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\Queue\Jobs\SyncJob), Object(Illuminate\Events\CallQueuedListener))
#23 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(98): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\SyncJob), Array)
#24 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Queue/SyncQueue.php(43): Illuminate\Queue\Jobs\Job->fire()
#25 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Queue/Queue.php(57): Illuminate\Queue\SyncQueue->push(Object(Illuminate\Events\CallQueuedListener), ‘’, NULL)
#26 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(562): Illuminate\Queue\Queue->pushOn(NULL, Object(Illuminate\Events\CallQueuedListener))
#27 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(486): Illuminate\Events\Dispatcher->queueHandler(‘App\\Listeners\\I…’, ‘handle’, Array)
#28 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(412): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}(Object(App\Events\Invoice\InvoiceWasPaid))
#29 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(237): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}(‘App\\Events\\Invo…’, Array)
#30 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(450): Illuminate\Events\Dispatcher->dispatch(‘App\\Events\\Invo…’)
#31 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Services/Invoice/MarkPaid.php(86): event(Object(App\Events\Invoice\InvoiceWasPaid))
#32 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Services/Invoice/InvoiceService.php(48): App\Services\Invoice\MarkPaid->run()
#33 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Http/Controllers/InvoiceController.php(660): App\Services\Invoice\InvoiceService->markPaid()
#34 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Http/Controllers/InvoiceController.php(548): App\Http\Controllers\InvoiceController->performAction(Object(App\Models\Invoice), ‘mark_paid’, true)
#35 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(235): App\Http\Controllers\InvoiceController->App\Http\Controllers\{closure}(Object(App\Models\Invoice), 0)
#36 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Http/Controllers/InvoiceController.php(550): Illuminate\Support\Collection->each(Object(Closure))
#37 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\InvoiceController->bulk()
#38 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction(‘bulk’, Array)
#39 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Route.php(254): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\InvoiceController), ‘bulk’)
#40 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Route.php(197): Illuminate\Routing\Route->runController()
#41 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\Routing\Route->run()
#42 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#43 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Http/Middleware/QueryLogging.php(40): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\QueryLogging->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Http/Middleware/Locale.php(34): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\Locale->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Http/Middleware/TokenAuth.php(80): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\TokenAuth->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Http/Middleware/SetDb.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\SetDb->handle(Object(Illuminate\Http\Request), Object(Closure))
#53 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(127): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#54 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(63): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest(Object(Illuminate\Http\Request), Object(Closure), Array)
#55 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\ThrottleRequests->handle(Object(Illuminate\Http\Request), Object(Closure), ‘300’, ‘1’)
#56 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#57 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Router.php(697): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#58 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Router.php(672): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#59 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Router.php(636): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#60 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#61 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#62 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#63 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php(55): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#64 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Sentry\Laravel\Http\SetRequestIpMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#65 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php(52): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#66 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Sentry\Laravel\Http\SetRequestMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#67 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/app/Http/Middleware/Cors.php(25): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#68 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): App\Http\Middleware\Cors->handle(Object(Illuminate\Http\Request), Object(Closure))
#69 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#70 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#71 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#72 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#73 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#74 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#75 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#76 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#77 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#78 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#79 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#80 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#81 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#82 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#83 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#84 /home/clients/15f153e506bfcee02335069cf4812c82/sites/invoices.domains.ch/public/index.php(57): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#85 {main}
"}

Log is from 2hrs ago. Last thing i did was a couple of minutes ago.

Apache shows no errors.

Just a reminder though, this is shared hosting.

@david do you have any thoughts?

Any ideas? or should I try to migrate again?

I think I see the problem, you need to use the latest version of v4 and v5 (currently v4.5.43 and v5.2.17).

You can download the latest v4 here: https://download.invoiceninja.com

Thanks for the reply @hillel

I am using the latest version of v4 and v5. Thats why the migration worked.

But right now there are 2 problems:

  1. Receiving error 500 with any changes i made in v5
  2. PDF’s dont show up, even when i used PhantomJS key

There are screenshots attached in my previous post.