1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 PHP expression

Discussion in 'Troubleshooting and Problems' started by upnet, May 14, 2015.

Thread Status:
Not open for further replies.
  1. upnet

    upnet Active Member

    Is there a problem with using this PHP expression? It is creating an error in my logs but at the same time it seems to be working as a conditional.

    $forum['node_id'] == 107
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What is the context and what error is being thrown?
     
  3. upnet

    upnet Active Member

    I'm using it as an expression in widget framework. I asked in the widget framework resource thread but nobody responds :( Is there a different conditional I could try that would have the same effect?

    Like I said it works as the conditional I need only displaying the widget on node 107, but it's filling my server log with this error.

    ErrorException: Undefined variable: forum - library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Support for add-ons must be restricted to the add-on thread.
     
Thread Status:
Not open for further replies.

Share This Page