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

Server Responded with an error

Discussion in 'XenForo Development Discussions' started by Walky, Aug 30, 2014.

  1. Walky

    Walky Member

    Hello !

    I want to create a code event Listener !
    But I can't create because I have this error when I want to save : "The server responded with an error. The error message is in the JavaScript console."

    Here is my php file :

    class MessagesPredefinis_Listener
        public static function 
    templateHook($hookName, &$contents, array $hookParamsXenForo_Template_Abstract $template)
           if (
    $hookName == 'forum_list_nodes')
    $messagesPredefinis template->create('messages_predefinis'$template->getParams());
    $contents $messagesPredefinis $contents;
  2. Mike

    Mike XenForo Developer Staff Member

    You have a parse error: "template->create" (no $).
  3. Walky

    Walky Member

    Oh !
    Really thanks I didn't see that :(

Share This Page