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.

Support No Answer Error when trying to purchase resource

DaveUK

New Member
For some reason this has only just come to light, but anyone trying to purchase certain resources get an error when clicking "Buy a copy now for ....."

The error code is
Code:
Oops! We ran into some problems.
ErrorException: [E_WARNING] Undefined array key "ACK" in src/addons/XFA/Core/Service/PayPal/SetExpressCheckout.php at line 167

    XF::handlePhpError() in src/addons/XFA/Core/Service/PayPal/SetExpressCheckout.php at line 167
    XFA\Core\Service\PayPal\SetExpressCheckout->run() in src/addons/XFA/RMMarketplace/Pub/Controller/Purchase.php at line 287
    XFA\RMMarketplace\Pub\Controller\Purchase->actionPurchase() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2353
    XF\App->run() in src/XF.php at line 524
    XF::runApp() in index.php at line 20

I was running an older version of Core, so i've upgraded that and ran a cron XFA RM clean up, but still now joy. Some of these resources have been purchased fine, but now the error has just appeared. Apart from updating core, there have been no other changes.

Any help greatly appreciated.
 
Last edited:

DaveUK

New Member
I seem to have resolved the issue of people getting the error when trying to purchase certain resources. Seemed OpenSSL needed updating.
However those resources when you attempt to purchase redirect to my paypal account, rather then having the purchase pop up appear.
paypal.png

Any help greatly appreciated.
 

Clement

Freaky Coder
Staff member
Hello,

Sorry for answering with such delay but I am on vacation and didn’t bring any computer with me.

So you are running latest RM Marketplace and latest Core addon ?

I would have to check the code but I think there is no popup if there is no T&C to validate, no shipping and no quantity selection.

Clément
 

DaveUK

New Member
Hello,

Sorry for answering with such delay but I am on vacation and didn’t bring any computer with me.

So you are running latest RM Marketplace and latest Core addon ?

I would have to check the code but I think there is no popup if there is no T&C to validate, no shipping and no quantity selection.

Clément
No worries at all, thanks for getting back to me. Hope you're having a good vacation.
I'm running the latest RM Marketplace and latest core addon.
Not sure what's caused it to start playing up, as not made any changes. Happy to PM you login details to have a look when you're back?
 

Clement

Freaky Coder
Staff member
Ok so I checked with the login information you provided me.

That would be normal behavior if all the below conditions are true:
  • The resource can't be purchased in multiple quantities
  • The resource can't be purchased in another way than through paypal
  • The resource does not require CGV validation
  • The resource can't be purchased for a friend
Clément
 

DaveUK

New Member
Ok so I checked with the login information you provided me.

That would be normal behavior if all the below conditions are true:
  • The resource can't be purchased in multiple quantities
  • The resource can't be purchased in another way than through paypal
  • The resource does not require CGV validation
  • The resource can't be purchased for a friend
Clément
Hi Clement,
Many thanks for checking. Not all the above conditions are true.
Seems odd that some resources sold by the same sellers work fine, but others don't.
 

Clement

Freaky Coder
Staff member
Are you sure ? The code is pretty simple and I can see the URL of the button correpsonding to it.
 

DaveUK

New Member
Are you sure ? The code is pretty simple and I can see the URL of the button correpsonding to it.
Ah, just checked at seems like the 'multiple quantities' was set by the user to 1. I changed it to 0 and now it works fine.
Is there an overriding setting in the ACP so people uploading resources can't change it?

Also, out of curiosity, if it's set 1+, why does it default to the admins PayPal account?
 

DaveUK

New Member
Although further to the above, I've seen some members have Maximum quantity per purchase set to 1 and it works fine. Confused now!

I went back to the resources where I changed the 1 to a 0 and tried to go through the processing option. It still comes back with this - Screenshot_20230913_215253_Samsung Internet.jpg
 

DaveUK

New Member
@Clement , I think I've found the issue. If a seller has no text in the T&C's field, then it causes the issue above.
I've looked though the admin settings and can't seem to see anything relating to T&C's. Either to turn them off or some other way to resolve this issue. Only option will be for me to go into every resource that doesn't have T&C's and add some default text.

Any help greatly appreciated.
 

Clement

Freaky Coder
Staff member
You lost me addressing two topics.
Please only keep things related to the first issue and open a new one for the other one.
 
Top