PHP Fatal Error When Accessing Wallet Transactions
-
Wallet plugin attempts to query EVERY line of data in the usermeta database table when accessing the Wallet transactions. If you have many users (over a few thousand), this results in out of memory issue and a PHP Fatal error.
If this is the case, no Wallet transactions anywhere can take place due to the Wallet plugin exhausting the memory of the site. If you attempt to edit an order and issue a refund to the Wallet, it will not be issued, and you cannot view Wallet Transactions.
In this case, we have over 800MB of memory allotted.We worked with WP Swings support to solve this issue, and they made the following code changes in attached screenshots. The left screenshot is the customized code, and the right is the same version of the plugin without the bandaid.
This of course is not a long-term fix and is not in the current version of Wallet plugin. I am wondering if a permanent fix will be added to the plugin? While this issue is most noticeable on sites with many users, it will be a performance issue by using so much memory on sites by querying ALL usermeta for every transaction and to view transactions.
I am unable to update to latest version of Wallet due to this change on my older copy only, so therefore our site is still experiencing the non-stop fatal errors on the datastore which was fixed recently.
- The topic ‘PHP Fatal Error When Accessing Wallet Transactions’ is closed to new replies.