1. This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
Dismiss Notice
We have just posted about our product policy for XF2.
Click HERE to view it.

Support Undefined index error

Discussion in 'Forum Sales' started by Movie Prop Sites, Nov 16, 2018.

  1. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
    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) {
    }
    }
     
  2. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    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 ?
     
  3. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
  4. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
  5. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
  6. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    Ok but where you connected before in that browser ? Coz that wouldn't be not loggedin.
     
  7. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
    Tried it from a completely new browser when it wasn't logged in. Came to a page that simply said "Not for Sale."
     
  8. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    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
     
  9. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
  10. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    How did you realize ?
    Are you able to reproduce ?
     
  11. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
    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. :(
     
  12. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    Hum.
    Yeah, hard to solve without being able to reproduce.
     
  13. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
  14. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    I get redirected to paypal
     
  15. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
    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?
     
  16. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    Oh so that triggers the error ?
     
  17. Movie Prop Sites

    Joined:
    Jul 25, 2017
    Messages:
    31
    Likes Received:
    2
    Adress:
    Country:
    Location on Map:
    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.
     
  18. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    4,626
    Likes Received:
    726
    Clicking when logged in does generate the error ?
    Are you sure about that ?

    I was thinking it came from the second issue.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice