Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
–1 vote
288 views
in Q2A Core by
This is my code
$themeobject = new qa_html_theme_base();

However it gives this warning:
Warning: Missing argument 1 for qa_html_theme_base::__construct(), defined in www\project\qa-include\qa-theme-base.php on line 65

I thought arguments were not needed. Or am I missing something here?
Q2A version: 1.8 beta2

1 Answer

+1 vote
by

It is right there in the line you have in your question: https://github.com/q2a/question2answer/blob/b0f03e08badc68fa950d615e6450292fa1af6e9b/qa-include/qa-theme-base.php#L65

You need these parameters: 

public function __construct($template, $content, $rooturl, $request)

And you can see the class being called in here: https://github.com/q2a/question2answer/blob/dev/qa-include/app/format.php#L2041

$themeclass = new $classname($template, $content, $themeroothtml, $request);

...