Erros de permissão PHP Deprecated

Bom dia,

Estamos usando o PHP 7, e estou tendo todos estes problemas em meus logs, o OJS esta atualizado para a versão 3.1.2.1, os colegas sabem como solucionar?

[26-Sep-2019 13:09:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 359
[26-Sep-2019 13:09:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[26-Sep-2019 13:09:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[26-Sep-2019 13:09:39 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in site.com.br/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19
[26-Sep-2019 13:09:39 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in site.com.br/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19
[26-Sep-2019 13:09:39 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in site.com.br/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19
[26-Sep-2019 13:09:39 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in site.com.br/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19
[26-Sep-2019 13:09:40 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 263
[26-Sep-2019 13:09:40 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 359
[26-Sep-2019 13:09:40 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[26-Sep-2019 13:09:40 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[26-Sep-2019 13:09:40 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in site.com.br/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19
[26-Sep-2019 13:09:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 263
[26-Sep-2019 13:09:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 359
[26-Sep-2019 13:09:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[26-Sep-2019 13:09:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[26-Sep-2019 13:09:41 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in site.com.br/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19
[26-Sep-2019 13:11:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 263
[26-Sep-2019 13:11:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 359
[26-Sep-2019 13:11:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[26-Sep-2019 13:11:14 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in site.com.br/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[26-Sep-2019 13:11:14 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in site.com.br/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19

Pedro,

tente baixar o source da mesma versão e substitua o arquivo /lib/pkp/lib/adodb/adodb.inc.php no seu servidor.

Roberto

1 curtida

Bom dia, obrigado pela ajuda, mas infelizmente permanece o erro.

@Pedro_Henrique

encontrei essa discussão no forum do pkp, é a velha máxima do mundo do software: ‘warning não é erro’ :smile: . Apesar dos logs o sistema funciona normalmente, certo?

Boa tarde, Não dá erros, porem nosso log esta dando mais de 100MB por semana só com este erro que não é erro, rsrsrs.

@Pedro_Henrique, entendo a situação
nao daria pra desabilitar essas mensagens ativando alguma diretiva do PHP?

Pelas pesquisas que fiz, não.

é meio gambiarra, mas talvez desabilitando no arquivo config.inc.php, colocando o comando

 error_reporting(E_ERROR | E_PARSE);

conforme

1 curtida