Fixed Page Callback Method

Sagar

Active member
Trying to create a page. Getting an error "Please enter valid callback method"

What do I enter in PHP class and method for creating a simple page?
 
In library/xenforo/DataWriter/Page.php

find this:
PHP:
if ($this->isChanged('callback_class') || $this->isChanged('callback_method'))

replace with this:
PHP:
if ($this->get('callback_class') || $this->get('callback_method'))

The customer area package has been updated.
 
I ran into the same issue. That quick fix was perfect.
I am really enjoying the create a page system, the possibilities are limitless.
 
I want to create a page on my board just to see how they work, but when I submit the forum for a new page off of my node tree, it gives me this error

Please enter a valid callback method.

What exactly does that mean? I've been leaving that field empty as i'm not really sure what it means. Is there something that I am required to put there?
 
In library/xenforo/DataWriter/Page.php

find this:
PHP:
if ($this->isChanged('callback_class') || $this->isChanged('callback_method'))

replace with this:
PHP:
if ($this->get('callback_class') || $this->get('callback_method'))

The customer area package has been updated.

Thanks this fixed it :)
 
hi kier,
i also facing addons install problem.'Please enter a valid callback method.' every time appear this mgs. is it also a bug? or solve the matter pls.
 
hi kier,
i also facing addons install problem.'Please enter a valid callback method.' every time appear this mgs. is it also a bug? or solve the matter pls.

That means the addon files were not uploaded, or not uploaded correctly, or uploaded to the wrong location. The files must be in place before you import the XML.

Also, please enter your forum name (kazirhaat) on this page so I know you are licensed:

http://xenforo.com/customers/forum-users
 
Top Bottom