Jump to content

Recommended Posts

Posted (edited)

Ola, alguém saberia me dizer o que tenho que fazer para arrumar este erro:

Diz que o erro esta nesta linha:

class AdminDjtalBrazilianRegisterController extends ModuleAdminController 
include_once dirname(__FILE__).'../../../models/BrazilianRegister.class.php';

class AdminDjtalBrazilianRegisterController extends ModuleAdminController 
{
    public function __construct()
    {
        $this->table = 'djtalbrazilianregister';
        $this->className = 'BrazilianRegister';

Log do Debug:

DEBUG 08:59:27 	doctrine 	SELECT name FROM psvx_module WHERE active = 1

CRITICAL 08:59:27 	php 	Fatal Compile Error: Declaration of AdminDjtalBrazilianRegisterController::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false)

INFO 08:59:27 	php 	User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector".

CRITICAL 08:59:27 	request 	Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: Declaration of AdminDjtalBrazilianRegisterController::setMedia() must be compatible with AdminControllerCore::setMedia($isNewTheme = false)" at /home/u569536399/domains/somadedois.com.br/public_html/modules/djtalbrazilianregister/controllers/admin/AdminDjtalBrazilianRegisterController.php line 30

Se alguem puder dar uma força, agradeço.

Edited by Mauricio Molina (see edit history)

Share this post


Link to post
Share on other sites

Corrigido, obrigado

Pode fechar o Tópico:

Basta alterar a linha:

public function setMedia ( )

Para:

public function setMedia ($isNewTheme = false)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More