• Resolved nmarlon

    (@nmarlon)


    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 2342

    I 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.

    • This topic was modified 4 years, 6 months ago by nmarlon. Reason: Faltou explicar o título melhor
Viewing 16 replies (of 16 total)
  • Understand – I was considering the possibility of having the user edit data but had seen that the Data Publisher was OK with read-only data. I can see that you have done the best in your code with the function test but another bit of code that isn’t so polite and loads AFTER your code is going to cause the problem. Thanks for the info.

    Regards
    Alan

Viewing 16 replies (of 16 total)
  • The topic ‘ERRO! (Solu??o Provisória) Cannot redeclare submit_button()’ is closed to new replies.