Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
697 views
in Plugins by

After installing this Blog Plugin by Jack Siro
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; qa_layer_1_from_blog_admin_php has a deprecated constructor in C:\xampp\htdocs\question2answer-dev\qa-include\qa-base.php(729) : eval()'d code on line 22
of C:\xampp\htdocs\question2answer-dev\qa-plugin\blog-post/blog-admin.php 

1 Answer

+2 votes
by

That's just a deprecation warning. Not really a big deal. To fix, you could try the following.

Edit file qa-plugin/blog-post/blog-admin.php and replace this function:

function qa_html_theme_layer($template, $content, $rooturl, $request) {
    global $qa_layers;
    $this->plugin_directory = $qa_layers['Blog Settings']['directory'];
    $this->plugin_url = $qa_layers['Blog Settings']['urltoroot'];
    qa_html_theme_base::qa_html_theme_base($template, $content, $rooturl, $request);
}

With this function:

function __construct($template, $content, $rooturl, $request) {
    global $qa_layers;
    $this->plugin_directory = $qa_layers['Blog Settings']['directory'];
    $this->plugin_url = $qa_layers['Blog Settings']['urltoroot'];
    parent::__construct($template, $content, $rooturl, $request);
}

Let me know if that works.

by
You are a genius .its works!
...