What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Previous Purchases dont show up in the Orders tab & Add License is broken

Creaxx

New Member
Hello,

I am getting this error when trying to add a License:

Error: Call to a member function save() on null in src/addons/XFA/RMMarketplace/Pub/Controller/Dashboard.php at line 425
  1. XFA\RMMarketplace\Pub\Controller\Dashboard->actionAddLicense() in src/XF/Mvc/Dispatcher.phpat line 352
  2. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 258
  3. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  4. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  5. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2353
  6. XF\App->run() in src/XF.php at line 524
  7. XF::runApp() in index.php at line 20


and when clicking Purchases in a resource its empty and the Orders tab in the Dashboard is also empty.
 

Clement

Freaky Coder
Staff member
Hello,

Are you trying to add a license from a resource that is not for sale anymore ? or that the corresponding user can't buy ?

Are you talking of a resource that previously had purchases before you upgrade to a version higher than the 5.4.0 version ?

Clément
 

Creaxx

New Member
No, the user can buy the resource and it is for sale normally.

And yes i am talking about purchases before 5.4.0. They werent transferred into the new tabs.
 

Clement

Freaky Coder
Staff member
Did you get any error during the upgrade process ?

Did you make a backup prior to the upgrade ?
If not, depending on what happen I am not sure you will be able to get the data back, especially if since then new purchases were done.

Your xfa_rmmp_order and xfa_rmmp_order_item tables are empty ?
 

Creaxx

New Member
I did not get any errors and I do not have a backup of the xenforo but the purchase tables still contain all the data. The order tables contain new purchases.
 

Clement

Freaky Coder
Staff member
Did you close the forum during the upgrade to make sure no purchase can happen during the upgrade ?
Could be a reason for the problem encountered.

Closing the forum, doing a backup of your database before an upgrade of a big add-on and checking everything is fine right after is a mandatory set of actions.
We do test our products but we are never free from a corner case issue.

The error would have been masked and only shown in the error log, it stayed empty just after the upgrade ?

If the order tables contains new purchases, then that's an issue as the ids of those orders could be in collusion with the ones from the previous purchase data.
 

Creaxx

New Member
I closed the forum yes. The error log stayed empty yes. Well its two purchases since i closed the forum when i noticed the issues.
 

Clement

Freaky Coder
Staff member
The error you get is because the resource is not purchasable for that particular user, the reasons can be:
  • Resource is not for sale
  • User can't buy (possibilities: no permission or child resource and user hasn't bought parent resource)
  • Digital product without restrictions and user already owns it
  • Physical product out of stock and selling on stock out not allowed

I admit that the error should not pop-up though and should rather warn the resource is not purchasable for that user, but that's another story.
 

Clement

Freaky Coder
Staff member
I would need ftp access / phpmyadmin access / admin access to see what went wrong and try to fix (per PM).

You might need to add those two purchases manually afterwards.
 

Creaxx

New Member
I would need ftp access / phpmyadmin access / admin access to see what went wrong and try to fix (per PM).

You might need to add those two purchases manually afterwards.
I can do that. Do you have discord or something like that i can dm you the details on?
 

Creaxx

New Member
The error you get is because the resource is not purchasable for that particular user, the reasons can be:
  • Resource is not for sale
  • User can't buy (possibilities: no permission or child resource and user hasn't bought parent resource)
  • Digital product without restrictions and user already owns it
  • Physical product out of stock and selling on stock out not allowed

I admit that the error should not pop-up though and should rather warn the resource is not purchasable for that user, but that's another story.
Well the resource is for sale. He can click buy and gets redirected to checkout, its a digital product which he does not own.
 
Top