Problem after moving to a new server

Hello,

We have moved our site to another server and it started to show internal error:

Declaration of menu\models\Menu::scopes() should be compatible with DActiveRecord::scopes($scopes = Array)

In the log file ./protected/runtime/application.log we fund the following:

===================================================================================

2018/03/21 06:52:17 [error] [php] Declaration of menu\models\Menu::scopes() should be compatible with DActiveRecord::scopes($scopes = Array) (/home/USER/public_html/protected/modules/menu/models/Menu.php:20)

Stack trace:

#0 /home/USER/public_html/protected/components/DApi.php(195): spl_autoload_call()

#1 /home/USER/public_html/protected/components/DApi.php(69): DApi->_registerTreemenu()

#2 /home/USER/public_html/yii/base/CModule.php(394): DApi->init()

#3 /home/USER/public_html/yii/base/CModule.php(530): CWebApplication->getComponent()

#4 /home/USER/public_html/yii/base/CApplication.php(167): CWebApplication->preloadComponents()

#5 /home/USER/public_html/yii/YiiBase.php(125): CWebApplication->__construct()

#6 /home/USER/public_html/yii/YiiBase.php(98): createApplication()

#7 /home/USER/public_html/index.php(32): createWebApplication()

REQUEST_URI=/

===================================================================================

The PHP version 5.6 on the both servers.

However on the server where site worked we had MySQL 5.5.58-cll , but on the new server MariaDB 10.1.31.

Could somebody assist?

Hi,

Check the difference of "error_reporting" setting in "php.ini".

I would rather consider fixing the incompatible parameters of the overridden method, though. ;)