Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
413 views
in Q2A Core by

I'm getting this error on each page of 1.5: Fatal error: Call to undefined method qa_layer_2_from_qa_user_activity_layer_php::page_error() in [my theme]/qa-theme.php on line 135

This function doesn't exist any more in qa-theme-base.php. It looks like it's been renamed to error(). What other functions have been removed/renamed?

Q2A version: 1.5-beta1

1 Answer

+2 votes
by

yeah, it's been combined with page_title, it seems, so now the two are page_title_error().

Since my print plugin calls page_title, here's what I'm using for backwards compatibility, that seems to work:

                    if(method_exists(qa_html_theme_base,'page_title'))
                        $this->page_title();            
                    else if(method_exists(qa_html_theme_base,'page_title_error'))
                        $this->page_title_error();

 

...