Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

internel issue showing after update 2.1.2

Jahangir Mohammad Ali Siddique   ( User )

Commented 3 years ago

after update 2.1.2 report now showing
giving this error

Oops! Something went wrong
500 Internal Server Error
We'll work on fixing this right away.

Leonardo Gomes   ( User )

Commented 3 years ago

Hello Jahangir,

on your .env file, enable "APP_DEBUG" to true. Then post again the real error message.

Thanks,

Jahangir Mohammad Ali Siddique   ( User )

Commented 3 years ago

ExceptionStack Trace
ErrorException
in /home/adibtrad/adibs.com.bd/ac/app/Abstracts/Report.php (line 397)
$start = $quarter->getStartDate()->format($this->getQuarterlyDateFormat($this->year)); $end = $quarter->getEndDate()->format($this->getQuarterlyDateFormat($this->year)); } $i = $start . '-' . $end; break; default: $i = $date->copy()->format($this->getMonthlyDateFormat($this->year));
HandleExceptions->handleError(8, 'Undefined variable: start', '/home/adibtrad/adibs.com.bd/ac/app/Abstracts/Report.php', 397, array('date' => object(Date), 'quarters' => array(object(CarbonPeriod), object(CarbonPeriod), object(CarbonPeriod), object(CarbonPeriod)), 'quarter' => object(CarbonPeriod)))
in /home/adibtrad/adibs.com.bd/ac/app/Abstracts/Report.php (line 397)
Report->getFormattedDate(object(Date))
in /home/adibtrad/adibs.com.bd/ac/app/Abstracts/Report.php (line 328)
Report->setTotals(object(MediableCollection), 'issued_at', true, 'Expenses', false)
in /home/adibtrad/adibs.com.bd/ac/app/Reports/ProfitLoss.php (line 65)
ProfitLoss->setData()
in /home/adibtrad/adibs.com.bd/ac/app/Abstracts/Report.php (line 107)
Report->loadData()
in /home/adibtrad/adibs.com.bd/ac/app/Abstracts/Report.php (line 97)
Report->load()
in /home/adibtrad/adibs.com.bd/ac/app/Abstracts/Report.php (line 134)
Report->getGrandTotal()
in /home/adibtrad/adibs.com.bd/ac/app/Http/Controllers/Common/Reports.php (line 52)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Cache/Repository.php -> App\Http\Controllers\Common\{closure} (line 385)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php -> remember (line 406)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php -> __call (line 261)
Facade::__callStatic('remember', array('reports.totals.12', 21600, object(Closure)))
in /home/adibtrad/adibs.com.bd/ac/app/Http/Controllers/Common/Reports.php (line 53)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Controller.php -> index (line 54)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php -> callAction (line 45)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Route.php -> dispatch (line 254)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Route.php -> runController (line 197)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> run (line 693)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> Illuminate\Routing\{closure} (line 128)
in /home/adibtrad/adibs.com.bd/ac/vendor/santigarcor/laratrust/src/Middleware/LaratrustPermission.php -> Illuminate\Pipeline\{closure} (line 25)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/santigarcor/laratrust/src/Middleware/LaratrustPermission.php -> Illuminate\Pipeline\{closure} (line 25)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in /home/adibtrad/adibs.com.bd/ac/app/Http/Middleware/AdminMenu.php (line 30)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in /home/adibtrad/adibs.com.bd/ac/app/Http/Middleware/RedirectIfWizardNotCompleted.php (line 21)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in /home/adibtrad/adibs.com.bd/ac/app/Http/Middleware/LogoutIfUserDisabled.php (line 21)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 29)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 29)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/firewall/src/Abstracts/Middleware.php -> Illuminate\Pipeline\{closure} (line 36)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/akaunting/language/src/Middleware/SetLocale.php -> Illuminate\Pipeline\{closure} (line 95)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in /home/adibtrad/adibs.com.bd/ac/app/Http/Middleware/LoadCurrencies.php (line 27)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in /home/adibtrad/adibs.com.bd/ac/app/Http/Middleware/LoadSettings.php (line 27)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in /home/adibtrad/adibs.com.bd/ac/app/Http/Middleware/AddXHeader.php (line 18)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
in /home/adibtrad/adibs.com.bd/ac/app/Http/Middleware/RedirectIfNotInstalled.php (line 21)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php -> Illuminate\Pipeline\{closure} (line 50)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php -> Illuminate\Pipeline\{closure} (line 44)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php -> Illuminate\Pipeline\{closure} (line 78)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php -> Illuminate\Pipeline\{closure} (line 49)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php -> Illuminate\Pipeline\{closure} (line 121)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php -> handleStatefulRequest (line 63)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php -> Illuminate\Pipeline\{closure} (line 37)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php -> Illuminate\Pipeline\{closure} (line 67)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> Illuminate\Pipeline\{closure} (line 103)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> then (line 695)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> runRouteWithinStack (line 670)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> runRoute (line 636)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Routing/Router.php -> dispatchToRoute (line 625)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php -> dispatch (line 166)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> Illuminate\Foundation\Http\{closure} (line 128)
in /home/adibtrad/adibs.com.bd/ac/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php -> Illuminate\Pipeline\{closure} (line 67)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php -> Illuminate\Pipeline\{closure} (line 21)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php -> Illuminate\Pipeline\{closure} (line 21)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php -> Illuminate\Pipeline\{closure} (line 27)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php -> Illuminate\Pipeline\{closure} (line 86)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/fruitcake/laravel-cors/src/HandleCors.php -> Illuminate\Pipeline\{closure} (line 37)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/fideloper/proxy/src/TrustProxies.php -> Illuminate\Pipeline\{closure} (line 57)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/dingo/api/src/Http/Middleware/Request.php -> Illuminate\Pipeline\{closure} (line 111)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> handle (line 167)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php -> Illuminate\Pipeline\{closure} (line 103)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php -> then (line 141)
in /home/adibtrad/adibs.com.bd/ac/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php -> sendRequestThroughRouter (line 110)
Kernel->handle(object(Request))
in /home/adibtrad/adibs.com.bd/ac/index.php (line 20)

Abdullah Fathi Bin Muhamad Azmi   ( User )

Commented 3 years ago

im having the same error:
Undefined variable: start
/var/www/html/akaunting/app/Abstracts/Report.php#397

Abdullah Fathi Bin Muhamad Azmi   ( User )

Commented 3 years ago

This issue has been fixed on version 2.1.3..
Thank your guys !

Abdullah Fathi Bin Muhamad Azmi   ( User )

Commented 3 years ago

Thank You!

Please login or register to leave a response.

Showing 1 to 6 of 6 discussions