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

Missing transactions in category view #1996

Closed
Bubka opened this issue Jan 11, 2019 · 6 comments
Closed

Missing transactions in category view #1996

Bubka opened this issue Jan 11, 2019 · 6 comments
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).

Comments

@Bubka
Copy link

Bubka commented Jan 11, 2019

Bug description
I am running Firefly III version 4.7.9

Some transactions are missing when I open /categories/show/[catId]/.
They are missing in the transactions table of the view but the transactions exist in db and their amounts are used in the category sum for the month.

See the Decembre total for /categories/show/17/2018-12-01/2018-12-31:
firefly-missing-transaction-02

Here are all transactions find by the search feature on Decembre 2018:
firefly-missing-transaction-01

If I edit one of the missing transaction it makes the transaction appearing back in the category view.

Steps to reproduce
Cannot reproduce

Expected behavior
See all transactions for the selected month and the displayed category

Extra info
I have converted my MySQL tables from MyISAM to InnoDB recently. Could it be related ?!

Debug information generated at 2019-01-11 15:25:02 Europe/Paris for Firefly III version 4.7.9.

Variable Content
FF version 4.7.9
FF API version 0.9.0
App environment local
App debug mode true
App cache driver file
App logging , daily
PHP version 7.2.12
Display errors Off
Session start 2018-12-01 00:00:00
Session end 2018-12-31 00:00:00
Session first 2006-01-02 00:00:00
Error reporting ALL errors
Host Linux
Interface fpm-fcgi
UserID 1
Attempt at "en" false
Attempt at "English" false
Attempt at "en_US.utf8" 'en_US.utf8'
Attempt at "en_US.UTF-8" 'en_US.UTF-8'
DB drivers mysql, pgsql, sqlite
Current driver mysql
Login provider
Storage disks local-upload
Using Sandstorm? no
Is Sandstorm (.env) false
Is Docker (.env) false
bunq uses sandbox false
Trusted proxies (.env)
User agent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0
Loaded extensions Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, imagick, session, intl, json, mbstring, memcached, standard, mysqlnd, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, redis, Reflection, imap, SimpleXML, soap, sockets, sodium, mongodb, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, mysqli, cgi-fcgi, ionCube Loader, Zend OPcache
@Bubka
Copy link
Author

Bubka commented Jan 11, 2019

erf, same issue on /transactions/withdrawal too

@Bubka
Copy link
Author

Bubka commented Jan 11, 2019

Also these transactions were previously associated to a budget i removed some days ago.
They are all in my Epicerie category and only transactions from Epicerie are missing.

@JC5
Copy link
Member

JC5 commented Jan 11, 2019

Mmm, very strange. It could be mysql related but I am just not sure. I'll have to test.

In the mean time, run php artisan cache:clear on the command line, see if it helps.

@Bubka
Copy link
Author

Bubka commented Jan 11, 2019

Ok, bug reproduced on FF demo:

  • Create a new budget Epicerie
  • Create a new category Epicerie
  • Create a new transaction with both budget and category Epicerie
  • Create a new transaction with just Category Epicerie
  • Delete the Epicerie budget
  • Open Epiceriecategory view

The first transaction associated to the Epicerie budget is missing

@JC5
Copy link
Member

JC5 commented Jan 11, 2019

Thanks for debugging this. It must have taken quite some time to get to the bottom of it.

I was able to find the cause. Ultimately, it is because the connection between the deleted budget (still in the database) and the transaction is not severed. But the database query ignores the transaction because it ignores deleted budgets.

I've updated the demo site where this should no longer happen. It will be fixed with the next release.

Thanks again!

@JC5 JC5 added bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release). and removed possible bug labels Jan 11, 2019
@Bubka
Copy link
Author

Bubka commented Jan 11, 2019

Glad to help you.

Great support once again 👍

@JC5 JC5 closed this as completed in 7f91ff4 Feb 3, 2019
JC5 added a commit that referenced this issue Feb 9, 2019
* develop:
  New API endpoints.
  Translation updates.
  Fix #1996
  Update some issue templates.
  Expand changelog.
  Fix #1983
  Fix #1979
  Fix #1975
  Added memcached support and zend opcache
hamuz pushed a commit to hamuz/firefly-iii that referenced this issue Feb 23, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified and replicated bugs and issues. fixed Bugs that are fixed (in a coming release).
Projects
None yet
Development

No branches or pull requests

2 participants