Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reports not working in PHP 5.6 #702

Closed
ferenczAndras opened this issue Dec 26, 2018 · 3 comments
Closed

Reports not working in PHP 5.6 #702

ferenczAndras opened this issue Dec 26, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@ferenczAndras
Copy link

Hello there!
I just updated to the latest version of Akaunting and none of the reports fields are not working.
I am getting:

**

Whoops, looks like something went wrong.

**

In the Log I got the following errors:

[26-Dec-2018 17:09:07 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/sitee/www.site.com/app/Http/Controllers/Reports/ExpenseSummary.php on line 31
[26-Dec-2018 17:09:21 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/sitee/www.site.com/app/Http/Controllers/Reports/IncomeExpenseSummary.php on line 35
[26-Dec-2018 17:09:46 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/sitee/www.site.com/app/Http/Controllers/Reports/IncomeSummary.php on line 31
[26-Dec-2018 19:54:14 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/sitee/www.site.com/app/Http/Controllers/Reports/IncomeSummary.php on line 31
[26-Dec-2018 20:59:37 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/sitee/www.site.com/app/Http/Controllers/Reports/IncomeSummary.php on line 31

Hope for the best,
Thanks,
Andras

@ferenczAndras
Copy link
Author

My suggestion is to change the 31st line:

FROM:
if (($financial_start = Date::parse(setting('general.financial_start')))->month != 1) {
TO:
if (($financial_start = Date::parse(setting('general.financial_start'))->month) != 1) {

That would work.

@ferenczAndras
Copy link
Author

And Yes, the Website with this change is working.
Can you insert into the next release?

@batuhawk batuhawk self-assigned this Dec 27, 2018
@batuhawk batuhawk added the Bug label Dec 27, 2018
@batuhawk batuhawk added this to the 1.3.7 milestone Dec 27, 2018
@batuhawk
Copy link
Contributor

batuhawk commented Dec 27, 2018

Thanks! @ferenczAndras

@denisdulici denisdulici changed the title Reports are not working Reports not working in PHP 5.6 Dec 27, 2018
cuneytsenturk added a commit that referenced this issue Dec 27, 2018
ihsanberahim pushed a commit to ihsanberahim/akaunting that referenced this issue Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants