• This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.

Support Undefined index error

Joined
Jul 25, 2017
Messages
52
I am getting the following error on my server several times a day. Any idea what is causing this?


ErrorException: Undefined index: xfa_fss_paypal - library/XenForo/Visitor.php:678
Generated By: Unknown Account, Yesterday at 7:11 PM
Stack Trace
#0 /xxx/forums/library/XenForo/Visitor.php(678): XenForo_Application::handlePhpError(8, 'Undefined index...', '/xxx...', 678, Array)
#1 /xxx/forums/library/XFA/ForumSales/Extends/ControllerPublic/Thread.php(359): XenForo_Visitor->offsetGet('xfa_fss_paypal')
#2 /xxx/forums/library/XenForo/FrontController.php(369): XFA_ForumSales_Extends_ControllerPublic_Thread->actionXfaFssPurchase()
#3 /xxx/forums/library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#4 /xxx/forums/index.php(13): XenForo_FrontController->run()
#5 {main}
Request State
array(3) {
["url"] => string(94) "https://xxx/forums/threads/arkham-origins-action-figure-lot.296156/xfa-fss-purchase"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Hum odd, this is supposed to be a column existing in the database.

Do you have a column names xfa_fss_paypal in your xf_user database table ?

Are non registered users allowed to purchase ?
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Ok but where you connected before in that browser ? Coz that wouldn't be not loggedin.
 
Joined
Jul 25, 2017
Messages
52
Tried it from a completely new browser when it wasn't logged in. Came to a page that simply said "Not for Sale."
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
When you used that url ?

Well then I don't see how this error you have is triggered, this is the only idea I have.
If non logged in users are not allowed to buy then it's impossible that the error is popped out by an unknown account.

Clément
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
How did you realize ?
Are you able to reproduce ?
 
Joined
Jul 25, 2017
Messages
52
When you said it was impossible, I went back and looked at the item for sale that you had asked me to test.

https://www.therpf.com/forums/threads/arkham-origins-action-figure-lot.296156/

It was already sold.

When I look at any of the sales posts without being logged in, the buy button is greyed out and can't be clicked but if you know to add "/xfa-fss-purchase" to the end of the url of the for sale thread, it takes you directly to paypal to purchase. :(
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Hum.
Yeah, hard to solve without being able to reproduce.
 
Joined
Jul 25, 2017
Messages
52
I get redirected to paypal
Correct. Which should not happen because you aren't a member or logged in. That is the problem. If someone knows the link, whether they are a member or not, they are sent to paypal, which isn't a good thing. Can this be stopped?
 
Joined
Jul 25, 2017
Messages
52
Well... I thought so, but now in testing further, whether you are logged out or in, if you click on a buy it now link, the site generates that error... so there are two issues;

First, clicking the link creates that error.

Second, a non-user who figures out the link can technically side-step the permissions.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
3,904
Clicking when logged in does generate the error ?
Are you sure about that ?

I was thinking it came from the second issue.