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

Fixed Page Callback Method

Sagar

Active member
#1
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?
 

Kier

XenForo Developer
Staff member
#4
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.
 

Trip

Active member
#5
I ran into the same issue. That quick fix was perfect.
I am really enjoying the create a page system, the possibilities are limitless.
 

matthewalan

Active member
#6
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?
 

Cezz

Well-known member
#8
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 :)
 
#9
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.
 

Jake Bunce

XenForo moderator
Staff member
#10
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