-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Webapp import amount always 0 #4277
Comments
Can you please enter a few new transactions into the WebApp the go to the WebApp install directory: The should be a file in there called MMEX_New_Transaction.db Now open the DB by typing: You should be prompted with something like:
Just enter the command: and let me know the output. |
Here you are: SQLite version 3.31.1 2020-01-27 19:55:54 Thanks whalley! |
@osr-revamper That looks fine and as expected. If you could leave this setup and send me your URL and GUID for the WebAp via email to |
@osr-revamper Thanks for sharing your server detail... So I can see why the issue is arising... My WebApp returns data like....
Yours returns:
Note the difference in the presentation of the Amount field. The MMEX application is always expecting a STRING for each field but your WebApp installation is returning a numeric value. Can you confirm you have the latest WebApp Version 1.1.0 / Master code installed? At least we have narrowed this down..... |
@osr-revamper What version of PHP do you have on the server? Think it may be a PHP json_encode difference. |
My PHP version is 8.1. |
You are right whalley. From PHP 7.1 till 8.0 is working now!! But not in PHP 8.1. Many thanks for your help. Best regards. |
@osr-revamper Can you please try the following for me. Edit the functions.php file, to add the following line:
after line 461, e.g.
Then test with PHP 8.1 again I think (hope) this should cure the problem. |
With these changes in functions.php it works also in PHP 8.1!! |
Great, I'll move the issue over to the WebApp repo and make the change. |
MMEX version:
Operating System:
Description of the bug
When trying to import new Webapp transactions in my MMEX Desktop, the "Amount" of all transactions is always 0.
Tested with master, 1.0.3 and 1.0.2
Reproduction
Is the bug reproducible?
Reproduction steps:
Expected result: The same amount in the webapp import tool than on the web server.
Actual result: All the amounts are always 0.
Additional information
Tested with PHP 7.3, 7.4 and 8.0.
![mmex_desktop_sync](https://user-images.githubusercontent.com/96193896/161500040-30a4fd63-6430-4376-a0a5-9297fbde76c2.png)
![mmex_webapp_pending](https://user-images.githubusercontent.com/96193896/161500044-2fcea4f3-f08a-4508-886f-c723a68382db.png)
The text was updated successfully, but these errors were encountered: