ERRO! (Solu??o Provisória) Cannot redeclare submit_button()
-
ORIGINAL: Aparece para mim o erro: Fatal error: Cannot redeclare submit_button() (previously declared in /home/storage/2/c6/86/meusite/public_html/wp-content/plugins/wp-data-access/wp-data-access-diehard.php:50) in /home/storage/2/c6/86/meusite/public_html/wp-admin/includes/template.php on line 2342
Eu consegui consertar substituindo a linha 2342 no arquivo: /meusite/public_html/wp-admin/includes/template.php que contém:
function get_submit_button(…)
{
…/*O código da fun??o*/}
substituí por (coloquei um simples if):
if ( !function_exists( ‘submit_button’ ) ) {function get_submit_button(…)
{
…/*O código da fun??o*/
}
}Mas isso é algo PROVISóRIO. Eu acho, que o desenvolvedor precisa mudar o nome do submit_button pra alguma outra coisa que n?o afete o próprio sistema padr?o do WordPress.
GOOGLE TRANSLATE:
The error appears to me: Fatal error: Cannot redeclare submit_button () (previously declared in / home / storage / 2 / c6 / 86 / meuite / public_html / wp-content / plugins / wp-data-access / wp-data-access -diehard.php: 50) in /home/storage/2/c6/86/meusite/public_html/wp-admin/includes/template.php on line 2342I managed to fix it by replacing line 2342 in the file: /meusite/public_html/wp-admin/includes/template.php which contains:
? function get_submit_button (…)
??? {
??? … / * The function code * /??? }
replaced by (I put a simple if):
if (! function_exists (‘submit_button’)) {function get_submit_button (…)
?? {
?? … / * The function code * /
?? }
}But this is PROVISIONAL. I think, the developer needs to change the name of submit_button to something else that doesn’t affect the standard WordPress system itself.
- The topic ‘ERRO! (Solu??o Provisória) Cannot redeclare submit_button()’ is closed to new replies.