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

Issue with Page Callback (1.1.5)

Discussion in 'XenForo Development Discussions' started by Adam Kirkland, Jul 27, 2013.

  1. Adam Kirkland

    Adam Kirkland Member

    So for some reason I am getting "Please enter a valid callback method" when trying to submit a page with the callback method of ServerLogs_Callback::respond.

    Even when I strip out the inside of the static function it still returns the same, I have no idea what I am doing wrong. Thanks!

    class ServerLogs_Callback {
    	public static function respond(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response) {	
  2. Jeremy

    Jeremy Well-Known Member

    Is this file located in:
    Adam Kirkland likes this.
  3. Adam Kirkland

    Adam Kirkland Member

    Close, directory structure is root/library/ServerLogs/ServerLogsCallback.php (Does it need to be just Callback.php because I'm going to kick myself if that's the case)

    EDIT: It appears I am kicking myself... Thanks Kovifor for pointing out my idiocy haha!
  4. Jeremy

    Jeremy Well-Known Member

    AutoLoad rules for XenForo:


    translates to:

    MattW likes this.
  5. Adam Kirkland

    Adam Kirkland Member

    This makes much more sense now! Thanks for the information.

Share This Page