Xenforo 2.1 V2.2.4 When trying to buy on the forum, an error log appears!

Best223

Well-known member
Registered
Joined
Mar 20, 2021
Messages
51
Points
28

Reputation:

Hello! I created a test product on the forum. When I log in with a different account and click on the buy button on the forum, nothing happens. But such errors get out in the admin panel! I have attached a screenshot. It shows where I click to buy!

Code:
ErrorException: Fatal Error: XFA\Core\Service\PayPal\AbstractExpressCheckout::__construct(): Failed opening required '/home/n/nbnicmd4/auctioncms.online/public_html/internal_data/PPConfiguration.php' (include_path='.:/usr/share/php') src/addons/XFA/Core/Service/PayPal/AbstractExpressCheckout.php:27
Generated by: Best223 Mar 22, 2021 at 2:33 PM
Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
Request state
array(4) {
  ["url"] => string(237) "/resources/5/market-place-purchase/purchase?_xfRequestUri=%2Fthreads%2F%25D1%2586%25D1%2583%25D1%2586%25D0%25BC%25D1%2586%25D1%2583%25D0%25BC.26%2F&_xfWithData=1&_xfToken=1616423592%2C8cbfa844c43175e44f9e08c0b85f1101&_xfResponseType=json"
  ["referrer"] => string(80) "https://auctioncms.online/threads/%D1%86%D1%83%D1%86%D0%BC%D1%86%D1%83%D0%BC.26/"
  ["_GET"] => array(4) {
    ["_xfRequestUri"] => string(55) "/threads/%D1%86%D1%83%D1%86%D0%BC%D1%86%D1%83%D0%BC.26/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1616423592,8cbfa844c43175e44f9e08c0b85f1101"
    ["_xfResponseType"] => string(4) "json"
  }
  ["_POST"] => array(0) {
  }
}

I don't know how to fix this problem. Please tell me!
 

Attachments

  • 0258.png
    0258.png
    68.3 KB · Views: 103

kiniemxua

Nhất Túy Tiêu Dao
Collaborate
Registered
Joined
Jun 30, 2019
Messages
83
Points
243

Reputation:

Check your php config, error this line:

Failed opening required '/home/n/nbnicmd4/auctioncms.online/public_html/internal_data/PPConfiguration.php' (include_path='.:/usr/share/php')
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,497
Points
523

Reputation:

I don't know how to fix this problem. Please tell me!
Best223I already told you how to do it in the other thread, for that addon you need to place the PPConfiguration.php into the internal_data folder and configure that one. Thats it.

Here you will get more information
https://developer.paypal.com/webapps/developer/docs/classic/api/apiCredentials/

All you need is:
Set your paypal API username here
Set your paypal API password here
Set your paypal API signature here, if you are not using certificate authentication
 

kiniemxua

Nhất Túy Tiêu Dao
Collaborate
Registered
Joined
Jun 30, 2019
Messages
83
Points
243

Reputation:

Just for my information, what is your version of PHP ?
 

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,497
Points
523

Reputation:

I'm using
PHP version 7.4.3
 
Top