Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How to resolve php error in php 7 caused by Tab Widget and core conflict

+2 votes
36 views
asked Jul 11 in Plugins by smohamadi

Hi everybody

I get this error in the error.log. how it can be resolved?

one of the plugins that are related to this error is Tab Widget  (https://github.com/q2a-projects/Q2A-Tab-Widget)

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; qa_layer_12_from_qa_tabs_layer_php has a deprecated constructor in /opt/lampp/htdocs/qq/qa-include/qa-base.php(595) : eval()'d code on line 3
of /opt/lampp/htdocs/qq/qa-plugin/Q2A-Tab-Widget-master/qa-tabs-layer.php

Q2A version: 1.7.4

1 Answer

+1 vote
answered Jul 11 by UI-UX-DESIGNER
Hi. As already sama55 answered here http://www.question2answer.org/qa/58370/resolve-error-caused-warnonleave-plugin-and-core-conflict you just have to replace class name with "__constructor". I already tried it and works pretty fine.
commented Jul 12 by smohamadi
Thanks for your answer,

I'm little familiar with PHP. How the "__construct"  should be added to the following line (https://github.com/q2a-projects/Q2A-Tab-Widget/blob/master/qa-tabs-layer.php)?
    class qa_html_theme_layer extends qa_html_theme_base {
...